|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HomeStorage
The HomeStorage is the container used by the Home
to store the objects associated with the home.
| Method Summary | |
|---|---|
void |
add(java.lang.Object dev)
Adds the Object to the container. |
void |
close()
Stop the device store. |
boolean |
contains(java.lang.Object obj)
Check to see if object is in home storage |
void |
flush()
flush the device store. |
java.lang.Object |
get(java.lang.Class c,
java.lang.String name)
Get the instance of a named class. |
HomeDevice |
get(DeviceAddress addr)
Get the HomeDevice associated with an address. |
java.util.Enumeration<java.lang.Object> |
getAll()
Get all HomeDevices in the container. |
java.util.Enumeration<java.lang.Object> |
getAll(java.lang.Class c)
Get all Objects of a specific subtype |
void |
open()
Start the device store. |
void |
remove(java.lang.Object dev)
Remove the Object from the container. |
| Method Detail |
|---|
void open()
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionjava.util.Enumeration<java.lang.Object> getAll()
HomeDevices in the container.
HomeDevices in the container.java.util.Enumeration<java.lang.Object> getAll(java.lang.Class c)
Objects of a specific subtype
c - the class of the objects to be retrieved
Objects that are instances of cHomeDevice get(DeviceAddress addr)
HomeDevice associated with an address.
addr - the DeviceAddress of the device.
HomeDevice associated with the address or null if no device found.
java.lang.Object get(java.lang.Class c,
java.lang.String name)
c - the class of the object to be retrievedname - the name associated with the device
HomeDevice associated with the address or null if no device found.boolean contains(java.lang.Object obj)
obj - the Object.
void add(java.lang.Object dev)
Object to the container.
dev - the Object to be added.void remove(java.lang.Object dev)
Object from the container.
dev - the Object to be removed.
void flush()
throws java.io.IOException
java.io.IOException
void close()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||