|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wimpi.modbus.procimg.SimpleDigitalOut
Class implementing a simple DigitalOut.
The set method is synchronized, which ensures atomic access, but no specific access order.
Field Summary | |
protected boolean |
m_Set
Field for the digital out state. |
Constructor Summary | |
SimpleDigitalOut()
Constructs a new SimpleDigitalOut instance. |
|
SimpleDigitalOut(boolean b)
Constructs a new SimpleDigitalOut instance with the given state. |
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 |
Field Detail |
protected boolean m_Set
Constructor Detail |
public SimpleDigitalOut()
public SimpleDigitalOut(boolean b)
b
- true if set, false otherwise.Method Detail |
public boolean isSet()
DigitalOut
isSet
in interface DigitalOut
public void set(boolean b)
DigitalOut
set
in interface DigitalOut
b
- true if to be set, false otherwise.
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |