|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.data.type.TypeConstant
An InequalityTerm that encapsulate a constant type. The constant type is specified in the constructor. This class represents a constant term in an inequality constraint for type resolution.
InequalityTerm
| Red (cxh) |
| Red (yuhong) |
| Constructor Summary | |
TypeConstant(Type type)
Construct a TypeConstant. |
|
| Method Summary | |
java.lang.Object |
getAssociatedObject()
Return null. |
java.lang.Object |
getValue()
Return the constant type represented by this term. |
InequalityTerm[] |
getVariables()
Return an array of variables contained in this term. |
void |
initialize(java.lang.Object e)
Throw an Exception since type constant cannot be initialized. |
boolean |
isSettable()
Return false since this term represent a constant. |
boolean |
isValueAcceptable()
Check whether the current type of this term is acceptable, and return true if it is. |
void |
setValue(java.lang.Object e)
Throw IllegalActionException since the value of this term cannot be changed. |
java.lang.String |
toString()
Return a string representation of this term. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TypeConstant(Type type)
type - An instance of Type.| Method Detail |
public java.lang.Object getAssociatedObject()
getAssociatedObject in interface InequalityTermpublic java.lang.Object getValue()
getValue in interface InequalityTermpublic InequalityTerm[] getVariables()
InequalityTerm
getVariables in interface InequalityTerm
public void initialize(java.lang.Object e)
throws IllegalActionException
initialize in interface InequalityTerme - An Object representing an element in the underlying CPO.
IllegalActionException - Always thrown.public boolean isSettable()
isSettable in interface InequalityTermpublic boolean isValueAcceptable()
isValueAcceptable in interface InequalityTerm
public void setValue(java.lang.Object e)
throws IllegalActionException
setValue in interface InequalityTerme - An Object representing an element in the
underlying CPO.
IllegalActionException - Always thrown.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||