Class Output

java.lang.Object
org.wildstang.framework.io.outputs.Output
Direct Known Subclasses:
AnalogOutput, DigitalOutput, DiscreteOutput, I2COutput

public abstract class Output extends Object
Core output functions.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Disables the Output, does nothing at the Input level.
    void
    Enables the Output, does nothing at the Input level.
    Returns the name of the Output.
    int
    Produces a hashcode based off the Output's name.
    boolean
    Returns true if the Output is enabled, does nothing at this level.
    protected abstract void
    Abstract function to write the current value to hardware.
    void
    .

    Methods inherited from class java.lang.Object

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

    • Output

      public Output(String p_name)
      Constructor sets the name of the Output.
      Parameters:
      p_name - New name of the Output.
  • Method Details

    • update

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

      public 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 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.