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.Object
Core 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 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()
.
-
-
-
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 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.
-
-