public interface UnitCollection extends TaggedObjectCollection
BasePart
Modifier and Type | Interface and Description |
---|---|
static class |
UnitCollection.UnitDefaults
Specifies a set of units to be used as defaults for data entry or object information
For each measure, a unit type will be selected that matches the specified choice.
|
TaggedObjectCollection.Iterator
Modifier and Type | Method and Description |
---|---|
double |
convert(Unit initialUnitType,
Unit targetUnitType,
double initialValue)
Convert a value from one unit of measure to another
License requirements: None. |
Unit |
findObject(String name)
Finds the
Unit with the given name. |
Unit |
getBase(String measureName)
Find the base unit type for a given measure.
|
UnitCollection.UnitDefaults |
getDefaultDataEntryUnits()
Get the choice of default set of units for data entry in the given part
License requirements: None. |
UnitCollection.UnitDefaults |
getDefaultObjectInformationUnits()
Get the choice of default set of units for object information in the given part
License requirements: None. |
String[] |
getMeasures()
Finds the list of different types of measures available in the system.
|
Unit[] |
getMeasureTypes(String measureName)
Finds the unit types that are available for a given measure
License requirements: None. |
void |
setDefaultDataEntryUnits(UnitCollection.UnitDefaults defaults)
Set a choice of default set of units for data entry in the given part.
|
void |
setDefaultObjectInformationUnits(UnitCollection.UnitDefaults defaults)
Set a choice of default set of units for object information in the given part
License requirements: None. |
_find_next, iterator
void setDefaultDataEntryUnits(UnitCollection.UnitDefaults defaults) throws NXException, RemoteException
defaults
- NXException
RemoteException
UnitCollection.UnitDefaults getDefaultDataEntryUnits() throws NXException, RemoteException
NXException
RemoteException
void setDefaultObjectInformationUnits(UnitCollection.UnitDefaults defaults) throws NXException, RemoteException
defaults
- NXException
RemoteException
UnitCollection.UnitDefaults getDefaultObjectInformationUnits() throws NXException, RemoteException
NXException
RemoteException
Unit findObject(String name) throws NXException, RemoteException
name
- Name to be foundNXException
RemoteException
String[] getMeasures() throws NXException, RemoteException
NXException
RemoteException
Unit[] getMeasureTypes(String measureName) throws NXException, RemoteException
measureName
- the type of measureNXException
RemoteException
Unit getBase(String measureName) throws NXException, RemoteException
measureName
- the type of measureNXException
RemoteException
double convert(Unit initialUnitType, Unit targetUnitType, double initialValue) throws NXException, RemoteException
initialUnitType
- initial measurement unittargetUnitType
- target measurement unitinitialValue
- NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.