public abstract class ASimpleUnit extends AMultiplicativeExpression implements IUnit, IDimensionPower, INamedThing
EMPTY, LONG, REGULAR, SHORT| Modifier | Constructor and Description |
|---|---|
protected |
ASimpleUnit(String name,
IDimension dimension)
Converts value measured in this unit into value "normal" in this
dimension.
|
| Modifier and Type | Method and Description |
|---|---|
IDimension |
getDimension() |
int |
getDimensionCount()
Returns number of different dimensions it has
|
IDimensionPower |
getDimensionPower(IDimension id) |
Iterable<IDimensionPower> |
getDimensionsPowers() |
String |
getDisplayName(int mode) |
String |
getName() |
int |
getPower() |
double |
getScalar()
Return scalar part of the expression
|
abstract double |
normalize(double value) |
add, divide, isAdditiveCompatible, multiply, negate, print, printAs, printAs, printInSystem, subtract, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, changeScalar, divide, multiply, negate, printAs, printAs, printInSystem, subtractprotected ASimpleUnit(String name, IDimension dimension)
value - public IDimension getDimension()
getDimension in interface IDimensionPowerpublic int getDimensionCount()
IMultiplicativeExpressiongetDimensionCount in interface IMultiplicativeExpressionpublic IDimensionPower getDimensionPower(IDimension id)
getDimensionPower in interface IMultiplicativeExpressionpublic Iterable<IDimensionPower> getDimensionsPowers()
getDimensionsPowers in interface IMultiplicativeExpressionpublic String getDisplayName(int mode)
getDisplayName in interface INamedThingpublic String getName()
getName in interface INamedThinggetName in interface IUnitpublic int getPower()
getPower in interface IDimensionPowerpublic double getScalar()
IMultiplicativeExpressiongetScalar in interface IMultiplicativeExpressionpublic abstract double normalize(double value)
Copyright © 2016. All rights reserved.