Class XSolenoid

java.lang.Object
xbot.common.controls.actuators.XSolenoid
All Implemented Interfaces:
XBaseIO
Direct Known Subclasses:
MockSolenoid, SolenoidWPIAdapter

public abstract class XSolenoid extends Object implements XBaseIO
  • Field Details

    • isInverted

      protected boolean isInverted
    • channel

      protected final int channel
  • Constructor Details

    • XSolenoid

      protected XSolenoid(int channel, DevicePolice police)
  • Method Details

    • setOn

      public void setOn(boolean on)
    • getAdjusted

      public boolean getAdjusted()
    • setInverted

      public void setInverted(boolean isInverted)
    • getChannel

      public int getChannel()
      Specified by:
      getChannel in interface XBaseIO
    • set

      protected abstract void set(boolean on)
    • get

      protected abstract boolean get()
    • getMaxSupportedChannel

      protected abstract int getMaxSupportedChannel()