JADE v6.1

com.dautelle.physics.models
Class StandardModel

java.lang.Object
  extended bycom.dautelle.physics.models.PhysicalModel
      extended bycom.dautelle.physics.models.StandardModel

public final class StandardModel
extends PhysicalModel

This class represents the standard model. Physical quantities are displayed using the "Système International d'Unités" (SI).

Version:
4.1, February 17, 2003
Author:
Jean-Marie Dautelle
See Also:
SI

Constructor Summary
protected StandardModel()
          Default constructor (allows for derivation).
 
Method Summary
static void select()
          Selects the standard model as the current model.
protected  void setPhysicalDimensions()
          Sets the dimensional units of the seven base quantities as follow: Length : "m" Mass : "kg" Duration : "s" ElectricCurrent : "A" Temperature : "K" AmountOfSubstance : "mol" LuminousIntensity : "cd"
 Unit unitFor(Quantity quantity)
          Returns the default output unit for the specified quantity.
 
Methods inherited from class com.dautelle.physics.models.PhysicalModel
current, setCurrent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardModel

protected StandardModel()
Default constructor (allows for derivation).

Method Detail

select

public static void select()
Selects the standard model as the current model.


unitFor

public Unit unitFor(Quantity quantity)
Returns the default output unit for the specified quantity. This method returns the system unit of the specified quantity or one of the following SI units:

Overrides:
unitFor in class PhysicalModel
Parameters:
quantity - the quantity for which the default output unit is returned.
Returns:
quantity.getSystemUnit() or one of the SI units above.

setPhysicalDimensions

protected final void setPhysicalDimensions()
Sets the dimensional units of the seven base quantities as follow:

Specified by:
setPhysicalDimensions in class PhysicalModel
See Also:
BaseUnit.setDimension(javax.units.Unit, javax.units.Converter)

JADE v6.1

Copyright © 2004 Jean-Marie Dautelle.