net.agmodel.physical
Class AbstractQuantity

java.lang.Object
  extended bynet.agmodel.physical.AbstractQuantity
All Implemented Interfaces:
Cloneable, Serializable
Direct Known Subclasses:
Acceleration, Angle, Area, Composite, Duration, Frequency, Length, Mass, Proportion, Radiation, Speed, Temperature, Volume, VolumetricDensity

public abstract class AbstractQuantity
extends Object
implements Serializable, Cloneable

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.

Version:
1.1, 22 March 1999
Author:
Jean-Marie Dautelle
See Also:
Serialized Form

Field Summary
static float COMPLETE
           
static float DEVOID
           
static int SPATIALLYINTERPOLATED
           
static int TEMPORALLYINTERPOLATED
           
static int UNINTERPOLATED
           
 
Constructor Summary
AbstractQuantity()
           
 
Method Summary
 Object clone()
           
 Composite divide(AbstractQuantity x)
          Returns the Composite whose value is (this / x).
 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNINTERPOLATED

public static final int UNINTERPOLATED
See Also:
Constant Field Values

TEMPORALLYINTERPOLATED

public static final int TEMPORALLYINTERPOLATED
See Also:
Constant Field Values

SPATIALLYINTERPOLATED

public static final int SPATIALLYINTERPOLATED
See Also:
Constant Field Values

COMPLETE

public static final float COMPLETE
See Also:
Constant Field Values

DEVOID

public static final float DEVOID
See Also:
Constant Field Values
Constructor Detail

AbstractQuantity

public AbstractQuantity()
Method Detail

multiply

public Composite multiply(AbstractQuantity x)
Returns the Composite whose value is (this * x).

Parameters:
x - the quantity multiplier.
Returns:
(this * x)

divide

public Composite divide(AbstractQuantity x)
Returns the Composite whose value is (this / x).

Parameters:
x - the quantity divisor.
Returns:
(this / x)
Throws:
ArithmeticException - x.getValueSI() == 0.0

toComposite

public Composite toComposite()
Converts a simple quantity to Composite.

Returns:
the composite corresponding to the specified quantity.

toString

public String toString()
Returns the decimal String representation of this quantity in SI units.

Returns:
decimal String representation of this quantity in SI units followed by its SI symbol.

isTemporallyInterpolated

public boolean isTemporallyInterpolated()

isSpatiallyInterpolated

public boolean isSpatiallyInterpolated()

clone

public Object clone()


Copyright (C) NARC 2001 All Rights Reserved.