theory.smart.axiom.units
Class UnitConverterImpl
java.lang.Object
|
+--theory.smart.foundation.SessionImpl
|
+--theory.smart.axiom.units.UnitConverterImpl
- public class UnitConverterImpl
- extends SessionImpl
The Unit Converter provides intelligent conversion of Quantities between various units.
- See Also:
UnitConverter
,
UnitConverterHome
, Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UnitConverterImpl
public UnitConverterImpl()
throws CreateException
ejbCreate
public void ejbCreate()
throws CreateException,
java.rmi.RemoteException
- Overrides:
- ejbCreate in class SessionImpl
ejbPostCreate
public void ejbPostCreate()
throws CreateException,
java.rmi.RemoteException
- Overrides:
- ejbPostCreate in class SessionImpl
ejbActivate
public void ejbActivate()
throws java.rmi.RemoteException
- Overrides:
- ejbActivate in class SessionImpl
ejbPassivate
public void ejbPassivate()
throws java.rmi.RemoteException
- Overrides:
- ejbPassivate in class SessionImpl
ejbRemove
public void ejbRemove()
throws java.rmi.RemoteException
- Overrides:
- ejbRemove in class SessionImpl
setSessionContext
public void setSessionContext(SessionContext ctx)
throws java.rmi.RemoteException
- Overrides:
- setSessionContext in class SessionImpl
convert
public Quantity convert(Quantity qty,
Unit unit)
throws java.rmi.RemoteException
- Convert the input quanity into a new Quanity with the specified Unit. The category of the unit is first determined and the appropriate Unit Conversion is retrieved. The Quantity is the converted first to the atomic unit and then to the requested unit.
convert
public Quantity convert(Quantity qty,
Unit unit,
java.lang.String category)
throws java.rmi.RemoteException
- Convert the input quanity into a new Quanity with the specified Unit. The caller specifes the category of the unit so that the appropriate Unit Conversion can be more quickly retrieved. The Quantity is converted first to the atomic unit and then into the requested unit.
© Copyright 2000 bea Systems, Inc. All rights reserved.