net.wimpi.modbus.procimg
Class ObservableDigitalOut
java.lang.Object
net.wimpi.modbus.util.Observable
net.wimpi.modbus.procimg.ObservableDigitalOut
- All Implemented Interfaces:
- DigitalOut
public class ObservableDigitalOut
- extends Observable
- implements DigitalOut
Class implementing an observable digital output.
- Version:
- 1.2 (@date@)
- Author:
- Dieter Wimberger
|
Field Summary |
protected boolean |
m_Set
A boolean holding the state of this digital out. |
|
Method Summary |
boolean |
isSet()
Tests if this DigitalOut is set. |
void |
set(boolean b)
Sets the state of this DigitalOut. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_Set
protected boolean m_Set
- A boolean holding the state of this digital out.
ObservableDigitalOut
public ObservableDigitalOut()
isSet
public boolean isSet()
- Description copied from interface:
DigitalOut
- Tests if this DigitalOut is set.
- Specified by:
isSet in interface DigitalOut
- Returns:
- true if set, false otherwise.
set
public void set(boolean b)
- Description copied from interface:
DigitalOut
- Sets the state of this DigitalOut.
- Specified by:
set in interface DigitalOut
- Parameters:
b - true if to be set, false otherwise.
Copyright © 2012. All Rights Reserved.