Package ptolemy.data

Class TokenUtilities


  • public class TokenUtilities
    extends java.lang.Object
    Various methods and fields that are used from within the various token classes. This code is factored out here into a separate class to allow for simple use by the code generator.
    Since:
    Ptolemy II 2.1
    Version:
    $Id$
    Author:
    Steve Neuendorffer
    Pt.AcceptedRating:
    Green (cxh)
    Pt.ProposedRating:
    Green (neuendor)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.text.DecimalFormat exponentialFormat
      The format that is used to print floating point numbers that are very large, or very small.
      static java.text.DecimalFormat regularFormat
      The format that is used to print floating point numbers that are not very large, or very small.
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenUtilities()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • regularFormat

        public static final java.text.DecimalFormat regularFormat
        The format that is used to print floating point numbers that are not very large, or very small. The number of fractional digits here is determined by the place at which common numbers, such as one half, will get rounded to display nicely.
      • exponentialFormat

        public static final java.text.DecimalFormat exponentialFormat
        The format that is used to print floating point numbers that are very large, or very small.
    • Constructor Detail

      • TokenUtilities

        public TokenUtilities()