| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| void | Delete
()
Delete the unit |
| UnitConversionFactor | GetConversionFactor
()
Get method for attribute "ConversionFactor" The relationship of the unit to its reference unit. |
| String | GetExpression
()
Get method for attribute "Expression" The user-friendly unit description: the name (i.e. "ksi") for ordinary units and the expression (i.e. N/m^3) for system-generated units. |
| boolean | GetIsStandard
()
Get method for attribute "IsStandard" Whether the unit is system-defined (value true) or user-defined (value false). |
| String | GetName
()
Get method for attribute "Name" Specifies the name of the unit. |
| Unit | GetReferenceUnit
()
Get method for attribute "ReferenceUnit" The reference unit of the unit. |
| UnitType | GetType
()
Get method for attribute "Type" The type of quantity represented by the unit. |
| void | Modify
(UnitConversionFactor ConversionFactor, Unit ReferenceUnit)
Modify a unit's definition by applying a new conversion factor and reference unit. |
| void | SetName
(String value)
Set method for attribute "Name" Specifies the name of the unit. |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Child |
|---|
| GetDBParent, GetOId |
| Method Detail |
|---|
| GetName/SetName |
|---|
| String | GetName | () |
| void | SetName | (String value) |
| Specifies the name of the unit. Exceptions thrown (but not limited to): XToolkitCantModify - The unit is referenced from the principal system of units and cannot be modified.
|
| GetType |
|---|
| UnitType | GetType | () |
The type of quantity represented by the unit.
|
| GetIsStandard |
|---|
| boolean | GetIsStandard | () |
Whether the unit is system-defined (value true)
or user-defined (value false).
|
| GetConversionFactor |
|---|
| UnitConversionFactor | GetConversionFactor | () |
The relationship of the unit to its reference unit.
|
| GetReferenceUnit |
|---|
| Unit | GetReferenceUnit | () |
The reference unit of the unit.
|
| GetExpression |
|---|
| String | GetExpression | () |
| The user-friendly unit description: the name (i.e. "ksi") for ordinary
units and the expression (i.e. N/m^3) for system-generated units. Exceptions thrown (but not limited to): XToolkitNotFound - The unit type was not recognized.
|
| Modify |
|---|
| void | Modify | (UnitConversionFactor ConversionFactor, Unit ReferenceUnit) |
| Modify a unit's definition by applying a new conversion factor
and reference unit. Exceptions thrown (but not limited to): XToolkitCantModify - The unit cannot be modified because it is referenced from the principal system of units or it is referenced from ref_unit.
|
| Delete |
|---|
| void | Delete | () |
| Delete the unit Exceptions thrown (but not limited to): XToolkitCantModify - The unit referenced from another unit or system of units and cannot be deleted.
|