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