|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.data.Token
ptolemy.data.ScalarToken
ptolemy.data.expr.ConcreteScalarToken
public class ConcreteScalarToken
A token that represents a scalar of any type. This is instantiated by the Constants class with name "scalar".
| Yellow (wbwu) |
| Yellow (yuhong) |
| Field Summary |
|---|
| Fields inherited from class ptolemy.data.ScalarToken |
|---|
_unitCategoryExponents |
| Fields inherited from class ptolemy.data.Token |
|---|
NIL |
| Constructor Summary | |
|---|---|
ConcreteScalarToken()
|
|
| Method Summary | |
|---|---|
protected ScalarToken |
_absolute()
Return this token. |
protected ScalarToken |
_add(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_bitwiseAnd(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_bitwiseNot()
Throw an exception. |
protected ScalarToken |
_bitwiseOr(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_bitwiseXor(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_divide(ScalarToken rightArgument)
Throw an exception. |
protected BooleanToken |
_isCloseTo(ScalarToken rightArgument,
double epsilon)
Throw an exception. |
protected BooleanToken |
_isLessThan(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_modulo(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_multiply(ScalarToken rightArgument)
Throw an exception. |
protected ScalarToken |
_subtract(ScalarToken rightArgument)
Throw an exception. |
Type |
getType()
Return the type of this token. |
| Methods inherited from class ptolemy.data.ScalarToken |
|---|
_addCategoryExponents, _areUnitsEqual, _copyOfCategoryExponents, _isEqualTo, _isUnitless, _subtractCategoryExponents, absolute, add, addReverse, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseXor, byteValue, complexValue, divide, divideReverse, doubleValue, fixValue, floatValue, intValue, inUnitsOf, isCloseTo, isEqualTo, isGreaterThan, isLessThan, leftShift, logicalRightShift, longValue, modulo, moduloReverse, multiply, multiplyReverse, rightShift, setUnitCategory, shortValue, subtract, subtractReverse, unitsString |
| Methods inherited from class ptolemy.data.Token |
|---|
isCloseTo, isNil, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, toString, zero, zeroReturnType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConcreteScalarToken()
| Method Detail |
|---|
public Type getType()
getType in class ScalarTokenprotected ScalarToken _absolute()
_absolute in class ScalarToken
protected ScalarToken _add(ScalarToken rightArgument)
throws IllegalActionException
_add in class ScalarTokenrightArgument - The token to add to this token.
IllegalActionException - If this method is not
supported by the derived class.
protected ScalarToken _bitwiseAnd(ScalarToken rightArgument)
throws IllegalActionException
_bitwiseAnd in class ScalarTokenrightArgument - The ScalarToken to bitwise AND with this one.
IllegalActionException - If the given token is not
compatible for this operation, or the operation does not make
sense for this type.
protected ScalarToken _bitwiseNot()
throws IllegalActionException
_bitwiseNot in class ScalarTokenIllegalActionException - If the given token is not
compatible for this operation, or the operation does not make
sense for this type.
protected ScalarToken _bitwiseOr(ScalarToken rightArgument)
throws IllegalActionException
_bitwiseOr in class ScalarTokenrightArgument - The ScalarToken to bitwise OR with this one.
IllegalActionException - If the given token is not
compatible for this operation, or the operation does not make
sense for this type.
protected ScalarToken _bitwiseXor(ScalarToken rightArgument)
throws IllegalActionException
_bitwiseXor in class ScalarTokenrightArgument - The ScalarToken to bitwise XOR with this one.
IllegalActionException - If the given token is not
compatible for this operation, or the operation does not make
sense for this type.
protected ScalarToken _divide(ScalarToken rightArgument)
throws IllegalActionException
_divide in class ScalarTokenrightArgument - The token to divide this token by.
IllegalActionException - If this method is not
supported by the derived class.
protected BooleanToken _isCloseTo(ScalarToken rightArgument,
double epsilon)
throws IllegalActionException
_isCloseTo in class ScalarTokenrightArgument - The token to compare to this token.epsilon - The value that we use to determine whether two
tokens are close.
IllegalActionException - If there is a problem processing
the rightArgument.
protected BooleanToken _isLessThan(ScalarToken rightArgument)
throws IllegalActionException
_isLessThan in class ScalarTokenrightArgument - The token to add to this token.
IllegalActionException - If this method is not
supported by the derived class.
protected ScalarToken _modulo(ScalarToken rightArgument)
throws IllegalActionException
_modulo in class ScalarTokenrightArgument - The token to modulo this token by.
IllegalActionException - If this method is not
supported by the derived class.
protected ScalarToken _multiply(ScalarToken rightArgument)
throws IllegalActionException
_multiply in class ScalarTokenrightArgument - The token to multiply this token by.
IllegalActionException - If this method is not
supported by the derived class.
protected ScalarToken _subtract(ScalarToken rightArgument)
throws IllegalActionException
_subtract in class ScalarTokenrightArgument - The token to subtract from this token.
IllegalActionException - If this method is not
supported by the derived class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||