|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.agmodel.physical.AbstractQuantity
This abstract class represents a measurable amount. This class defines abstract methods to get the value of a quantity using the "Syst?me International d'Unit?s" (SI) and to get the associated SI dimension.
| Field Summary | |
protected static int |
AMOUNT_OF_SUBSTANCE
SI base unit for amount of substance. |
static float |
COMPLETE
|
protected int |
derivation
|
static float |
DEVOID
|
protected static int |
DIMENSIONLESS
SI base unit dimensionless. |
protected static int |
ELECTRIC_CURRENT
SI base unit for electric current. |
protected static int |
LENGTH
SI base unit for length. |
protected static int |
LUMINOUS_INTENSITY
SI base unit for luminous intensity. |
protected static int |
MASS
SI base unit for mass. |
static int |
SPATIALLYINTERPOLATED
|
static int |
TEMPORALLYINTERPOLATED
|
protected static int |
THERMODYNAMIC_TEMPERATURE
SI base unit for thermodynamic temperature. |
protected static int |
TIME
SI base unit for time |
static int |
UNINTERPOLATED
|
| Constructor Summary | |
AbstractQuantity()
|
|
| Method Summary | |
Object |
clone()
|
Composite |
divide(AbstractQuantity x)
Returns the Composite whose value is (this / x). |
protected abstract int |
getDimensionSI()
Gets the SI dimension of this quantity. |
protected String |
getSymbolSI()
Returns the String representation of the symbol associated to this quantity (1/s, m/s^2, molxK^3/ca/Kg^3, for example) |
protected abstract double |
getValueSI()
Gets the quantity in the SI unit. |
boolean |
isSpatiallyInterpolated()
|
boolean |
isTemporallyInterpolated()
|
Composite |
multiply(AbstractQuantity x)
Returns the Composite whose value is (this * x). |
Composite |
toComposite()
Converts a simple quantity to Composite. |
String |
toString()
Returns the decimal String representation of this quantity in SI units. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final int DIMENSIONLESS
protected static final int LUMINOUS_INTENSITY
protected static final int AMOUNT_OF_SUBSTANCE
protected static final int THERMODYNAMIC_TEMPERATURE
protected static final int ELECTRIC_CURRENT
protected static final int TIME
protected static final int MASS
protected static final int LENGTH
public static final int UNINTERPOLATED
public static final int TEMPORALLYINTERPOLATED
public static final int SPATIALLYINTERPOLATED
public static final float COMPLETE
public static final float DEVOID
protected int derivation
| Constructor Detail |
public AbstractQuantity()
| Method Detail |
public Composite multiply(AbstractQuantity x)
x - the quantity multiplier.
public Composite divide(AbstractQuantity x)
x - the quantity divisor.
ArithmeticException - x.getValueSI() == 0.0public Composite toComposite()
public String toString()
toString in class Objectprotected String getSymbolSI()
protected abstract double getValueSI()
protected abstract int getDimensionSI()
public boolean isTemporallyInterpolated()
public boolean isSpatiallyInterpolated()
public Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||