|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Combines a unit and a price to provide a mechanism for recording pricing and pricing strategies. It also provides features for converting prices between units.
price
[UnitPrice] <*>------> [theory.smart.axiom.units.Price
]
unit
[UnitPrice] <*>------> [theory.smart.axiom.units.Unit
]
UnitPriceHome
,
UnitPriceImpl
Method Summary | |
UnitPrice |
convert(Unit newUnit)
Return a new UnitPrice that maintains the Price/Unit ratio with the newly specified unit. |
void |
convertInPlace(Unit newUnit)
Translate the UnitPrice into the new Units maintaining the Price/Unit ratio. |
Price |
getPrice()
Get the value of price |
Unit |
getUnit()
Get the value of unit |
void |
setPrice(Price price)
Set the value of price |
void |
setUnit(Unit unit)
Set the value of unit |
Methods inherited from interface theory.smart.foundation.Belonging |
equals,
value |
Methods inherited from interface com.sun.java.util.collections.Comparable |
compareTo |
Method Detail |
public Price getPrice()
public void setPrice(Price price)
prices
- price to be addedpublic Unit getUnit()
public void setUnit(Unit unit)
units
- unit to be addedpublic UnitPrice convert(Unit newUnit) throws java.rmi.RemoteException
public void convertInPlace(Unit newUnit) throws java.rmi.RemoteException
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |