public class SimpleDigitalOut extends Object implements DigitalOut
The set method is synchronized, which ensures atomic access, but no specific access order.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_Set
Field for the digital out state.
|
| Constructor and Description |
|---|
SimpleDigitalOut()
Constructs a new SimpleDigitalOut instance.
|
SimpleDigitalOut(boolean b)
Constructs a new SimpleDigitalOut instance
with the given state.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSet()
Tests if this DigitalOut is set.
|
void |
set(boolean b)
Sets the state of this DigitalOut.
|
public SimpleDigitalOut()
public SimpleDigitalOut(boolean b)
b - true if set, false otherwise.public boolean isSet()
DigitalOutisSet in interface DigitalOutpublic void set(boolean b)
DigitalOutset in interface DigitalOutb - true if to be set, false otherwise.Copyright © 2017. All rights reserved.