|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.units.systems.LJ.LJUnit
public abstract static class LJ.LJUnit
| Field Summary | |
|---|---|
protected LJ |
lj
|
| Constructor Summary | |
|---|---|
protected |
LJ.LJUnit(LJ ljSystem)
Unit must provide instance of LJ unit system at construction. |
| Method Summary | |
|---|---|
abstract Dimension |
dimension()
Returns the dimension of the unit. |
abstract double |
fromSim(double x)
Takes the given value in simulation units and converts it to class units (considering prefix). |
boolean |
prefixAllowed()
Indicates if the unit is appropriate for use with a prefix. |
abstract String |
symbol()
Returns the symbol of unit, such as "g" for grams. |
double |
toSim(double x)
Takes the given value in class units (considering prefix) and converts it to simulation units. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final LJ lj
| Constructor Detail |
|---|
protected LJ.LJUnit(LJ ljSystem)
| Method Detail |
|---|
public abstract Dimension dimension()
Unit
dimension in interface Unitpublic abstract String symbol()
Unit
symbol in interface Unitpublic abstract double fromSim(double x)
Unit
fromSim in interface Unitx - a value in simulation units
public double toSim(double x)
Unit
toSim in interface Unitx - a value in units of the class
public boolean prefixAllowed()
Unit
prefixAllowed in interface Unit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||