Class WsDoubleSolenoidConfig

  • All Implemented Interfaces:
    OutputConfig

    public class WsDoubleSolenoidConfig
    extends java.lang.Object
    implements OutputConfig
    Contains configurations for double solenoids.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsDoubleSolenoidConfig​(edu.wpi.first.wpilibj.PneumaticsModuleType module, int channel1, int channel2, WsDoubleSolenoidState p_default)
      Construct the double solenoid config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getChannel1()
      Return the forward channel number.
      int getChannel2()
      Return the reverse channel number.
      WsDoubleSolenoidState getDefault()
      Return the default solenoid state.
      edu.wpi.first.wpilibj.PneumaticsModuleType getModule()
      Return the module number.
      java.lang.String toString()
      Builds a JSON String describing the solenoid config.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • WsDoubleSolenoidConfig

        public WsDoubleSolenoidConfig​(edu.wpi.first.wpilibj.PneumaticsModuleType module,
                                      int channel1,
                                      int channel2,
                                      WsDoubleSolenoidState p_default)
        Construct the double solenoid config.
        Parameters:
        module - Module number.
        channel1 - Forward channel number.
        channel2 - Reverse channel number.
        p_default - Default state.
    • Method Detail

      • getChannel1

        public int getChannel1()
        Return the forward channel number.
        Returns:
        The forward channel number.
      • getChannel2

        public int getChannel2()
        Return the reverse channel number.
        Returns:
        The reverse channel number.
      • getDefault

        public WsDoubleSolenoidState getDefault()
        Return the default solenoid state.
        Returns:
        The default solenoid state.
      • getModule

        public edu.wpi.first.wpilibj.PneumaticsModuleType getModule()
        Return the module number.
        Returns:
        The module number.
      • toString

        public java.lang.String toString()
        Builds a JSON String describing the solenoid config.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Module number and channel numbers.