net.wimpi.modbus.procimg
Class ObservableDigitalOut

java.lang.Object
  extended by net.wimpi.modbus.util.Observable
      extended by net.wimpi.modbus.procimg.ObservableDigitalOut
All Implemented Interfaces:
DigitalOut

public class ObservableDigitalOut
extends Observable
implements DigitalOut

Class implementing an observable digital output.

Version:
@version@ (@date@)
Author:
Dieter Wimberger

Constructor Summary
ObservableDigitalOut()
           
 
Method Summary
 boolean isSet()
          Tests if this DigitalOut is set.
 void set(boolean b)
          Sets the state of this DigitalOut.
 
Methods inherited from class net.wimpi.modbus.util.Observable
addObserver, getObserverCount, notifyObservers, removeObserver, removeObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservableDigitalOut

public ObservableDigitalOut()
Method Detail

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 © 2010. All Rights Reserved.