|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.data.type.MonotonicFunction ptolemy.actor.util.ActorTypeUtil.TypeableSizedArrayVariableTypeTerm
private static class ActorTypeUtil.TypeableSizedArrayVariableTypeTerm
An InequalityTerm representing an array types whose elements have the type of the specified typeable. The purpose of this class is to defer to as late as possible actually accessing the type of the typeable, since it may change dynamically. This term is not variable and cannot be set.
Field Summary | |
---|---|
private ArrayType |
_arrayType
The array type with element types matching the typeable. |
private Variable |
_lengthVariable
|
private Typeable |
_typeable
The associated typeable. |
Constructor Summary | |
---|---|
ActorTypeUtil.TypeableSizedArrayVariableTypeTerm(Typeable typeable,
Variable lengthVariable)
Construct a term that will defer to the type of the specified typeable. |
Method Summary | |
---|---|
private ArrayType |
_getArrayTypeRaw()
Get an array type with element type matching the type of the associated typeable. |
private ArrayType |
_getArrayTypeRaw(int length)
Get an array type with element type matching the type of the associated typeable. |
java.lang.Object |
getValue()
Return an array type with element types given by the associated typeable. |
InequalityTerm[] |
getVariables()
Return an array of size zero. |
Methods inherited from class ptolemy.data.type.MonotonicFunction |
---|
getAssociatedObject, getVerboseString, initialize, isSettable, isValueAcceptable, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Typeable _typeable
private ArrayType _arrayType
private Variable _lengthVariable
Constructor Detail |
---|
public ActorTypeUtil.TypeableSizedArrayVariableTypeTerm(Typeable typeable, Variable lengthVariable)
typeable
- The object to defer requests to.Method Detail |
---|
public java.lang.Object getValue() throws IllegalActionException
getValue
in interface InequalityTerm
getValue
in class MonotonicFunction
IllegalActionException
- If the type of the associated typeable
cannot be determined.MonotonicFunction.setValue(Object)
public InequalityTerm[] getVariables()
getVariables
in interface InequalityTerm
getVariables
in class MonotonicFunction
private ArrayType _getArrayTypeRaw() throws IllegalActionException
IllegalActionException
- If the type of the typeable
cannot be determined.private ArrayType _getArrayTypeRaw(int length) throws IllegalActionException
IllegalActionException
- If the type of the typeable
cannot be determined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |