org.jscience.physics.model
Class PhysicalModel
- java.lang.Object
-
- org.jscience.physics.model.PhysicalModel
-
- All Implemented Interfaces:
- Dimension.Model
- Direct Known Subclasses:
- HighEnergyModel, NaturalModel, QuantumModel, RelativisticModel, StandardModel
public abstract class PhysicalModel extends java.lang.Object implements 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
selectstatic method. For example:public static void main(String[] args) { // Global (LocalContext should be used for thread-local settings). RelativisticModel.select(); ...Selecting a predefined model automatically sets the dimension of the
base units.
-
-
Field Summary
-
Fields inherited from interface javax.measure.unit.Dimension.Model
STANDARD
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static PhysicalModelcurrent()Returns the current physical model (default: instance ofStandardModel).-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.measure.unit.Dimension.Model
getDimension, getTransform
-
-
-
-
Method Detail
-
current
public static final PhysicalModel current()
Returns the current physical model (default: instance ofStandardModel).- Returns:
- the context-local physical model.
-
-
DMelt 3.0 © DataMelt by jWork.ORG