|
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.SimpleDigitalIn
Class implementing a simple DigitalIn.
The set method is synchronized, which ensures atomic access, but no specific access order.
Field Summary | |
protected boolean |
m_Set
Field for the digital in state. |
Constructor Summary | |
SimpleDigitalIn()
Constructs a new SimpleDigitalIn instance. |
|
SimpleDigitalIn(boolean b)
Constructs a new SimpleDigitalIn instance with a given valid state. |
Method Summary | |
boolean |
isSet()
Tests if this DigitalIn is set. |
void |
set(boolean b)
Sets the state of this SimpleDigitalIn. |
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 SimpleDigitalIn()
public SimpleDigitalIn(boolean b)
b
- true if to be set, false otherwise.Method Detail |
public boolean isSet()
DigitalIn
isSet
in interface DigitalIn
public void set(boolean b)
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 |