|
|||||||||||
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 class manages all the plugged IO-Warrior devices.
Field Summary | |
static IowFactory |
INSTANCE
Factory instance. |
Method Summary | |
void |
closeAllDevices()
Close all the IO-Warrior devices. |
void |
exit(int code)
Closes all open IO-Warrior devices and terminates the jvm. |
static IowFactory |
getInstance()
Static factory method. |
Iow24 |
getIow24Device()
Returns the first plugged IO-Warrior 24 device. |
Iow24 |
getIow24Device(java.lang.String serial)
Returns the IO-Warrior 24 device according to the specified serial number. |
Iow40 |
getIow40Device()
Returns the first plugged IO-Warrior 40 device. |
Iow40 |
getIow40Device(java.lang.String serial)
Returns the IO-Warrior 40 device according to the specified serial number. |
Iow56 |
getIow56Device()
Returns the first plugged IO-Warrior 56 device. |
Iow56 |
getIow56Device(java.lang.String serial)
Returns the IO-Warrior 56 device according to the specified serial number. |
AbstractIowDevice |
getIowDevice()
Returns the first plugged IO-Warrior device. |
AbstractIowDevice |
getIowDevice(java.lang.String serial)
Returns the iow device according to the specified serial number. |
long |
getNumDevices()
Returns the number of plugged IO-Warrior devices. |
java.lang.String |
getVersion()
Returns the version of the loaded iowkit library. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final IowFactory INSTANCE
Method Detail |
public static IowFactory getInstance()
public long getNumDevices()
public AbstractIowDevice getIowDevice() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no plugged IO-Warrior device was found.public AbstractIowDevice getIowDevice(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired IO-Warrior device.
java.util.NoSuchElementException
- If no IO-Warrior device with desired serial number was found.public Iow40 getIow40Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no plugged IO-Warrior 40 device was found.public Iow40 getIow40Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired IO-Warrior 40 device.
java.util.NoSuchElementException
- If no IO-Warrior 40 device with desired serial number was found.public Iow24 getIow24Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no plugged IO-Warrior 24 device was found.public Iow24 getIow24Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired IO-Warrior 24 device.
java.util.NoSuchElementException
- If no IO-Warrior 24 device with desired serial number was found.public Iow56 getIow56Device() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- If no plugged IO-Warrior 56 device was found.public Iow56 getIow56Device(java.lang.String serial) throws java.util.NoSuchElementException
serial
- Serial number of the desired IO-Warrior 56 device.
java.util.NoSuchElementException
- If no iow 56 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 |