Package org.jscience.physics.model
Class PhysicalModel
- java.lang.Object
-
- org.jscience.physics.model.PhysicalModel
-
- All Implemented Interfaces:
javax.measure.unit.Dimension.Model
- Direct Known Subclasses:
HighEnergyModel
,NaturalModel
,QuantumModel
,RelativisticModel
,StandardModel
public abstract class PhysicalModel extends java.lang.Object implements javax.measure.unit.Dimension.Model
This abstract class represents a physical model. Instances of this class determinate the current quantities dimensions.
To select a model, one needs only to call the model
select
static method. For example:[code] public static void main(String[] args) { // Global (LocalContext should be used for thread-local settings). RelativisticModel.select(); ... [/code]Selecting a predefined model automatically sets the dimension of the
base units
.- Version:
- 3.1, April 22, 2006
- Author:
- Jean-Marie Dautelle
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PhysicalModel
current()
Returns the current physical model (default: instance ofStandardModel
).
-
-
-
Method Detail
-
current
public static final PhysicalModel current()
Returns the current physical model (default: instance ofStandardModel
).- Returns:
- the context-local physical model.
-
-