|
|||||||||||
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.ProcessHasStatusCondition
A Condition that is true if a particular Process has a certain Status in its list of current statuses and false otherwise.
Field Summary |
Fields inherited from class com.oakgrovesystems.reactor.processMediation.AbstractProcessCondition |
objectMap |
Constructor Summary | |
ProcessHasStatusCondition(com.oakgrovesystems.reactor.ReactorObjectId processId,
com.oakgrovesystems.reactor.ReactorObjectId statusId)
Creates a new ProcessHasStatusCondition that checks the Process specified for the Status specified. |
|
ProcessHasStatusCondition(com.oakgrovesystems.reactor.ReactorObjectId processId,
com.oakgrovesystems.reactor.ReactorObjectId statusId,
java.util.Map objectMap)
Creates a new ProcessHasStatusCondition that checks the Process specified for the Status specified using the Map specified to dereference the id. |
|
ProcessHasStatusCondition(java.lang.String processId,
java.lang.String statusId)
Creates a new ProcessHasStatusCondition that checks the Process specified for the Status specified. |
|
ProcessHasStatusCondition(java.lang.String processId,
java.lang.String statusId,
java.util.Map objectMap)
Creates a new ProcessHasStatusCondition that checks the Process specified for the Status specified using the Map specified to dereference the id. |
Method Summary | |
java.lang.Object |
clone()
Clones this ProcessHasStatusCondition. |
com.oakgrovesystems.reactor.processMediation.ProcessCondition |
copy()
Clones this ProcessHasStatusCondition. |
com.oakgrovesystems.reactor.ReactorObjectId |
getProcessId()
returns the id of the Process that must have a particular Status for this Condition to be true. |
com.oakgrovesystems.reactor.ReactorObjectId |
getStatusId()
returns the id of the Status that a particular Process must have 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 loses the correct Status |
boolean |
isMadeTrueBy(com.oakgrovesystems.mediation.Change c,
java.lang.Object changee)
returns true if the Change specifies that the correct Process aquires the correct Status |
boolean |
isTrue()
Evaluated on the process returned from a call to either ReactorObjectId.dereference(Process.class) or ReactorObjectId.dereference(Process.class,Map,true) depending on whether or not the objectMap is equal to null. |
boolean |
sameAs(java.lang.Object o)
tests this ProcessHasStatusCondition for content equality with another object. |
void |
setProcessId(com.oakgrovesystems.reactor.ReactorObjectId processId)
sets the id of the Process that must have a particular Status for this Condition to be true. |
void |
setStatusId(com.oakgrovesystems.reactor.ReactorObjectId statusId)
sets the id of the Status that a particular Process must have for this Condition to be true. |
java.lang.String |
toString()
|
Methods inherited from class com.oakgrovesystems.reactor.processMediation.AbstractProcessCondition |
getObjectMap, setObjectMap |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProcessHasStatusCondition(java.lang.String processId, java.lang.String statusId)
processId
- the id of the Process to check the current statuses of.statusId
- the Status the Process must have for the Condition to be truepublic ProcessHasStatusCondition(com.oakgrovesystems.reactor.ReactorObjectId processId, com.oakgrovesystems.reactor.ReactorObjectId statusId)
processId
- the id of the Process to check the current statuses of.statusId
- the Status the Process must have for the Condition to be truepublic ProcessHasStatusCondition(java.lang.String processId, java.lang.String statusId, java.util.Map objectMap)
processId
- the id of the Process to check the current statuses of.statusId
- the Status the Process must have for the Condition to be trueobjectMap
- the map to use to look up the Processpublic ProcessHasStatusCondition(com.oakgrovesystems.reactor.ReactorObjectId processId, com.oakgrovesystems.reactor.ReactorObjectId statusId, java.util.Map objectMap)
processId
- the id of the Process to check the current statuses of.statusId
- the Status 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 the call to dereference fails or either 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 void setProcessId(com.oakgrovesystems.reactor.ReactorObjectId processId)
processId
- the id of the Process that must have a particular Status for
this Condition to be true.public com.oakgrovesystems.reactor.ReactorObjectId getProcessId()
public void setStatusId(com.oakgrovesystems.reactor.ReactorObjectId statusId)
statusId
- the id of the Status that a particular Process must have for
this Condition to be true.public com.oakgrovesystems.reactor.ReactorObjectId getStatusId()
public boolean sameAs(java.lang.Object o)
sameAs
in interface ProcessCondition
sameAs
in class AbstractProcessCondition
o
- the object to compare with this ProcessHasStatusCondition
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
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |