Class WsDigitalOutputConfig

  • All Implemented Interfaces:
    OutputConfig

    public class WsDigitalOutputConfig
    extends java.lang.Object
    implements OutputConfig
    Contains configurations for digital outputs.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsDigitalOutputConfig​(int channel, boolean p_default)
      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 getDefault()
      Returns the default output value.
      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

      • WsDigitalOutputConfig

        public WsDigitalOutputConfig​(int channel,
                                     boolean p_default)
        Construct the digital output config.
        Parameters:
        channel - Digital hardware port number.
        p_default - Default output value.
    • Method Detail

      • getChannel

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

        public boolean getDefault()
        Returns the default output value.
        Returns:
        The default value.
      • 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.