etomica.units
Class Undefined

java.lang.Object
  extended by etomica.units.Dimension
      extended by etomica.units.Undefined
All Implemented Interfaces:
Serializable

public final class Undefined
extends Dimension

Undefined dimension used for quantities with undefined or unknown dimensions.

See Also:
Serialized Form

Field Summary
static Dimension DIMENSION
          Singleton instance of this class.
static Unit UNIT
          Unit for a quantity having undefined or unknown units.
 
Fields inherited from class etomica.units.Dimension
MIXED, N_BASE
 
Method Summary
 boolean equals(Object obj)
          Returns true if the given object is the singleton instance of this class.
 Unit getUnit(UnitSystem unitSystem)
          Returns UNIT, regardless of the given unit system.
 
Methods inherited from class etomica.units.Dimension
introspect, signature, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIMENSION

public static final Dimension DIMENSION
Singleton instance of this class.


UNIT

public static final Unit UNIT
Unit for a quantity having undefined or unknown units. Any conversion using this unit will cause output to be NaN (not a number).

Method Detail

equals

public boolean equals(Object obj)
Returns true if the given object is the singleton instance of this class.

Overrides:
equals in class Dimension

getUnit

public Unit getUnit(UnitSystem unitSystem)
Returns UNIT, regardless of the given unit system.

Overrides:
getUnit in class Dimension