public abstract class AbstractDeviceFactory extends Object implements DeviceFactoryInterface
Modifier and Type | Field and Description |
---|---|
protected DeviceStates |
deviceStates |
protected boolean |
shutdown |
Constructor and Description |
---|
AbstractDeviceFactory(String deviceFactoryPrefix) |
Modifier and Type | Method and Description |
---|---|
String |
createPinKey(PinInfo pinInfo) |
void |
deviceClosed(DeviceInterface device) |
void |
deviceOpened(DeviceInterface device) |
<T extends DeviceInterface> |
getDevice(String key,
Class<T> clz) |
boolean |
isDeviceOpened(String key) |
boolean |
isShutdown() |
void |
shutdown() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoardPinInfo, getName
protected DeviceStates deviceStates
protected boolean shutdown
public AbstractDeviceFactory(String deviceFactoryPrefix)
public final String createPinKey(PinInfo pinInfo)
createPinKey
in interface DeviceFactoryInterface
public void shutdown()
shutdown
in interface DeviceFactoryInterface
public final boolean isShutdown()
isShutdown
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.