Class SimValue
java.lang.Object
org.wpilib.hardware.hal.SimValue
- Direct Known Subclasses:
SimBoolean, SimDouble, SimEnum, SimInt, SimLong
A wrapper around a simulator value handle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe native handle for this SimValue. -
Constructor Summary
ConstructorsConstructorDescriptionSimValue(int handle) Wraps a simulated value handle as returned by SimDeviceJNI.createSimValue(). -
Method Summary
Modifier and TypeMethodDescriptionintGet the internal device handle.getValue()Gets the simulated value.voidSets the simulated value.
-
Field Details
-
m_handle
protected final int m_handleThe native handle for this SimValue.
-
-
Constructor Details
-
SimValue
public SimValue(int handle) Wraps a simulated value handle as returned by SimDeviceJNI.createSimValue().- Parameters:
handle- simulated value handle
-
-
Method Details
-
getNativeHandle
public int getNativeHandle()Get the internal device handle.- Returns:
- internal handle
-
getValue
-
setValue
-