public class ActorToken extends Token implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static ActorToken |
EMPTY
Empty Entity instance of this token.
|
static Type |
TYPE
Singleton reference to this type.
|
Constructor and Description |
---|
ActorToken(Entity entity)
Construct an ActorToken.
|
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity()
Return a clone of the entity contained by this token.
|
Entity |
getEntity(Workspace workspace)
Return a clone of the entity contained by this token.
|
void |
getMoML(java.io.Writer output)
Output the MoML of the enclosed entity to the given writer.
|
Type |
getType()
Return the type of this token.
|
BooleanToken |
isCloseTo(Token rightArgument,
double epsilon)
Test for closeness of the values of this Token and the argument
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.
|
add, addReverse, divide, divideReverse, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public static final ActorToken EMPTY
public static final Type TYPE
public ActorToken(Entity entity) throws IllegalActionException
entity
- The entity that this Token contains.IllegalActionException
- If cloning the entity fails.public Entity getEntity()
public Entity getEntity(Workspace workspace)
workspace
- The workspace that the returned entity is in.public void getMoML(java.io.Writer output) throws java.io.IOException
output
- The writer to which the MoML is output.java.io.IOException
- If an I/O error occurs.public Type getType()
public BooleanToken isCloseTo(Token rightArgument, double epsilon) throws IllegalActionException
isCloseTo
in class Token
rightArgument
- The token to compare to this token.epsilon
- This argument is ignored in this method.IllegalActionException
- If thrown by
isEqualTo(Token)
.public BooleanToken isEqualTo(Token token) throws IllegalActionException
isEqualTo
in class Token
token
- The token with which to test equality.IllegalActionException
- If this method is not
supported by the derived class.public java.lang.String toString()