|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeviceHandler
DeviceHandler is the most abstract interface for handler classes representing devices. SubInterfaces detail the communication API between the device and its handler.
Method Summary | |
---|---|
boolean |
addDevice(ObjectRuntime device)
Add a device to the set serviced by this handler. |
void |
init(java.util.Properties props)
Perform any initialization required to operate, possibly based on passed properties. |
boolean |
processCommand(java.lang.String deviceName,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> args)
Process a device command |
void |
removeDevice(ObjectRuntime device)
Remove a device being serviced by this handler. |
Method Detail |
---|
void init(java.util.Properties props)
props
- handler properties, may be nullboolean addDevice(ObjectRuntime device)
device
- the runtime of device being handledvoid removeDevice(ObjectRuntime device)
device
- the runtime of device to be removedboolean processCommand(java.lang.String deviceName, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> args) throws java.io.IOException
deviceName
- the name of the devicecommand
- the command codeargs
- optional command arguments, may be null
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |