Class Output

    • Constructor Summary

      Constructors 
      Constructor Description
      Output​(java.lang.String p_name)
      Constructor sets the name of the Output.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void disable()
      Disables the Output, does nothing at the Input level.
      void enable()
      Enables the Output, does nothing at the Input level.
      java.lang.String getName()
      Returns the name of the Output.
      int hashCode()
      Produces a hashcode based off the Output's name.
      boolean isEnabled()
      Returns true if the Output is enabled, does nothing at this level.
      protected abstract void sendDataToOutput()
      Abstract function to write the current value to hardware.
      void update()
      .
      • Methods inherited from class java.lang.Object

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

      • Output

        public Output​(java.lang.String p_name)
        Constructor sets the name of the Output.
        Parameters:
        p_name - New name of the Output.
    • Method Detail

      • update

        public void update()
        . Sends that state to the hardware Output.
      • getName

        public java.lang.String getName()
        Returns the name of the Output.
        Returns:
        Name of the Output.
      • sendDataToOutput

        protected abstract void sendDataToOutput()
        Abstract function to write the current value to hardware.
      • hashCode

        public int hashCode()
        Produces a hashcode based off the Output's name.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        Newly generated hashcode.
      • enable

        public void enable()
        Enables the Output, does nothing at the Input level.
      • disable

        public void disable()
        Disables the Output, does nothing at the Input level.
      • isEnabled

        public boolean isEnabled()
        Returns true if the Output is enabled, does nothing at this level.
        Returns:
        True if the Output is enabled.