ptolemy.data.expr
Class ConcreteScalarToken

java.lang.Object
  |
  +--ptolemy.data.Token
        |
        +--ptolemy.data.ScalarToken
              |
              +--ptolemy.data.expr.ConcreteScalarToken
All Implemented Interfaces:
java.io.Serializable

public class ConcreteScalarToken
extends ScalarToken

A token that represents a scalar of any type. This is instantiated by the Constants class with name "scalar".

Since:
Ptolemy II 2.0
Version:
$Id: ConcreteScalarToken.java,v 1.3 2002/02/21 20:24:59 cxh Exp $
Author:
Edward A. Lee
See Also:
Serialized Form

Fields inherited from class ptolemy.data.ScalarToken
_unitCategoryExponents
 
Constructor Summary
ConcreteScalarToken()
           
 
Method Summary
 ScalarToken absolute()
          Return this token.
 Type getType()
          Return the type of this token.
 BooleanToken isLessThan(ScalarToken arg)
          Return false.
 
Methods inherited from class ptolemy.data.ScalarToken
_addCategoryExponents, _areUnitsEqual, _copyOfCategoryExponents, _isUnitless, _subtractCategoryExponents, complexValue, doubleValue, fixValue, intValue, inUnitsOf, longValue, setUnitCategory, unitsString
 
Methods inherited from class ptolemy.data.Token
_notSupportedMessage, add, addReverse, convert, divide, divideReverse, equals, hashCode, isCloseTo, isCloseTo, isEqualTo, modulo, moduloReverse, multiply, multiplyReverse, one, subtract, subtractReverse, toString, zero
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcreteScalarToken

public ConcreteScalarToken()
Method Detail

absolute

public ScalarToken absolute()
Return this token.
Overrides:
absolute in class ScalarToken
Returns:
This token.

isLessThan

public BooleanToken isLessThan(ScalarToken arg)
Return false.
Overrides:
isLessThan in class ScalarToken
Parameters:
arg - A token to compare against.
Returns:
A BooleanToken with value false.

getType

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