|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.reactor.processMediation.ProcessStateChange
Changes the state of a Process obejct.
Constructor Summary | |
ProcessStateChange(int newState)
Creates a new ProcessStateChange that changes the state to the specified state. |
Method Summary | |
void |
applyTo(java.lang.Object o)
Changes the state of the Process specified |
int |
getNewState()
Returns the state to which this ProcessStateChange changes a Process's state attribute |
boolean |
sameAs(java.lang.Object o)
Compares two ProcessChanges for content equality. |
java.lang.String |
toString()
Returns a String representation of this ProcessStateChange |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProcessStateChange(int newState)
newState
- The state to which the Process's state attribute should be changed.Method Detail |
public void applyTo(java.lang.Object o) throws ChangeNotApplicableException
applyTo
in interface Change
o
- the Process to which the change should be applied
ChangeNotApplicableException
- if the change can not be appliedpublic final int getNewState()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean sameAs(java.lang.Object o)
sameAs
in interface ProcessChange
o
- the object to compare for equality
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |