public interface Unit extends ModelEntity
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
aliases()
Returns the aliases for the unit.
|
Unit |
aliases(java.lang.String[] aliases)
Sets the aliases for the unit.
|
Unit |
definition(java.lang.String[] units,
int[] powers)
Sets the definition of a derived unit in powers of other units.
|
int[] |
dimension()
Returns the dimension of the unit.
|
double |
offset()
Returns the offset of the unit.
|
Unit |
offset(double offset)
Set the offset of the unit.
|
java.lang.String |
quantity()
Returns the quantity of the unit.
|
Unit |
quantity(java.lang.String quantity)
Sets the quantity of the unit.
|
double |
scale()
Returns the scale of the unit.
|
Unit |
scale(double scale)
Sets the scale of the unit.
|
java.lang.String |
symbol()
Returns the symbol of the unit.
|
Unit |
symbol(java.lang.String symbol)
Sets the symbol of the unit.
|
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
java.lang.String[] aliases()
Unit aliases(java.lang.String[] aliases)
aliases
- Unit aliases.Unit definition(java.lang.String[] units, int[] powers)
units
- Vector of units.powers
- List of powers of the units.int[] dimension()
double offset()
Unit offset(double offset)
offset
- Unit offset.java.lang.String quantity()
Unit quantity(java.lang.String quantity)
quantity
- Unit quanity.double scale()
Unit scale(double scale)
scale
- Unit scale.java.lang.String symbol()
Unit symbol(java.lang.String symbol)
symbol
- Unit symbol.