Package ome.model.units
Class Conversion.Sym
- java.lang.Object
-
- ome.model.units.Conversion
-
- ome.model.units.Conversion.Sym
-
- Enclosing class:
- Conversion
public static class Conversion.Sym extends Conversion
Simply represents the variable of the source unit so thatconvert(double)
just returns the value passed in.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ome.model.units.Conversion
Conversion.Add, Conversion.Int, Conversion.Mul, Conversion.Pow, Conversion.Rat, Conversion.Sym
-
-
Field Summary
-
Fields inherited from class ome.model.units.Conversion
conversions
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
convert(double original)
Primary operator forConversion
instances.
-
-
-
Method Detail
-
convert
public java.math.BigDecimal convert(double original)
Description copied from class:Conversion
Primary operator forConversion
instances.- Specified by:
convert
in classConversion
- Parameters:
original
- A unit value which is to be processed through the tree-like representation of this equation. OnlyConversion.Sym
objects will actually use the "original" value.- Returns:
- a
BigDecimal
result from the calculation. If this value maps toDouble.NEGATIVE_INFINITY
orDouble.POSITIVE_INFINITY
, then aBigResult
exception should be thrown before returning to clients.
-
-