public abstract class AbstractDeviceFactory extends Object implements DeviceFactoryInterface
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
protected DeviceStates |
deviceStates |
Constructor and Description |
---|
AbstractDeviceFactory(String deviceFactoryPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
createPinKey(PinInfo pinInfo) |
void |
deviceClosed(DeviceInterface device) |
void |
deviceOpened(DeviceInterface device) |
<T extends DeviceInterface> |
getDevice(String key,
Class<T> clz) |
boolean |
isClosed() |
boolean |
isDeviceOpened(String key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoardPinInfo, getName
protected DeviceStates deviceStates
protected boolean closed
public AbstractDeviceFactory(String deviceFactoryPrefix)
public final String createPinKey(PinInfo pinInfo)
createPinKey
in interface DeviceFactoryInterface
public void close()
close
in interface DeviceFactoryInterface
close
in interface Closeable
close
in interface AutoCloseable
public final boolean isClosed()
isClosed
in interface DeviceFactoryInterface
public final void deviceOpened(DeviceInterface device)
deviceOpened
in interface DeviceFactoryInterface
public final void deviceClosed(DeviceInterface device)
deviceClosed
in interface DeviceFactoryInterface
public final boolean isDeviceOpened(String key)
isDeviceOpened
in interface DeviceFactoryInterface
public final <T extends DeviceInterface> T getDevice(String key, Class<T> clz)
Copyright © 2016–2017 mattjlewis. All rights reserved.