- java.lang.Object
-
- org.praxislive.tinkerforge.TFContext
-
public class TFContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TFContext.DeviceLockedException
static interface
TFContext.Listener
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(TFContext.Listener listener)
com.tinkerforge.Device
findDevice(String uid)
List<com.tinkerforge.Device>
findDevices(Class<? extends com.tinkerforge.Device> type)
boolean
isLocked(com.tinkerforge.Device device)
void
lockDevice(com.tinkerforge.Device device)
void
releaseDevice(com.tinkerforge.Device device)
void
removeListener(TFContext.Listener listener)
-
-
-
Method Detail
-
findDevice
public com.tinkerforge.Device findDevice(String uid)
-
findDevices
public List<com.tinkerforge.Device> findDevices(Class<? extends com.tinkerforge.Device> type)
-
lockDevice
public void lockDevice(com.tinkerforge.Device device) throws TFContext.DeviceLockedException
- Throws:
TFContext.DeviceLockedException
-
releaseDevice
public void releaseDevice(com.tinkerforge.Device device)
-
isLocked
public boolean isLocked(com.tinkerforge.Device device)
-
addListener
public void addListener(TFContext.Listener listener)
-
removeListener
public void removeListener(TFContext.Listener listener)
-
-