|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InequalityTerm
An interface for a term in an inequality over a CPO. A term is either a constant, a variable, or a function. In some applications, a term may be associated with an Object. For example, the value of the term may represent a certain characteristic of an Object, and it is necessary to get a reference of that Object from a term. This can be done through the getAssociatedObject() method of this interface.
CPO
| Green (kienhuis) |
| Green (yuhong) |
| Method Summary | |
|---|---|
java.lang.Object |
getAssociatedObject()
Return the Object associated with this term. |
java.lang.Object |
getValue()
Return the value of this term. |
InequalityTerm[] |
getVariables()
Return an array of variables contained in this term. |
void |
initialize(java.lang.Object e)
Initialize the value of this term to the specified CPO element. |
boolean |
isSettable()
Check whether this term can be set to a specific element of the underlying CPO. |
boolean |
isValueAcceptable()
Check whether the current value of this term is acceptable, and return true if it is. |
void |
setValue(java.lang.Object e)
Set the value of this term to the specified CPO element. |
| Method Detail |
|---|
java.lang.Object getAssociatedObject()
null.
java.lang.Object getValue()
throws IllegalActionException
IllegalActionException - If the value of this
inequality term is not valid.setValue(Object)InequalityTerm[] getVariables()
void initialize(java.lang.Object e)
throws IllegalActionException
setValue()
with the same argument.
In some applications, this term is a structured object that only part
of it is a simple variable. In this case, set that variable part to
the specified argument.
e - An Object representing an element in the underlying CPO.
IllegalActionException - If this term is not a variable.boolean isSettable()
boolean isValueAcceptable()
void setValue(java.lang.Object e)
throws IllegalActionException
e - An Object representing an element in the
underlying CPO.
IllegalActionException - If this term is not a variable.getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||