ptolemy.data
Class UnsizedFixToken

java.lang.Object
  extended by ptolemy.data.Token
      extended by ptolemy.data.ScalarToken
          extended by ptolemy.data.FixToken
              extended by ptolemy.data.UnsizedFixToken
All Implemented Interfaces:
java.io.Serializable, BitwiseOperationToken

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: UnsizedFixToken.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Steve Neuendorffer
See Also:
FixToken, Serialized Form
Accepted Rating:
Yellow (neuendor)
Proposed Rating:
Yellow (neuendor)

Field Summary
 
Fields inherited from class ptolemy.data.ScalarToken
_unitCategoryExponents
 
Fields inherited from class ptolemy.data.Token
NIL
 
Constructor Summary
UnsizedFixToken()
          Construct a token with integer 0.
UnsizedFixToken(FixPoint value)
          Construct an UnsizedFixToken with the supplied FixPoint value.
 
Method Summary
 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, 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsizedFixToken

public UnsizedFixToken()
Construct a token with integer 0. This method calls the FixPoint.FixPoint(int) constructor, so the precision and quantization are the 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.
Method Detail

getType

public Type getType()
Return the type of this token.

Overrides:
getType in class FixToken
Returns:
BaseType.UNSIZED_FIX.