Class WsServoConfig

  • All Implemented Interfaces:
    OutputConfig

    public class WsServoConfig
    extends java.lang.Object
    implements OutputConfig
    Contains configurations for servos.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsServoConfig​(int channel, double p_default)
      Construct the servo 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 position.
      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

      • WsServoConfig

        public WsServoConfig​(int channel,
                             double p_default)
        Construct the servo config.
        Parameters:
        channel - Hardware port number.
        p_default - Default position.
    • Method Detail

      • getChannel

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

        public double getDefault()
        Returns the default position.
        Returns:
        The default position.
      • toString

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