Skip to main content

ModelCenter Remote Execution Java API 2026 R1

Interface: IPHXUnits

Last update: 22.06.2026

Package: com.phoenix_int.aserver.types

All Known Subinterfaces:

All Known Implementing Classes:


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

Connect with Ansys