ptolemy.data
Class TokenUtilities

java.lang.Object
  extended by ptolemy.data.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: TokenUtilities.java 57046 2010-01-27 23:35:53Z cxh $
Author:
Steve Neuendorffer
Accepted Rating:
Green (cxh)
Proposed Rating:
Green (neuendor)

Field Summary
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
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()