Package ptolemy.data

Class 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)
    • Constructor Detail

      • UnsizedFixToken

        public UnsizedFixToken()
        Construct a fixed-point token. This method calls the FixPoint(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.
    • Method Detail

      • getType

        public Type getType()
        Return the type of this token.
        Overrides:
        getType in class FixToken
        Returns:
        BaseType.UNSIZED_FIX.