Interface: IPHXUnits
Last update: 22.06.2026Package: com.phoenix_int.aserver.types
All Known Subinterfaces:
All Known Implementing Classes:
- PHXBoolean
- PHXBooleanArray
- PHXDouble
- PHXDoubleArray
- PHXFile
- PHXGeometry
- PHXInteger
- PHXLong
- PHXLongArray
- PHXObjectArray
- PHXRawFile
- PHXRawFileArray
- PHXScriptObject
- PHXSimpleArray
- PHXSimpleType
- PHXString
- PHXStringArray
Declaration
public interface IPHXUnits
Interface for PHX variables that support units.
Example usage:
IPHXType var = wrapper.getVariable("myVar");
if (var instanceof IPHXUnits)
{
((IPHXUnits)var).setUnits("m");
}
Method Summary
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUnits() Get the units string for the variable |
void |
setUnits(java.lang.String units) Set the units string for the variable |
Method Detail
getUnits
java.lang.String getUnits()
Get the units string for the variable.
Returns:
- units string
setUnits
void setUnits(java.lang.String units)
Set the units string for the variable.
Parameters:
units- units for the variable