|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.reactor.processMediation.AbstractProcessCondition | +--com.oakgrovesystems.reactor.processMediation.ProcessStateEqualsCondition
A Condition that is true if a particular Process is in a certain state and false otherwise.
Field Summary |
Fields inherited from class com.oakgrovesystems.reactor.processMediation.AbstractProcessCondition |
objectMap |
Constructor Summary | |
ProcessStateEqualsCondition(com.oakgrovesystems.reactor.ReactorObjectId processId,
int state)
Creates a new ProcessStateEqualsCondition that checks the Process specified for the state specified. |
|
ProcessStateEqualsCondition(com.oakgrovesystems.reactor.ReactorObjectId processId,
int state,
java.util.Map objectMap)
Creates a new ProcessStateEqualsCondition that checks the Process specified for the state specified using the Map specified to dereference the id. |
|
ProcessStateEqualsCondition(java.lang.String processId,
int state)
Creates a new ProcessStateEqualsCondition that checks the Process specified for the state specified. |
|
ProcessStateEqualsCondition(java.lang.String processId,
int state,
java.util.Map objectMap)
Creates a new ProcessStateEqualsCondition that checks the Process specified for the state specified using the Map specified to dereference the id. |
Method Summary | |
java.lang.Object |
clone()
Clones this ProcessStateEqualsConditons. |
com.oakgrovesystems.reactor.processMediation.ProcessCondition |
copy()
Clones this ProcessStateEqualsConditons. |
com.oakgrovesystems.reactor.ReactorObjectId |
getProcessId()
returns the id of the process that must be in a particular state for this Condition to be true. |
int |
getState()
returns the state a particular Process must be in for this Condition to be true. |
boolean |
isMadeFalseBy(com.oakgrovesystems.mediation.Change c,
java.lang.Object changee)
returns true if the Change specifies that the correct Process changes out of the correct state |
boolean |
isMadeTrueBy(com.oakgrovesystems.mediation.Change c,
java.lang.Object changee)
returns true if the Change specifies that the correct Process changes into the correct state |
boolean |
isTrue()
Evaluated on the Process returned from a call to ReactorObjectId.dereference(Process.class) ReactorObjectId.dereference(Process.class,Map,true) depending on whether or not objectMap is null. |
boolean |
sameAs(java.lang.Object o)
tests this ProcessStateEqualsCondition for content equality with another Object. |
void |
setProcessId(com.oakgrovesystems.reactor.ReactorObjectId processId)
sets the id of the process that must be in a particular state for this Condition to be true. |
void |
setState(int state)
sets the state a particular Process must be in for this Condition to be true. |
Methods inherited from class com.oakgrovesystems.reactor.processMediation.AbstractProcessCondition |
getObjectMap, setObjectMap |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProcessStateEqualsCondition(java.lang.String processId, int state)
processId
- the id of the Process to check the state of.state
- the state the Process must have for the Condition to be truepublic ProcessStateEqualsCondition(com.oakgrovesystems.reactor.ReactorObjectId processId, int state)
processId
- the id of the Process to check the state of.state
- the state the Process must have for the Condition to be truepublic ProcessStateEqualsCondition(java.lang.String processId, int state, java.util.Map objectMap)
processId
- the id of the Process to check the state of.state
- the state the Process must have for the Condition to be trueobjectMap
- the map to use to look up the Processpublic ProcessStateEqualsCondition(com.oakgrovesystems.reactor.ReactorObjectId processId, int state, java.util.Map objectMap)
processId
- the id of the Process to check the state of.state
- the state the Process must have for the Condition to be trueobjectMap
- the map to use to look up the ProcessMethod Detail |
public boolean isTrue() throws CanNotEvaluateConditionException
isTrue
in interface Condition
CanNotEvaluateConditionException
- if object dereferencing fails or the ReactorObjectId is null.public boolean isMadeTrueBy(com.oakgrovesystems.mediation.Change c, java.lang.Object changee) throws CanNotEvaluateConditionException
isMadeTrueBy
in interface Condition
c
- the change that may make this Condition truechangee
- the Process to which the change is to be applied
CanNotEvaluateConditionException
public boolean isMadeFalseBy(com.oakgrovesystems.mediation.Change c, java.lang.Object changee) throws CanNotEvaluateConditionException
isMadeFalseBy
in interface Condition
c
- the change that may make this Condition falsechangee
- the Process to which the change is to be applied
CanNotEvaluateConditionException
public com.oakgrovesystems.reactor.ReactorObjectId getProcessId()
public void setProcessId(com.oakgrovesystems.reactor.ReactorObjectId processId)
processId
- the id of the process that must be in a particular state for
this Condition to be true.public int getState()
public void setState(int state)
state
- the state a particular Process must be in for this Condition
to be true.public boolean sameAs(java.lang.Object o)
sameAs
in interface ProcessCondition
sameAs
in class AbstractProcessCondition
o
- the object to which this object should be comapared.
public com.oakgrovesystems.reactor.processMediation.ProcessCondition copy()
copy
in interface ProcessCondition
copy
in class AbstractProcessCondition
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |