org.openl.types.science
Class ZeroBasedUnit

java.lang.Object
  extended by org.openl.types.science.AMultiplicativeExpression
      extended by org.openl.types.science.ASimpleUnit
          extended by org.openl.types.science.ZeroBasedUnit
All Implemented Interfaces:
INamedThing, IDimensionPower, IMultiplicativeExpression, IUnit
Direct Known Subclasses:
DistanceUnit, MassUnit, TimeUnit

public class ZeroBasedUnit
extends ASimpleUnit

Author:
snshor

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openl.base.INamedThing
INamedThing.NameConverter<T extends INamedThing>, INamedThing.NameSelector, INamedThing.Tool
 
Field Summary
 
Fields inherited from interface org.openl.base.INamedThing
EMPTY, LONG, NAME_CONVERTOR, REGULAR, SHORT
 
Constructor Summary
ZeroBasedUnit(String name, IDimension dimension, double normalMultiplier)
           
 
Method Summary
 IMultiplicativeExpression changeScalar(double newScalar)
           
 double normalize(double value)
           
 
Methods inherited from class org.openl.types.science.ASimpleUnit
getDimension, getDimensionCount, getDimensionPower, getDimensionsPowers, getDisplayName, getName, getPower, getScalar
 
Methods inherited from class org.openl.types.science.AMultiplicativeExpression
add, divide, isAdditiveCompatible, multiply, negate, print, printAs, printAs, printInSystem, subtract, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openl.types.science.IMultiplicativeExpression
add, divide, multiply, negate, printAs, printAs, printInSystem, subtract
 

Constructor Detail

ZeroBasedUnit

public ZeroBasedUnit(String name,
                     IDimension dimension,
                     double normalMultiplier)
Parameters:
dimension -
Method Detail

changeScalar

public IMultiplicativeExpression changeScalar(double newScalar)

normalize

public double normalize(double value)
Specified by:
normalize in class ASimpleUnit


Copyright © 2011. All Rights Reserved.