Modifier and Type | Method and Description |
---|---|
Unit |
Unit.cloneObject()
Creates and returns a deep copy of this
Unit object. |
Unit |
UnitDefinition.createUnit()
Creates a new and empty
Unit , adds it to this UnitDefinition 's list of
units, and returns it. |
Unit |
Model.createUnit()
Creates a new
Unit object within the last UnitDefinition object
created in this model and returns a pointer to it. |
Unit |
ListOfUnits.get(long n)
Get a
Unit from the ListOfUnits . |
Unit |
UnitDefinition.getUnit(long n)
Returns a specific
Unit instance belonging to this UnitDefinition . |
Unit |
ListOfUnits.remove(long n)
Removes the nth item from this
ListOfUnits items and returns a pointer to
it. |
Unit |
UnitDefinition.removeUnit(long n)
Removes the nth
Unit object from this UnitDefinition object and
returns a pointer to it. |
Modifier and Type | Method and Description |
---|---|
int |
UnitDefinition.addUnit(Unit u)
Adds a copy of the given
Unit to this UnitDefinition . |
static boolean |
Unit.areEquivalent(Unit unit1,
Unit unit2)
Predicate returning
true if
Unit objects are equivalent. |
static boolean |
Unit.areIdentical(Unit unit1,
Unit unit2)
Predicate returning
true if two
Unit objects are identical. |
static UnitDefinition |
Unit.convertToSI(Unit unit)
Returns a
UnitDefinition object containing the given unit converted
to the appropriate SI unit. |
static void |
Unit.merge(Unit unit1,
Unit unit2)
|
static int |
Unit.removeScale(Unit unit)
Manipulates the attributes of the
Unit to express the unit with the
value of the scale attribute reduced to zero. |
Constructor and Description |
---|
Unit(Unit orig)
Copy constructor; creates a copy of this
Unit . |