|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.rubecula.jquantity.BaseUnit
|
+--com.rubecula.jquantity.SiUnit
This class represents, in its most primitive form, a unit of the Systeme International (SI). Only the dimension (type) of unit is represented here.
| Field Summary | |
protected static int |
$DimAngle
|
protected static int |
$DimConcentration
|
protected static int |
$DimCurrency
|
protected static int |
$DimCurrent
|
protected static int |
$DimDegree
|
protected static int |
$DimLength
|
protected static int |
$DimLight
|
protected static int |
$DimMass
|
protected static int |
$DimMax
|
protected static int |
$DimNone
|
protected static int |
$DimTime
|
static SiUnit |
ANGULAR
|
static SiUnit |
CURRENT
|
static SiUnit |
LINEAR
|
static SiUnit |
LUXAL
|
static SiUnit |
MASSIVE
|
static SiUnit |
MOLAR
|
static SiUnit |
MONETARY
|
static SiUnit |
NUMERIC
|
static SiUnit |
TEMPORAL
|
static SiUnit |
THERMAL
|
| Constructor Summary | |
(package private) |
SiUnit(int dimension)
Primary constructor to create a SiUnit. |
| Method Summary | |
BaseUnit |
flatten()
Method to reduce a Units tree to a single flattened version. |
Dimensions |
getDimensions()
Method to return the dimensions of this Measurable. |
Rational |
getOffset()
Method to return the offset of this Measurable. |
Rational |
getScale()
Method to return the scale of this Measurable. |
boolean |
isInSystem(int systemIndex)
Method to determine if this Measurable is in a certain system of units. |
boolean |
isNumber()
Method to determine if this is dimensionless (i.e. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
|
| Methods inherited from class com.rubecula.jquantity.BaseUnit |
isEqual, isParallel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final int $DimNone
protected static final int $DimLength
protected static final int $DimTime
protected static final int $DimMass
protected static final int $DimAngle
protected static final int $DimCurrent
protected static final int $DimDegree
protected static final int $DimLight
protected static final int $DimConcentration
protected static final int $DimCurrency
protected static final int $DimMax
public static final SiUnit NUMERIC
public static final SiUnit LINEAR
public static final SiUnit TEMPORAL
public static final SiUnit MASSIVE
public static final SiUnit ANGULAR
public static final SiUnit CURRENT
public static final SiUnit THERMAL
public static final SiUnit LUXAL
public static final SiUnit MOLAR
public static final SiUnit MONETARY
| Constructor Detail |
SiUnit(int dimension)
dimension - which dimension (according to the values defined below).| Method Detail |
public Dimensions getDimensions()
public Rational getScale()
public Rational getOffset()
public boolean isInSystem(int systemIndex)
isInSystem in class BaseUnitsystemIndex - the index of the units system.
public BaseUnit flatten()
throws JQuantityException
flatten in class BaseUnitJQuantityExceptionpublic boolean isNumber()
isNumber in class BaseUnitpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||