Class WsDigitalInputConfig

  • All Implemented Interfaces:
    InputConfig

    public class WsDigitalInputConfig
    extends java.lang.Object
    implements InputConfig
    Contains configuration for digital inputs.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsDigitalInputConfig​(int channel, boolean p_pullup)
      Construct the digital output config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getChannel()
      Returns the hardware port number.
      boolean getPullup()
      Returns the pull up state.
      java.lang.String toString()
      Builds a JSON String describing the digital output config.
      • Methods inherited from class java.lang.Object

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

      • WsDigitalInputConfig

        public WsDigitalInputConfig​(int channel,
                                    boolean p_pullup)
        Construct the digital output config.
        Parameters:
        channel - Digital hardware port number.
        p_pullup - Enables pull up mode on digital input.
    • Method Detail

      • getChannel

        public int getChannel()
        Returns the hardware port number.
        Returns:
        The hardware port number.
      • getPullup

        public boolean getPullup()
        Returns the pull up state.
        Returns:
        True if pull up is enabled.
      • toString

        public java.lang.String toString()
        Builds a JSON String describing the digital output config.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Channel number and pull up state.