Class SimEnum

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

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