|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.mediation.Disjunction | +--com.oakgrovesystems.reactor.processMediation.ProcessConditionDisjunction
A disjunction of ProcessConditions
Field Summary | |
protected java.util.Map |
objectMap
|
Fields inherited from class com.oakgrovesystems.mediation.Disjunction |
conditions |
Constructor Summary | |
ProcessConditionDisjunction(java.util.Set conditions)
Creates a new ProcessConditionDisjunction with the specified Set of ProcessConditions |
Method Summary | |
com.oakgrovesystems.reactor.processMediation.ProcessCondition |
copy()
Returns a deep copy |
java.util.Map |
getObjectMap()
returns the Map used for looking up Process objects for condition evaluation |
protected boolean |
hasCondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition c)
necessary for sameAs() because conditions are not sorted |
boolean |
isMadeFalseBy(com.oakgrovesystems.mediation.Change change,
java.lang.Object changee)
returns a boolean indicating whether or not this Condition is true and would be made false by applying the specified Change to the specified Object. |
boolean |
isMadeTrueBy(com.oakgrovesystems.mediation.Change change,
java.lang.Object changee)
returns a boolean indicating whether or not this Condition is false and would be made true by applying the specified Change to the specified Object. |
boolean |
isTrue()
returns a boolean indicating whether this Condition is true or false. |
boolean |
sameAs(java.lang.Object o)
Tests for content equality with another object. |
void |
setObjectMap(java.util.Map objectMap)
sets the Map used for looking up Process objects for condition evaluation |
Methods inherited from class com.oakgrovesystems.mediation.Disjunction |
getConditions, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.Map objectMap
Constructor Detail |
public ProcessConditionDisjunction(java.util.Set conditions)
conditions
- The set of ProcessConditions to use to evaluate this ProcessConditionDisjunction.Method Detail |
public java.util.Map getObjectMap()
getObjectMap
in interface ProcessCondition
public void setObjectMap(java.util.Map objectMap)
setObjectMap
in interface ProcessCondition
objectMap
- the Map used for looking up Process objects for condition evaluationpublic boolean isTrue() throws CanNotEvaluateConditionException
isTrue
in interface Condition
isTrue
in class Disjunction
CanNotEvaluateConditionException
- if the Condition can not be evaluatedpublic boolean isMadeTrueBy(com.oakgrovesystems.mediation.Change change, java.lang.Object changee) throws CanNotEvaluateConditionException
isMadeTrueBy
in interface Condition
isMadeTrueBy
in class Disjunction
change
- the Change the application of which may make this Condition truechangee
- the object to which the specified Change would be applied to make
this Condition true.
CanNotEvaluateConditionException
- if there is a problem evaluating Condition(s)public boolean isMadeFalseBy(com.oakgrovesystems.mediation.Change change, java.lang.Object changee) throws CanNotEvaluateConditionException
isMadeFalseBy
in interface Condition
isMadeFalseBy
in class Disjunction
change
- the Change the application of which may make this Condition falsechangee
- the object to which the specified Change would be applied to make
this Condition false.
CanNotEvaluateConditionException
- if there is a problem evaluating Condition(s)public boolean sameAs(java.lang.Object o) throws java.lang.ClassCastException
sameAs
in interface ProcessCondition
o
- the object to compare for equality
java.lang.ClassCastException
protected boolean hasCondition(com.oakgrovesystems.reactor.processMediation.ProcessCondition c)
public com.oakgrovesystems.reactor.processMediation.ProcessCondition copy()
copy
in interface ProcessCondition
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |