|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.opensha.commons.param.event.ParameterChangeWarningEvent
public class ParameterChangeWarningEvent
Title: ParameterChangeWarningEvent
Description: This event is thrown when you try to modify a parameter's value beyond it's recommended value. This event gives the calling class the ability to either head the warnings or ignore it and update the parameter anyways.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ParameterChangeWarningEvent(Object reference,
WarningParameter param,
Object oldValue,
Object newValue)
Constructor for the ParameterChangeWarningEvent object. |
|
| Method Summary | |
|---|---|
void |
commitNewChange()
Set's the new value ignoring the warning |
Object |
getNewValue()
Gets the desired new value. |
Object |
getOldValue()
Gets the old value for the Parameter. |
WarningParameter |
getWarningParameter()
Gets the name of Parameter that failed a change. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterChangeWarningEvent(Object reference,
WarningParameter param,
Object oldValue,
Object newValue)
reference - Object which created this event, i.e. the parametrparameterName - Name of Parameter tried to change.oldValue - Old value for the ParameterbadValue - New value for the Parameter that failed| Method Detail |
|---|
public WarningParameter getWarningParameter()
public Object getNewValue()
public Object getOldValue()
public void commitNewChange()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||