|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ptolemy.data.type.ActorType
public class ActorType
The base type of matrix token classes. This type functions as a union of the various matrix types. It allows for the creation of arrays that consist of diverse matrix types, because the array type will be {matrix}.
Red |
Red (yuhong) |
Field Summary |
---|
Fields inherited from interface ptolemy.data.type.Type |
---|
HASH_INVALID, HASH_MAX |
Constructor Summary | |
---|---|
ActorType()
|
Method Summary | |
---|---|
Type |
add(Type rightArgumentType)
Return a new type which represents the type that results from adding a token of this type and a token of the given argument type. |
java.lang.Object |
clone()
Return this, that is, return the reference to this object. |
Token |
convert(Token token)
Convert the specified token to a token having the type represented by this object. |
Type |
divide(Type rightArgumentType)
Return a new type which represents the type that results from dividing a token of this type and a token of the given argument type. |
boolean |
equals(Type t)
Determine if the argument represents the same BaseType as this object. |
java.lang.Class |
getTokenClass()
Return the class for tokens that this basetype represents. |
int |
getTypeHash()
Return this type's node index in the (constant) type lattice. |
boolean |
isAbstract()
Return true if this type does not correspond to a single token class. |
boolean |
isCompatible(Type type)
Model if the argument type is compatible with this type. |
boolean |
isConstant()
Model if this Type is UNKNOWN. |
boolean |
isInstantiable()
Determine if this type corresponds to an instantiable token classes. |
boolean |
isSubstitutionInstance(Type type)
Return true if the argument is a substitution instance of this type. |
Type |
modulo(Type rightArgumentType)
Return a new type which represents the type that results from moduloing a token of this type and a token of the given argument type. |
Type |
multiply(Type rightArgumentType)
Return a new type which represents the type that results from multiplying a token of this type and a token of the given argument type. |
Type |
one()
Return the type of the multiplicative identity for elements of this type. |
Type |
subtract(Type rightArgumentType)
Return a new type which represents the type that results from subtracting a token of this type and a token of the given argument type. |
java.lang.String |
toString()
Return the string representation of this type. |
Type |
zero()
Return the type of the additive identity for elements of this type. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ptolemy.data.type.Type |
---|
equals |
Constructor Detail |
---|
public ActorType()
Method Detail |
---|
public Type add(Type rightArgumentType)
add
in interface Type
rightArgumentType
- The type to add to this type.
public java.lang.Object clone()
clone
in interface Type
clone
in class java.lang.Object
public Token convert(Token token) throws IllegalActionException
convert
in interface Type
token
- A token.
IllegalActionException
- If lossless conversion cannot
be done.public Type divide(Type rightArgumentType)
divide
in interface Type
rightArgumentType
- The type to add to this type.
public boolean equals(Type t)
t
- A Type.
public java.lang.Class getTokenClass()
getTokenClass
in interface Type
public int getTypeHash()
getTypeHash
in interface Type
public boolean isAbstract()
isAbstract
in interface Type
public boolean isCompatible(Type type)
isCompatible
in interface Type
type
- An instance of Type.
public boolean isConstant()
isConstant
in interface Type
public boolean isInstantiable()
isInstantiable
in interface Type
public boolean isSubstitutionInstance(Type type)
isSubstitutionInstance
in interface Type
type
- A Type.
public Type modulo(Type rightArgumentType)
modulo
in interface Type
rightArgumentType
- The type to add to this type.
public Type multiply(Type rightArgumentType)
multiply
in interface Type
rightArgumentType
- The type to add to this type.
public Type one()
one
in interface Type
public Type subtract(Type rightArgumentType)
subtract
in interface Type
rightArgumentType
- The type to add to this type.
public java.lang.String toString()
toString
in interface Type
toString
in class java.lang.Object
public Type zero()
zero
in interface Type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |