Class DiscreteOutput
java.lang.Object
org.wildstang.framework.io.outputs.Output
org.wildstang.framework.io.outputs.DiscreteOutput
- Direct Known Subclasses:
WsDoubleSolenoid,WsRelay
First abstraction of Output representing "analog" Outputs
such as relays and double solenoids.
-
Constructor Summary
ConstructorsConstructorDescriptionDiscreteOutput(String p_name) Constructor simply passes on name.DiscreteOutput(String p_name, int p_default) Constructor with default value. -
Method Summary
-
Constructor Details
-
DiscreteOutput
Constructor simply passes on name.- Parameters:
p_name- Name of the Output.
-
DiscreteOutput
Constructor with default value.- Parameters:
p_name- Name of the Output.p_default- Default value of the Output.
-
-
Method Details
-
getValue
public int getValue()Returns the latest commanded value for the Output.- Returns:
- Latest value stored in the Output.
-
setValue
public void setValue(int p_value) Sets the output value, doesn't command the hardware.- Parameters:
p_value- New value for the Output.
-