Inheritance diagram for edu.cmu.hcii.calo.manager.AbstractManager:
) 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.
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. |
edu.cmu.hcii.calo.manager.AbstractManager.AbstractManager | ( | ) |
Constructs an abstract manager.
int edu.cmu.hcii.calo.manager.AbstractManager.getNextId | ( | ) | [protected] |
Generates the next unique id for an managed object by incrementing.
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.