|
bea Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--theory.smart.foundation.BelongingImpl
|
+--theory.smart.axiom.units.QuantityImpl
The quantity of something. It has a count and a unit of measure (e.g. 4 bags, 5 liters)
Quantity,
QuantityHome, Serialized Form| Field Summary | |
double |
count
count [Quantity] <*>------> [ double]
|
Unit |
unit
unit [Quantity] <*>------> [ theory.smart.axiom.units.Unit]
|
| Fields inherited from class theory.smart.foundation.BelongingImpl |
isDirty |
| Constructor Summary | |
QuantityImpl()
|
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
double |
getCount()
Get the value of count |
Unit |
getUnit()
Get the value of unit |
void |
setCount(double count)
Set the value of count |
void |
setUnit(Unit unit)
Set the value of unit |
Belonging |
value()
|
| Methods inherited from class theory.smart.foundation.BelongingImpl |
equals |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public double count
count
[Quantity] <*>------> [double]
public Unit unit
unit
[Quantity] <*>------> [theory.smart.axiom.units.Unit]
| Constructor Detail |
public QuantityImpl()
| Method Detail |
public double getCount()
public void setCount(double count)
count - count to be addedpublic Unit getUnit()
public void setUnit(Unit unit)
unit - unit to be addedpublic Belonging value()
public int compareTo(java.lang.Object o)
|
bea Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||