edu.cmu.hcii.calo.manager.AbstractManager Class Reference

Inherited by edu.cmu.hcii.calo.manager.HistoryManager, edu.cmu.hcii.calo.manager.NotificationManager, edu.cmu.hcii.calo.manager.PackManager, edu.cmu.hcii.calo.manager.RelevantInfoManager, edu.cmu.hcii.calo.manager.ScheduleManager, and edu.cmu.hcii.calo.manager.TaskManager.

Inheritance diagram for edu.cmu.hcii.calo.manager.AbstractManager:

Inheritance graph
[legend]
List of all members.

Detailed Description

Represents a Manager class that manages some kind of entity object (such as tasks, notifications, etc.

) Managers must be able to assign unique IDs to their managed entities when they are added to the manager, so that the entities can be serialized and deserialized without equals() and hashCode() becoming inaccurate.

Author:
Will Haines


Public Member Functions

 AbstractManager ()
 Constructs an abstract manager.

Protected Member Functions

int getNextId ()
 Generates the next unique id for an managed object by incrementing.

Private Attributes

int nextId = 1000
 A way to generate unique ids for objects managed by this manager.

Static Private Attributes

static final long serialVersionUID = -388768069922935616L
 Prevent serialization collisions.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.manager.AbstractManager.AbstractManager (  ) 

Constructs an abstract manager.


Member Function Documentation

int edu.cmu.hcii.calo.manager.AbstractManager.getNextId (  )  [protected]

Generates the next unique id for an managed object by incrementing.

Returns:
the next id in sequence


Member Data Documentation

final long edu.cmu.hcii.calo.manager.AbstractManager.serialVersionUID = -388768069922935616L [static, private]

Prevent serialization collisions.

Reimplemented in edu.cmu.hcii.calo.manager.HistoryManager, edu.cmu.hcii.calo.manager.NotificationManager, edu.cmu.hcii.calo.manager.PackManager, edu.cmu.hcii.calo.manager.RelevantInfoManager, edu.cmu.hcii.calo.manager.ScheduleManager, and edu.cmu.hcii.calo.manager.TaskManager.

int edu.cmu.hcii.calo.manager.AbstractManager.nextId = 1000 [private]

A way to generate unique ids for objects managed by this manager.

We start at 1000 to make it obvious that everything got initialized correctly.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:14 2007 for CALO by  doxygen 1.5.2