Class SimBoolean

java.lang.Object
edu.wpi.first.hal.SimValue
edu.wpi.first.hal.SimBoolean

public class SimBoolean
extends SimValue
A wrapper around a simulator boolean value handle.
  • 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