de.wagner_ibw.iow
Class Iow24

java.lang.Object
  |
  +--de.wagner_ibw.iow.AbstractIowDevcie
        |
        +--de.wagner_ibw.iow.Iow24
All Implemented Interfaces:
java.lang.Runnable

public class Iow24
extends AbstractIowDevcie

This class represents the iow 24 device.

Author:
Thomas Wagner

Nested Class Summary
 
Nested classes inherited from class de.wagner_ibw.iow.AbstractIowDevcie
AbstractIowDevcie.SpecialModeReadThread
 
Field Summary
 
Fields inherited from class de.wagner_ibw.iow.AbstractIowDevcie
autonomous, currentPinStatus, handle, id, IOW24ID, IOW24NAME, IOW40ID, IOW40NAME, monitor, portCount, ports, rev, serial, smfImplementations, specialMode
 
Constructor Summary
Iow24(long handle, int id, java.lang.String serial, int rev)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other Iow24 object is "equal to" this one.
 java.lang.String getName()
           
 long readIOPorts()
           
 long readIOPortsImmediate()
           
 long scanPorts()
          Gets the current pin status.
 java.lang.String toString()
          Returns a String object representing this Iow24 object.
 void writeIOPorts()
           
 
Methods inherited from class de.wagner_ibw.iow.AbstractIowDevcie
addSpecialModeFunctionImpl, autonomous, checkPort, clearBit, close, getCurrentPinStatus, getHandle, getId, getMonitor, getPort, getRev, getSerial, getSpecialModeFunctionImpl, hashCode, readReport, removeSpecialModeFunctionImpl, run, setBit, setDirection, setPort, setTimeout, setWriteTimeout, writeReport
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Iow24

public Iow24(long handle,
             int id,
             java.lang.String serial,
             int rev)
Method Detail

readIOPorts

public long readIOPorts()
Specified by:
readIOPorts in class AbstractIowDevcie

readIOPortsImmediate

public long readIOPortsImmediate()
Specified by:
readIOPortsImmediate in class AbstractIowDevcie
Since:
0.9.3 with long return value

scanPorts

public long scanPorts()
Gets the current pin status.

Specified by:
scanPorts in class AbstractIowDevcie
Returns:
Count of written bytes to iow device.
Since:
0.9.3

writeIOPorts

public void writeIOPorts()
Specified by:
writeIOPorts in class AbstractIowDevcie

toString

public java.lang.String toString()
Returns a String object representing this Iow24 object. It contains information about device handle, id , revision, serial number and the status of port 0 ... port 1.

Specified by:
toString in class AbstractIowDevcie

getName

public java.lang.String getName()
Specified by:
getName in class AbstractIowDevcie

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other Iow24 object is "equal to" this one. Criteria is the serial number.

Specified by:
equals in class AbstractIowDevcie
Parameters:
obj - The reference object with which to compare.
Returns:
True if this object is the same as the obj argument; false otherwise.
Since:
0.9.4