public interface UnitCollection extends TaggedObjectCollection
BasePart
TaggedObjectCollection.Iterator
Modifier and Type | Method and Description |
---|---|
double |
convert(Unit initialUnit,
Unit targetUnit,
double initialValue)
Convert a value from one unit of measure to another
License requirements: None. |
Unit |
findObject(String journalIdentifier)
Finds the
Unit with the given identifier as recorded in a journal. |
Unit |
getBase(String measureName)
Find the base part unit for a given type of measure
License requirements: None. |
String[] |
getMeasures()
Finds the list of different types of measures available in the system.
|
Unit[] |
getMeasureTypes(String measureName)
Finds the units that are available for a given type of measure
License requirements: None. |
_find_next, iterator
Unit findObject(String journalIdentifier) throws NXException, RemoteException
Unit
with the given identifier as recorded in a journal.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier
- Identifier to be foundNXException
RemoteException
String[] getMeasures() throws NXException, RemoteException
NXException
RemoteException
Unit[] getMeasureTypes(String measureName) throws NXException, RemoteException
measureName
- the type of measure NXException
RemoteException
Unit getBase(String measureName) throws NXException, RemoteException
measureName
- the type of measure NXException
RemoteException
double convert(Unit initialUnit, Unit targetUnit, double initialValue) throws NXException, RemoteException
initialUnit
- initial measurement unittargetUnit
- target measurement unitinitialValue
- NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.