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