|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.data.Token
ptolemy.data.AbstractNotConvertibleToken
ptolemy.data.RecordToken
ptolemy.actor.gt.FakedRecordToken
public class FakedRecordToken
| Red (tfeng) |
| Red (tfeng) |
| Nested Class Summary | |
|---|---|
static class |
FakedRecordToken.FakedRecordType
|
| Field Summary |
|---|
| Fields inherited from class ptolemy.data.Token |
|---|
NIL |
| Constructor Summary | |
|---|---|
FakedRecordToken()
|
|
| Method Summary | |
|---|---|
protected Token |
_add(Token rightArgument)
Return a new token whose value is the field-wise addition of this token and the argument. |
protected Token |
_divide(Token rightArgument)
Return a new token whose value is the field-wise division of this token and the argument. |
protected BooleanToken |
_isCloseTo(Token rightArgument,
double epsilon)
Test whether the value of this token is close to the first argument, where "close" means that the distance between them is less than or equal to the second argument. |
protected BooleanToken |
_isEqualTo(Token token)
Return true if the specified token is equal to this one. |
protected Token |
_modulo(Token rightArgument)
Return a new token whose value is the field-wise modulo of this token and the argument. |
protected Token |
_multiply(Token rightArgument)
Return a new token whose value is the field-wise multiplication of this token and the argument. |
protected Token |
_subtract(Token rightArgument)
Return a new token whose value is the field-wise subtraction of this token and the argument. |
boolean |
equals(java.lang.Object object)
Return true if the class of the argument is RecordToken, and the argument has the same set of labels as this token and the corresponding fields are equal, as determined by the equals method of the contained tokens. |
Token |
get(java.lang.String label)
Return the token with the specified label. |
Type |
getType()
Return the type of this token. |
int |
hashCode()
Return a hash code value for this token. |
java.util.Set<java.lang.String> |
labelSet()
Return the labels of this token as a Set. |
int |
length()
Return the length of this token. |
Token |
one()
Returns a new RecordToken representing the multiplicative identity. |
Token |
zero()
Returns a new RecordToken representing the additive identity. |
| Methods inherited from class ptolemy.data.RecordToken |
|---|
merge, mergeReturnType, toString |
| Methods inherited from class ptolemy.data.AbstractNotConvertibleToken |
|---|
add, addReverse, divide, divideReverse, isCloseTo, isEqualTo, modulo, moduloReverse, multiply, multiplyReverse, notSupportedDifferentClassesMessage, subtract, subtractReverse |
| Methods inherited from class ptolemy.data.Token |
|---|
isCloseTo, isNil, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, pow, zeroReturnType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FakedRecordToken()
throws IllegalActionException
IllegalActionException| Method Detail |
|---|
public boolean equals(java.lang.Object object)
RecordToken
equals in class RecordTokenobject - An instance of Object.
RecordToken.hashCode()public Token get(java.lang.String label)
RecordToken
get in class RecordTokenlabel - A String label.
public Type getType()
RecordToken
getType in class RecordTokenpublic int hashCode()
RecordToken
hashCode in class RecordTokenpublic java.util.Set<java.lang.String> labelSet()
RecordToken
labelSet in class RecordTokenpublic int length()
RecordToken
length in class RecordToken
public Token one()
throws IllegalActionException
RecordToken
one in class RecordTokenIllegalActionException - If multiplicative identity is not
supported by any element token.
public Token zero()
throws IllegalActionException
RecordToken
zero in class RecordTokenIllegalActionException - If additive identity is not
supported by any element token.
protected Token _add(Token rightArgument)
throws IllegalActionException
RecordToken
_add in class RecordTokenrightArgument - The token to add to this token.
IllegalActionException - If calling the add method on
one of the record fields throws it.
protected Token _divide(Token rightArgument)
throws IllegalActionException
RecordToken
_divide in class RecordTokenrightArgument - The token to divide this token by.
IllegalActionException - If calling the divide method on
one of the record fields throws it.
protected BooleanToken _isCloseTo(Token rightArgument,
double epsilon)
throws IllegalActionException
RecordToken
_isCloseTo in class RecordTokenrightArgument - The token to compare to this token.epsilon - The value that we use to determine whether two
tokens are close.
IllegalActionException - If throw while checking
the closeness of an element of the record.
protected BooleanToken _isEqualTo(Token token)
throws IllegalActionException
RecordToken
_isEqualTo in class RecordTokentoken - The token to compare to this token.
IllegalActionException - If this method is not
supported by the derived class.
protected Token _modulo(Token rightArgument)
throws IllegalActionException
RecordToken
_modulo in class RecordTokenrightArgument - The token to modulo this token by.
IllegalActionException - If calling the modulo method on
one of the record fields throws it.
protected Token _multiply(Token rightArgument)
throws IllegalActionException
RecordToken
_multiply in class RecordTokenrightArgument - The token to multiply this token by.
IllegalActionException - If calling the multiply method on
one of the record fields throws it.
protected Token _subtract(Token rightArgument)
throws IllegalActionException
RecordToken
_subtract in class RecordTokenrightArgument - The token to subtract from this token.
IllegalActionException - If calling the subtract
method on one of the record fields throws it.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||