etomica.units
Class Volume

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

public final class Volume
extends Dimension

Dimension for all volume units.

See Also:
Serialized Form

Field Summary
static Dimension DIMENSION
          Singleton instance of this class.
static Unit SIM_UNIT
          Simulation unit of volume is cubic Angstroms.
 
Fields inherited from class etomica.units.Dimension
MIXED, N_BASE
 
Method Summary
static Dimension dimension(int D)
          Returns the Dimension instance for the "volume" appropriate to the given dimension.
 Unit getUnit(UnitSystem unitSystem)
          Returns the unit of this dimension as derived in the given system of units.
 
Methods inherited from class etomica.units.Dimension
equals, 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.


SIM_UNIT

public static final Unit SIM_UNIT
Simulation unit of volume is cubic Angstroms.

Method Detail

getUnit

public Unit getUnit(UnitSystem unitSystem)
Description copied from class: Dimension
Returns the unit of this dimension as derived in the given system of units. Default constructs a CompoundUnit using the base units of the unit system.

Overrides:
getUnit in class Dimension

dimension

public static Dimension dimension(int D)
Returns the Dimension instance for the "volume" appropriate to the given dimension. In particular, for D = 3, returns Volume.DIMENSION; for D = 2, returns Area.DIMENSION; for D = 1, returns Length.DIMENSION.

Throws:
IllegalArgumentException - if D is not equal to 1, 2, or 3.