etomica.units
Class CompoundDimension

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

public class CompoundDimension
extends Dimension

See Also:
Serialized Form

Field Summary
 
Fields inherited from class etomica.units.Dimension
MIXED, N_BASE
 
Constructor Summary
CompoundDimension(Dimension[] dimensions, double[] exponents)
           
CompoundDimension(Dimension[] dimensions, double[] exponents, String name)
           
 
Method Summary
 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
 

Constructor Detail

CompoundDimension

public CompoundDimension(Dimension[] dimensions,
                         double[] exponents)

CompoundDimension

public CompoundDimension(Dimension[] dimensions,
                         double[] exponents,
                         String name)
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