|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.graph.Inequality
An inequality over a CPO.
Each inequality consists of two InequalityTerms, the lesser
term and the greater term. The relation between them is less than or
equal to. In addition, an inequality keeps a list of variables in it.
The variables are InequalityTerms that consist of a single
variable.
InequalityTerm
| Green (kienhuis) |
| Green (yuhong) |
| Constructor Summary | |
Inequality(InequalityTerm lesserTerm,
InequalityTerm greaterTerm)
Construct an inequality. |
|
| Method Summary | |
InequalityTerm |
getGreaterTerm()
Return the greater term of this inequality. |
InequalityTerm |
getLesserTerm()
Return the lesser term of this inequality. |
boolean |
isSatisfied(CPO cpo)
Test if this inequality is satisfied with the current value of variables. |
java.lang.String |
toString()
Override the base class to describe the inequality. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Inequality(InequalityTerm lesserTerm,
InequalityTerm greaterTerm)
lesserTerm - An InequalityTerm that is less than or
equal to the second argument.greaterTerm - An InequalityTerm that is greater than
or equal to the first argument.
java.lang.IllegalArgumentException - If the lesserTerm or
the greaterTerm is null.| Method Detail |
public InequalityTerm getGreaterTerm()
InequalityTermpublic InequalityTerm getLesserTerm()
InequalityTerm
public boolean isSatisfied(CPO cpo)
throws IllegalActionException
cpo - A CPO over which this inequality is defined.
IllegalActionExceptionpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||