Class SimEnum
java.lang.Object
org.wpilib.hardware.hal.SimValue
org.wpilib.hardware.hal.SimEnum
A wrapper around a simulator enum value handle.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSimEnum(int handle) Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueEnum(). -
Method Summary
Methods inherited from class SimValue
getNativeHandle, getValue, setValue
-
Constructor Details
-
SimEnum
public SimEnum(int handle) Wraps a simulated value handle as returned by SimDeviceJNI.createSimValueEnum().- Parameters:
handle- simulated value handle
-
-
Method Details
-
get
public int get()Gets the simulated value.- Returns:
- The current value
-
set
public void set(int value) Sets the simulated value.- Parameters:
value- the value to set
-