Class Output
java.lang.Object
org.wildstang.framework.io.outputs.Output
- Direct Known Subclasses:
AnalogOutput,DigitalOutput,DiscreteOutput,I2COutput
Core output functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disables the Output, does nothing at the Input level.voidenable()Enables the Output, does nothing at the Input level.getName()Returns the name of the Output.inthashCode()Produces a hashcode based off the Output's name.booleanReturns true if the Output is enabled, does nothing at this level.protected abstract voidAbstract function to write the current value to hardware.voidupdate().
-
Constructor Details
-
Output
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
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. -
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.
-