|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jazz.core.DeviceLibrary
| Field Summary | |
protected java.util.Hashtable |
devices
|
protected java.util.Hashtable |
manipulations
|
| Constructor Summary | |
DeviceLibrary()
|
|
| Method Summary | |
void |
addDevice(Device d)
Add a device to the library and set the manipulations to that device to none. |
void |
addManipulation(Device device,
DeviceManipulation manip)
|
void |
addManipulation(java.lang.String deviceName,
DeviceManipulation manip)
Add a manipulation associated with a specific device |
Device |
getDevice(java.lang.String name)
Get a device with a specific name from the library. |
java.util.Enumeration |
getDeviceNames()
Return an enumeration of the device names that can be used to loop through all the devices |
DeviceManipulation |
getManipulation(java.lang.String deviceName,
java.lang.String manipName)
Get a manipulation a specific device and name from the library. |
protected java.util.Hashtable |
getManipulationHash(java.lang.String deviceName)
Internal function which gets the hashtable associated with a device |
java.util.Enumeration |
getManipulationNames(java.lang.String deviceName)
Return an enumeration of the manipulation names associated with a device that can be used to loop through all the device's manipulations |
boolean |
hasDevice(Device d)
|
boolean |
hasDevice(java.lang.String name)
Return whether or a device with a given name exists in the library |
boolean |
hasManipulation(Device device,
DeviceManipulation manip)
|
boolean |
hasManipulation(java.lang.String deviceName,
java.lang.String manipName)
Return whether or not a given device in a library has a named manipulation |
void |
removeDevice(java.lang.String name)
Remove a device with a specific name from the library. |
void |
removeManipulation(java.lang.String deviceName,
java.lang.String manipName)
Remove a manipulation a specific device and name from the library. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable devices
protected java.util.Hashtable manipulations
| Constructor Detail |
public DeviceLibrary()
| Method Detail |
public void addDevice(Device d)
public boolean hasDevice(java.lang.String name)
public boolean hasDevice(Device d)
public Device getDevice(java.lang.String name)
public void removeDevice(java.lang.String name)
public java.util.Enumeration getDeviceNames()
protected java.util.Hashtable getManipulationHash(java.lang.String deviceName)
public boolean hasManipulation(java.lang.String deviceName,
java.lang.String manipName)
public boolean hasManipulation(Device device,
DeviceManipulation manip)
public void addManipulation(java.lang.String deviceName,
DeviceManipulation manip)
public void addManipulation(Device device,
DeviceManipulation manip)
public DeviceManipulation getManipulation(java.lang.String deviceName,
java.lang.String manipName)
public void removeManipulation(java.lang.String deviceName,
java.lang.String manipName)
public java.util.Enumeration getManipulationNames(java.lang.String deviceName)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||