jAER project on SourceForge

net.sf.jaer.hardwareinterface
Interface HardwareInterfaceFactoryInterface

All Known Implementing Classes:
CarServoInterfaceFactory, CypressFX2Factory, HardwareInterfaceFactory, HardwareInterfaceFactoryLinux, OpticalFlowHardwareInterfaceFactory, ServoInterfaceFactory, SiLabsC8051F320Factory

public interface HardwareInterfaceFactoryInterface

Defines the interface a hardware interface factory has to have to be included in the list in HardwareInterfaceFactory.

Author:
tobi

Method Summary
 HardwareInterface getFirstAvailableInterface()
          Gets the first available interface.
 HardwareInterface getInterface(int n)
          Returns one of the interfaces
 int getNumInterfacesAvailable()
          Returns the number of available interfaces, i.e., the number of available hardware devices.
 

Method Detail

getNumInterfacesAvailable

int getNumInterfacesAvailable()
Returns the number of available interfaces, i.e., the number of available hardware devices. If the driver only supports one interface, then 1 will always be returned.

Returns:
number of interfaces

getFirstAvailableInterface

HardwareInterface getFirstAvailableInterface()
                                             throws HardwareInterfaceException
Gets the first available interface.

Returns:
first available interface, or null if no interfaces are found.
Throws:
HardwareInterfaceException

getInterface

HardwareInterface getInterface(int n)
                               throws HardwareInterfaceException
Returns one of the interfaces

Parameters:
n - the number starting from 0
Returns:
the HardwareInterface
Throws:
HardwareInterfaceException - if there is some error

jAER project on SourceForge