Package | Description |
---|---|
ptolemy.moml.unit |
Unit System Modeling Markup Language classes.
|
Modifier and Type | Field and Description |
---|---|
static Unit |
UnitLibrary.Identity
The Identity Unit, i.e. 1.0*<0, 0, ..., 0>
|
Modifier and Type | Method and Description |
---|---|
Unit |
Unit.copy()
Make a copy of this Unit.
|
Unit |
Unit.divideBy(Unit divisor)
Divide this Unit by another Unit.
|
Unit |
Bindings.get(java.lang.String vLabel)
Get the value for a variable.
|
static Unit |
UnitLibrary.getBaseUnit(int catNum)
Find the Unit in the library that is basic (scale equal to 1),
singular (all but one dimensions equal to 0).
|
static Unit |
UnitLibrary.getClosestUnit(Unit unit)
Search Library to find Unit that has the same type and is the
closest to a unit in terms of the scalars.
|
Unit |
UnitExpr.getSingleUnit()
If this UnitExpr has one term and it is a Unit then return that Unit.
|
Unit |
UnitTerm.getUnit()
Get the element if it is a Unit.
|
static Unit |
UnitLibrary.getUnit(Unit unit)
Search Library for Unit equal to a particular unit.
|
static Unit |
UnitLibrary.getUnitByName(java.lang.String name)
Search the Library for a unit with a particular name.
|
Unit |
Unit.invert()
Invert this Unit.
|
Unit |
Unit.multiplyBy(Unit multiplicand)
Multiply this Unit by another Unit.
|
Unit |
Unit.pow(double power)
Returns of value of this Unit raised to the power of the argument.
|
Modifier and Type | Method and Description |
---|---|
static void |
UnitLibrary.addToLibrary(Unit unit)
Add a unit to the Library.
|
Unit |
Unit.divideBy(Unit divisor)
Divide this Unit by another Unit.
|
static Unit |
UnitLibrary.getClosestUnit(Unit unit)
Search Library to find Unit that has the same type and is the
closest to a unit in terms of the scalars.
|
static Unit |
UnitLibrary.getUnit(Unit unit)
Search Library for Unit equal to a particular unit.
|
static java.util.Vector |
UnitLibrary.getUnitsByType(Unit unit)
Search Library for all Units with type equal to this one.
|
boolean |
Unit.hasSameType(Unit otherUnit)
Return true if the Unit has the same type as another Unit.
|
Unit |
Unit.multiplyBy(Unit multiplicand)
Multiply this Unit by another Unit.
|
void |
Bindings.put(java.lang.String varLabel,
Unit U)
Create a binding for a variable and Unit.
|
void |
UnitTerm.setUnit(Unit unit)
Set the element to be a Unit.
|
Constructor and Description |
---|
UnitTerm(Unit unit)
Construct an instance where the contained element is a Unit.
|