Package edu.wpi.first.hal
Class SimValue
- java.lang.Object
-
- edu.wpi.first.hal.SimValue
-
- Direct Known Subclasses:
SimBoolean,SimDouble,SimEnum
public class SimValue extends Object
A wrapper around a simulator value handle.
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_handle
-
Constructor Summary
Constructors Constructor Description SimValue(int handle)Wraps a simulated value handle as returned by SimDeviceJNI.createSimValue().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNativeHandle()Get the internal device handle.HALValuegetValue()Gets the simulated value.voidsetValue(HALValue value)Sets the simulated value.
-
-
-
Method Detail
-
getNativeHandle
public int getNativeHandle()
Get the internal device handle.- Returns:
- internal handle
-
getValue
public HALValue getValue()
Gets the simulated value.- Returns:
- The current value
-
setValue
public void setValue(HALValue value)
Sets the simulated value.- Parameters:
value- the value to set
-
-