jamod at SF

net.wimpi.modbus.procimg
Class ObservableDigitalOut

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

public class ObservableDigitalOut
extends Observable
implements DigitalOut

Class implementing an observable digital output.

Version:
1.2rc1 (09/11/2004)
Author:
Dieter Wimberger

Field Summary
protected  boolean m_Set
          A boolean holding the state of this digital out.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_Set

protected boolean m_Set
A boolean holding the state of this digital out.

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.

jamod at SF

Copyright © 2002-2004 jamod development team.