Inheritance diagram for edu.cmu.hcii.calo.manager.PackManager:
Public Member Functions | |
void | addPack (Pack pack) |
Adds the given pack to this manager. | |
int | countPacks () |
Returns the number of packs maanged by this manager. | |
boolean | hasPack (Pack pack) |
Returns true if the given pack is managed by this manager, false otherwise. | |
void | notePackChanged (Pack pack, ResourceList oldResources, ResourceList list) |
Called by a Pack when it is changed so that the manager can notify all interested parties of the change. | |
void | removePack (Pack pack) |
Removes a given pack from the manager. | |
void | reset () |
Resets this manager back to the way it was when it was first created. | |
Static Public Member Functions | |
static PackManager | getManager () |
Gets the singleton manager instance. | |
Private Member Functions | |
PackManager () | |
Constructor. | |
void | readObject (java.io.ObjectInputStream in) throws IOException, ClassNotFoundException |
Reads in a serialized manager. | |
void | writeObject (java.io.ObjectOutputStream out) throws IOException |
Writes this manager to stream. | |
Private Attributes | |
Set< Pack > | packs |
The set of packs managed by this manager. | |
Static Private Attributes | |
static final long | serialVersionUID = 7775469491476373563L |
Prevent serialization collisions. | |
static PackManager | uniqueInstance = null |
The singleton instance of this manager. |
edu.cmu.hcii.calo.manager.PackManager.PackManager | ( | ) | [private] |
Constructor.
Private because this is a singleton.
static PackManager edu.cmu.hcii.calo.manager.PackManager.getManager | ( | ) | [static] |
void edu.cmu.hcii.calo.manager.PackManager.addPack | ( | Pack | pack | ) |
Adds the given pack to this manager.
pack | the pack to add |
int edu.cmu.hcii.calo.manager.PackManager.countPacks | ( | ) |
Returns the number of packs maanged by this manager.
boolean edu.cmu.hcii.calo.manager.PackManager.hasPack | ( | Pack | pack | ) |
Returns true
if the given pack is managed by this manager, false
otherwise.
pack | the pack to ask about |
void edu.cmu.hcii.calo.manager.PackManager.notePackChanged | ( | Pack | pack, | |
ResourceList | oldResources, | |||
ResourceList | list | |||
) |
Called by a Pack when it is changed so that the manager can notify all interested parties of the change.
pack | the Pack that has been altered | |
list | ||
oldResources |
void edu.cmu.hcii.calo.manager.PackManager.removePack | ( | Pack | pack | ) |
Removes a given pack from the manager.
pack | the pack to remove |
void edu.cmu.hcii.calo.manager.PackManager.reset | ( | ) |
Resets this manager back to the way it was when it was first created.
void edu.cmu.hcii.calo.manager.PackManager.readObject | ( | java.io.ObjectInputStream | in | ) | throws IOException, ClassNotFoundException [private] |
Reads in a serialized manager.
Just checks against the serialVersionUID.
in | the input stream to read from |
IOException | ||
ClassNotFoundException |
void edu.cmu.hcii.calo.manager.PackManager.writeObject | ( | java.io.ObjectOutputStream | out | ) | throws IOException [private] |
Writes this manager to stream.
Since I don't want to deal with everything below this manager being serialized and it is a singleton, I just write the ID for error checking.
out | the output stream to write to |
IOException |
final long edu.cmu.hcii.calo.manager.PackManager.serialVersionUID = 7775469491476373563L [static, private] |
PackManager edu.cmu.hcii.calo.manager.PackManager.uniqueInstance = null [static, private] |
The singleton instance of this manager.
Set<Pack> edu.cmu.hcii.calo.manager.PackManager.packs [private] |
The set of packs managed by this manager.