|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Typeable
Interface for objects with types. This interface defines methods for setting and getting types and type constraints. Type constraints are represented as inequalities between Typeable objects.
InequalityTerm
| Red (cxh) |
| Red (yuhong) |
| Method Summary | |
|---|---|
Type |
getType()
Return the type of this object. |
InequalityTerm |
getTypeTerm()
Return an InequalityTerm representing this object. |
boolean |
isTypeAcceptable()
Check whether the type of this object is acceptable. |
void |
setTypeAtLeast(InequalityTerm typeTerm)
Constrain the type of this object to be equal to or greater than the type represented by the specified InequalityTerm. |
void |
setTypeAtLeast(Typeable lesser)
Constrain the type of this object to be equal to or greater than the type of the argument. |
void |
setTypeAtMost(Type type)
Constrain the type of this object to be equal to or less than the argument. |
void |
setTypeEquals(Type type)
Set a type constraint that the type of this object equal the specified value. |
void |
setTypeSameAs(Typeable equal)
Constrain the type of this object to be the same as the type of the argument. |
| Methods inherited from interface ptolemy.data.type.HasTypeConstraints |
|---|
typeConstraintList |
| Method Detail |
|---|
Type getType()
throws IllegalActionException
IllegalActionException - If the type cannot be determined.InequalityTerm getTypeTerm()
boolean isTypeAcceptable()
void setTypeAtLeast(Typeable lesser)
lesser - A Typeable object.void setTypeAtLeast(InequalityTerm typeTerm)
typeTerm - An InequalityTerm object.
void setTypeAtMost(Type type)
throws IllegalActionException
type - An instance of Type.
IllegalActionException - If the type of this object
already violates this constraint.
void setTypeEquals(Type type)
throws IllegalActionException
type - An instance of Type.
IllegalActionException - If the type of this object
already violates this constraint.void setTypeSameAs(Typeable equal)
equal - The type that this object should be the same as.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||