|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.data.Token
ptolemy.data.ActorToken
public class ActorToken
A token that contains an actor. This token allows components to be moved around in a model. One subtlety is that actors are not, generally immutable objects. In order to prevent the actor transmitted from appearing in multiple places in a model, and the semantic fuzziness that would result, the actor is always cloned when being retrieved from this token.
| Red (cxh) |
| Red (cxh) |
| Nested Class Summary | |
|---|---|
static class |
ActorToken.ActorType
The type of the ActorToken. |
| Field Summary | |
|---|---|
static Type |
TYPE
Singleton reference to this type. |
| Fields inherited from class ptolemy.data.Token |
|---|
NIL |
| Constructor Summary | |
|---|---|
ActorToken(Entity entity)
Construct an ActorToken. |
|
| Method Summary | |
|---|---|
Entity |
getEntity()
Return a clone of the entity contained by this token. |
Type |
getType()
Return the type of this token. |
BooleanToken |
isEqualTo(Token token)
Model for equality of the values of this Token and the argument Token. |
java.lang.String |
toString()
Return the value of this token as a string that can be parsed by the expression language to recover a token with the same value. |
| Methods inherited from class ptolemy.data.Token |
|---|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Type TYPE
| Constructor Detail |
|---|
public ActorToken(Entity entity)
throws IllegalActionException
entity - The entity that this Token contains.
IllegalActionException - If cloning the entity fails.| Method Detail |
|---|
public Entity getEntity()
public Type getType()
getType in class Token
public BooleanToken isEqualTo(Token token)
throws IllegalActionException
isEqualTo in class Tokentoken - The token with which to test equality.
IllegalActionException - If this method is not
supported by the derived class.public java.lang.String toString()
toString in class Token
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||