public class IOIOFactory
extends java.lang.Object
This class acts as the single entry-point to the IOIO API. It creates the bootstrapping between a specific implementation of the IOIO interface and any dependencies it might have, such as the underlying connection logic.
Typical usage:
IOIO ioio = IOIOFactory.create();
try {
ioio.waitForConnect();
...
ioio.disconnect();
} catch (ConnectionLostException e) {
} finally {
ioio.waitForDisconnect();
}
| Constructor and Description |
|---|
IOIOFactory() |
| Modifier and Type | Method and Description |
|---|---|
static IOIO |
create()
Create a IOIO instance.
|
static IOIO |
create(IOIOConnection connection)
Create a IOIO instance with a user-provided underlying connection class.
|
public static IOIO create()
public static IOIO create(IOIOConnection connection)
connection - An instance of a IOIO connection.