convertValue
public static double convertValue(MboRemote thisMbo,
double value,
java.lang.String fromUnitId,
java.lang.String toUnitId)
throws java.rmi.RemoteException,
MXException
Convert the given value from the measure unit fromUnitId to the measure unit tounitId
The converion record must exists. If not, it throw an exception
- Parameters:
value
- the double value to convert
fromUnitId
- the measureunitid in which the value is currently specified
toUnitId
- the measureunitid in which the value should be converted to
- Returns:
- the convert value according to the conversion factor. Cannot be null
- Throws:
java.rmi.RemoteException
MXException