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