|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.mediation.Inversion
A compound Condition (a Condition that is a boolean function of the state of one or more other Conditions). Specfically, an Inversion is a function of exactly one other Condition. If the other Condition is true, the Inversion is false. If the other Condition is false, the Inversion is true.
Field Summary | |
protected com.oakgrovesystems.mediation.Condition |
conditionToInvert
|
Constructor Summary | |
Inversion(com.oakgrovesystems.mediation.Condition conditionToInvert)
Creates a new Inversion which is the inverse of the Condition specified |
Method Summary | |
com.oakgrovesystems.mediation.Condition |
getCondition()
Returns the Condition with respect to which this Inversion is an inverse |
boolean |
isMadeFalseBy(com.oakgrovesystems.mediation.Change c,
java.lang.Object o)
returns false if the condtionToInvert is null. |
boolean |
isMadeTrueBy(com.oakgrovesystems.mediation.Change c,
java.lang.Object o)
returns false if the condtionToInvert is null. |
boolean |
isTrue()
Evaluates this Inversion. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected com.oakgrovesystems.mediation.Condition conditionToInvert
Constructor Detail |
public Inversion(com.oakgrovesystems.mediation.Condition conditionToInvert)
conditionToInvert
- The Condition with respect to which this Inversion is an inverseMethod Detail |
public com.oakgrovesystems.mediation.Condition getCondition()
public boolean isTrue() throws CanNotEvaluateConditionException
isTrue
in interface Condition
CanNotEvaluateConditionException
- If the conditionToInvert is null or can not be evaluated.public boolean isMadeTrueBy(com.oakgrovesystems.mediation.Change c, java.lang.Object o) throws CanNotEvaluateConditionException
isMadeTrueBy
in interface Condition
c
- The Change the application of which could make this Inversion trueo
- The object to which the change would be applied to make this
Inversion true
CanNotEvaluateConditionException
- if the call to conditionToInvert.isMadeFalseBy() throws a
CanNotEvaluateConditionExceptionpublic boolean isMadeFalseBy(com.oakgrovesystems.mediation.Change c, java.lang.Object o) throws CanNotEvaluateConditionException
isMadeFalseBy
in interface Condition
c
- The Change the application of which could make this Inversion falseo
- The object to which the change would be applied to make this
Inversion false
CanNotEvaluateConditionException
- if the call to conditionToInvert.isMadeTrueBy() throws a
CanNotEvaluateConditionExceptionpublic 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 |