Class WsAnalogOutputConfig

  • All Implemented Interfaces:
    OutputConfig

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

      Constructors 
      Constructor Description
      WsAnalogOutputConfig​(int channel, double p_default)
      Construct the analog output config.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getChannel()
      Returns the hardware port number.
      double getDefault()
      Returns the default output value.
      java.lang.String toString()
      Builds a JSON String describing the analog output config.
      • Methods inherited from class java.lang.Object

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

      • WsAnalogOutputConfig

        public WsAnalogOutputConfig​(int channel,
                                    double p_default)
        Construct the analog output config.
        Parameters:
        channel - Analog 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 double getDefault()
        Returns the default output value.
        Returns:
        The default value.
      • toString

        public java.lang.String toString()
        Builds a JSON String describing the analog output config.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Channel number.