Package ptolemy.data
Class UnsizedFixToken
- java.lang.Object
-
- ptolemy.data.Token
-
- ptolemy.data.ScalarToken
-
- ptolemy.data.FixToken
-
- ptolemy.data.UnsizedFixToken
-
- All Implemented Interfaces:
BitwiseOperationToken
,PartiallyOrderedToken
public class UnsizedFixToken extends FixToken
A token that contains an instance of FixPoint. This token type exists solely so that types can be declared as UNSIZED_FIX through the parameter mechanism, since we don't represent types distinctly from tokens. Generally speaking actors should process FixTokens, which properly report their precision.- Since:
- Ptolemy II 5.2
- Version:
- $Id$
- Author:
- Steve Neuendorffer
- See Also:
FixToken
- Pt.AcceptedRating:
- Yellow (neuendor)
- Pt.ProposedRating:
- Yellow (neuendor)
-
-
Field Summary
-
Fields inherited from class ptolemy.data.ScalarToken
_unitCategoryExponents
-
-
Constructor Summary
Constructors Constructor Description UnsizedFixToken()
Construct a fixed-point token.UnsizedFixToken(FixPoint value)
Construct an UnsizedFixToken with the supplied FixPoint value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getType()
Return the type of this token.-
Methods inherited from class ptolemy.data.FixToken
_absolute, _add, _bitwiseAnd, _bitwiseNot, _bitwiseOr, _bitwiseXor, _divide, _divide, _isCloseTo, _isLessThan, _modulo, _multiply, _quantize, _subtract, convert, convertToDouble, equals, fixValue, hashCode, one, print, quantize, toString, zero
-
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, floatValue, intValue, inUnitsOf, isCloseTo, isEqualTo, isGreaterThan, isLessThan, 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, pow, zeroReturnType
-
-
-
-
Constructor Detail
-
UnsizedFixToken
public UnsizedFixToken()
Construct a fixed-point token. This method calls theFixPoint(int)
constructor, so the precision and quantization are what ever is defined for that constructor
-
UnsizedFixToken
public UnsizedFixToken(FixPoint value)
Construct an UnsizedFixToken with the supplied FixPoint value.- Parameters:
value
- A FixPoint value.
-
-