|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.models.PhysicalModel
public abstract class PhysicalModel
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:
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.units.Dimension.Model |
|---|
STANDARD |
| Constructor Summary | |
|---|---|
protected |
PhysicalModel()
Default constructor (allows for derivation). |
| Method Summary | |
|---|---|
static PhysicalModel |
current()
Returns the current physical model (default: instance of StandardModel). |
protected static void |
setCurrent(PhysicalModel model)
Sets the current model (this method is called when the a predefined model is selected). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.measure.units.Dimension.Model |
|---|
getDimension, getTransform |
| Constructor Detail |
|---|
protected PhysicalModel()
| Method Detail |
|---|
public static final PhysicalModel current()
StandardModel).
protected static final void setCurrent(PhysicalModel model)
model - the context-local physical model.current()
|
JScience v3.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||