Class Output
- java.lang.Object
-
- org.wildstang.framework.io.outputs.Output
-
- Direct Known Subclasses:
AnalogOutput,DigitalOutput,DiscreteOutput,I2COutput
public abstract class Output extends java.lang.ObjectCore output functions.
-
-
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 voiddisable()Disables the Output, does nothing at the Input level.voidenable()Enables the Output, does nothing at the Input level.java.lang.StringgetName()Returns the name of the Output.inthashCode()Produces a hashcode based off the Output's name.booleanisEnabled()Returns true if the Output is enabled, does nothing at this level.protected abstract voidsendDataToOutput()Abstract function to write the current value to hardware.voidupdate().
-
-
-
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:
hashCodein classjava.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.
-
-