|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocap.hn.NetManager
public abstract class NetManager
The NetManager is a singleton class that registers all the Devices and NetModules within a home network. It maintains an implementation dependent database of devices and NetModules.
The NetManager may be used to retrieve list of NetModule
and
Device
in the network. The application can filter the list by specifying
a name or by applying filtering rules. For example,
"modelNumber = h6315, location = LivingRoom". Application can monitor
availability of NetModules by registering as a listener to NetManager
instance.
Constructor Summary | |
---|---|
NetManager()
|
Method Summary | |
---|---|
abstract void |
addNetModuleEventListener(NetModuleEventListener listener)
Adds a NetModule event listener to NetManager. |
abstract Device |
getDevice(String name)
Returns device by name. |
abstract NetList |
getDeviceList(PropertyFilter filter)
Returns devices that match all properties set by a given filter. |
static NetManager |
getInstance()
Returns the singleton NetManager. |
abstract NetModule |
getNetModule(String name)
Returns NetModule by name. |
abstract NetList |
getNetModuleList(PropertyFilter filter)
Returns NetModules that match all properties set by a given filter. |
abstract void |
removeNetModuleEventListener(NetModuleEventListener listener)
Removes a NetModule event listener from NetManager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetManager()
Method Detail |
---|
public static NetManager getInstance()
public abstract NetList getNetModuleList(PropertyFilter filter)
filter
- Filter to select out NetModules from all
available NetModules
public abstract NetModule getNetModule(String name)
name
- NetModule name
public abstract NetList getDeviceList(PropertyFilter filter)
filter
- Filter to select out devices from all
connected devices
public abstract Device getDevice(String name)
name
- Device name
public abstract void addNetModuleEventListener(NetModuleEventListener listener)
listener
- Listener which listens to NetModule change events on
home networkremoveNetModuleEventListener(org.ocap.hn.NetModuleEventListener)
public abstract void removeNetModuleEventListener(NetModuleEventListener listener)
listener
- Listener which listens to NetModule change events on
home networkaddNetModuleEventListener(org.ocap.hn.NetModuleEventListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |