|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.wagner_ibw.iow.IowFactory
This is the base class of all the iow devices, based on the com.codemercs.iow.IowKit JNI wrapper class to the iowkit library (iowki.dll for Windows, libiowkit.so for Linux).
Field Summary | |
private static long |
devCount
Count of available iow devices. |
static IowFactory |
INSTANCE
|
private static java.util.Vector |
iowDevices
Vector of all scanned iow devices. |
Constructor Summary | |
private |
IowFactory()
|
Method Summary | |
void |
closeAllDevices()
Close all the iow devices. |
void |
exit(int code)
Closes all open devices and terminates the jvm. |
static IowFactory |
getInstance()
|
Iow24 |
getIow24Device()
Returns the first connected iow 24 device. |
Iow24 |
getIow24Device(java.lang.String serial)
Returns the iow 24 device according to the specified serial number. |
Iow40 |
getIow40Device()
Returns the first connected iow 40 device. |
Iow40 |
getIow40Device(java.lang.String serial)
Returns the iow40 device according to the specified serial number. |
long |
getNumDevices()
Returns the number of connected iow devices. |
java.lang.String |
getVersion()
Returns the version of the loaded iowkit library. |
private long |
openAllDevices()
Open all connected iow devices. |
private java.lang.Object |
readResolve()
Ensure Singleton class |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static long devCount
private static java.util.Vector iowDevices
public static final IowFactory INSTANCE
Constructor Detail |
private IowFactory()
Method Detail |
public static IowFactory getInstance()
private java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
private long openAllDevices()
public long getNumDevices()
public Iow40 getIow40Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no connected iow 40 device was found.public Iow40 getIow40Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired iow 40 device.
java.util.NoSuchElementException
- If no iow 40 device with desired serial number was found.public Iow24 getIow24Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no connected iow 24 device was found.public Iow24 getIow24Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired iow 24 device.
java.util.NoSuchElementException
- If no iow 24 device with desired serial number was found.public void closeAllDevices()
public java.lang.String toString()
toString
in class java.lang.Object
public void exit(int code)
public java.lang.String getVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |