Package edu.wpi.first.hal
Class SimValue
- java.lang.Object
-
- edu.wpi.first.hal.SimValue
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_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 int
getNativeHandle()
Get the internal device handle.HALValue
getValue()
Gets the simulated value.void
setValue(HALValue value)
Sets the simulated value.
-
-
-
Field Detail
-
m_handle
protected final int m_handle
-
-
Constructor Detail
-
SimValue
public SimValue(int handle)
Wraps a simulated value handle as returned by SimDeviceJNI.createSimValue().- Parameters:
handle
- simulated value handle
-
-
Method Detail
-
getNativeHandle
public int getNativeHandle()
Get the internal device handle.- Returns:
- internal handle
-
-