|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<java.lang.Class>
net.sf.jaer.hardwareinterface.HardwareInterfaceFactory
public class HardwareInterfaceFactory
This class builds a list of all available devices and lets you get one of them. It is a singleton: get the instance() and ask it to make an interface for you.
Method Summary | |
---|---|
HardwareInterface |
getFirstAvailableInterface()
Gets the first available interface. |
HardwareInterface |
getInterface(int n)
build list of devices and return the n'th one, 0 based |
int |
getNumInterfacesAvailable()
Says how many total of all types of hardware are available |
static HardwareInterfaceFactory |
instance()
Use this instance to access the methods, e.g. |
static void |
main(java.lang.String[] arg)
|
Methods inherited from class java.util.HashSet |
---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Method Detail |
---|
public static HardwareInterfaceFactory instance()
HardwareInterfaceFactory.instance().getNumInterfacesAvailable()
.
public int getNumInterfacesAvailable()
getNumInterfacesAvailable
in interface HardwareInterfaceFactoryInterface
public HardwareInterface getFirstAvailableInterface()
HardwareInterfaceFactoryInterface
getFirstAvailableInterface
in interface HardwareInterfaceFactoryInterface
public HardwareInterface getInterface(int n)
getInterface
in interface HardwareInterfaceFactoryInterface
n
- the number starting from 0
public static void main(java.lang.String[] arg)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |