|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dautelle.physics.models.PhysicalModel
This abstract class represents a physical model. Instances of this
class determinate the dimensional units of the seven base quantities:
Length
,
Mass
,
Duration
,
ElectricCurrent
,
Temperature
(thermodynamic),
AmountOfSubstance
and
LuminousIntensity
.
To select a model, one needs only to call the model select
static method. For example:
RelativisticModel.select();Selecting a predefined model automatically sets the
Quantity
current model, which specifies the default output units for quantities.
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. |
protected abstract void |
setPhysicalDimensions()
Sets the dimensional units of the seven base quantities: Length ,
Mass ,
Duration ,
ElectricCurrent ,
Temperature (thermodynamic),
AmountOfSubstance and
LuminousIntensity . |
Unit |
unitFor(Quantity quantity)
Returns the default output unit for the specified quantity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PhysicalModel()
Method Detail |
public static final PhysicalModel current()
StandardModel
).
The current model specifies the default output units of physical
quantities.
protected static final void setCurrent(PhysicalModel model)
model
- the context-local physical model.current()
public Unit unitFor(Quantity quantity)
quantity
- the quantity for which the default output unit
is returned.
quantity.getSystemUnit().getDimension()
protected abstract void setPhysicalDimensions()
Length
,
Mass
,
Duration
,
ElectricCurrent
,
Temperature
(thermodynamic),
AmountOfSubstance
and
LuminousIntensity
.
BaseUnit.setDimension(javax.units.Unit, javax.units.Converter)
|
JADE v6.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |