theory.smart.axiom.units
Class QuantityImpl
java.lang.Object
|
+--theory.smart.foundation.BelongingImpl
|
+--theory.smart.axiom.units.QuantityImpl
- public class QuantityImpl
- extends BelongingImpl
- implements Quantity
The quantity of something. It has a count and a unit of measure (e.g. 4 bags, 5 liters)
- See Also:
Quantity
,
QuantityHome
, Serialized Form
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
count
public double count
count
[Quantity] <*>------> [double
]
unit
public Unit unit
unit
[Quantity] <*>------> [theory.smart.axiom.units.Unit
]
QuantityImpl
public QuantityImpl()
getCount
public double getCount()
- Get the value of count
- Specified by:
- getCount in interface Quantity
- Returns:
- count.
setCount
public void setCount(double count)
- Set the value of count
- Specified by:
- setCount in interface Quantity
- Parameters:
count
- count to be added
getUnit
public Unit getUnit()
- Get the value of unit
- Specified by:
- getUnit in interface Quantity
- Returns:
- unit.
setUnit
public void setUnit(Unit unit)
- Set the value of unit
- Specified by:
- setUnit in interface Quantity
- Parameters:
unit
- unit to be added
value
public Belonging value()
compareTo
public int compareTo(java.lang.Object o)
- Overrides:
- compareTo in class BelongingImpl
Copyright © 2000 BEA Systems, Inc. All Rights Reserved