Class DiscreteOutput
- java.lang.Object
-
- org.wildstang.framework.io.outputs.Output
-
- org.wildstang.framework.io.outputs.DiscreteOutput
-
- Direct Known Subclasses:
WsDoubleSolenoid
,WsRelay
public abstract class DiscreteOutput extends Output
First abstraction of Output representing "analog" Outputs such as relays and double solenoids.
-
-
Constructor Summary
Constructors Constructor Description DiscreteOutput(java.lang.String p_name)
Constructor simply passes on name.DiscreteOutput(java.lang.String p_name, int p_default)
Constructor with default value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Returns the latest commanded value for the Output.void
setValue(int p_value)
Sets the output value, doesn't command the hardware.
-
-
-
Constructor Detail
-
DiscreteOutput
public DiscreteOutput(java.lang.String p_name)
Constructor simply passes on name.- Parameters:
p_name
- Name of the Output.
-
DiscreteOutput
public DiscreteOutput(java.lang.String p_name, int p_default)
Constructor with default value.- Parameters:
p_name
- Name of the Output.p_default
- Default value of the Output.
-
-