|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.mediation.AbstractConditionalChange | +--com.oakgrovesystems.reactor.processMediation.ProcessConditionalChange
A change to a Process that may only be applied if a particular ProcessCondition is true
Field Summary | |
protected java.util.Map |
objectMap
the Map used for looking up Process objects for condition evaluation |
Fields inherited from class com.oakgrovesystems.mediation.AbstractConditionalChange |
precondition, resultingChange |
Constructor Summary | |
ProcessConditionalChange()
|
Method Summary | |
com.oakgrovesystems.reactor.processMediation.ProcessCondition |
getCondition()
returns the ProcessCondition that must be true for this ProcessConditionalChange to be applicable. |
java.util.Map |
getObjectMap()
returns the Map used for looking up Process objects for condition evaluation |
com.oakgrovesystems.reactor.processMediation.ProcessChange |
getResultingChange()
returns the ProcessChange that may be applied when the precondition is true. |
boolean |
isApplicable()
Tests the applicability of this ConditionalChange. |
boolean |
isMadeApplicableBy(com.oakgrovesystems.mediation.Change change,
java.lang.Object changee)
Determines whether the ConditionalChange would become applicable if the specified Change was applied to the specified object. |
boolean |
isMadeInapplicableBy(com.oakgrovesystems.mediation.Change change,
java.lang.Object changee)
Determines whether the ConditionalChange would become inapplicable if the specified Change was applied to the specified object. |
abstract boolean |
sameAs(java.lang.Object o)
compares this object 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.AbstractConditionalChange |
applyTo, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.oakgrovesystems.mediation.Change |
applyTo |
Field Detail |
protected java.util.Map objectMap
Constructor Detail |
public ProcessConditionalChange()
Method Detail |
public java.util.Map getObjectMap()
public void setObjectMap(java.util.Map objectMap)
objectMap
- the Map used for looking up Process objects for condition evaluationpublic com.oakgrovesystems.reactor.processMediation.ProcessCondition getCondition()
public com.oakgrovesystems.reactor.processMediation.ProcessChange getResultingChange()
public boolean isApplicable() throws CanNotEvaluateConditionException
isApplicable
in interface ConditionalChange
isApplicable
in class AbstractConditionalChange
CanNotEvaluateConditionException
- thrown if the contingency Condition can not be evaluated.public boolean isMadeApplicableBy(com.oakgrovesystems.mediation.Change change, java.lang.Object changee) throws CanNotEvaluateConditionException
isMadeApplicableBy
in interface ConditionalChange
isMadeApplicableBy
in class AbstractConditionalChange
change
- the Change that would be applied to trigger the applicability of
this ConditionalChangechangee
- the object to which the triggering change would be applied
CanNotEvaluateConditionException
public boolean isMadeInapplicableBy(com.oakgrovesystems.mediation.Change change, java.lang.Object changee) throws CanNotEvaluateConditionException
isMadeInapplicableBy
in interface ConditionalChange
isMadeInapplicableBy
in class AbstractConditionalChange
change
- the Change that would be applied to cause the inapplicability of
this ConditionalChangechangee
- the object to which the specified change would be applied to make
this ConditionalChange inapplicable
CanNotEvaluateConditionException
public abstract boolean sameAs(java.lang.Object o)
sameAs
in interface ProcessChange
o
- the object with which this object should be compared for equality
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |