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