OOP is fun, eh? I don't know the best way to do this. (The CFC Dev list may
have better OO gurus). When thinking about OO, ask yourself, "What does x
Object know about itself?"

To me, having a ManagerProject and WorkerProject seem confusing.  A project
doesn't know anything about Managers and Workers, but it does know how much
Effort is needed and what Assignments are needed to accomplish that Effort.

Likewise, a Worker object would know what assignments it has and maybe how
much effort is required for each assignment, but probably doesn't need to
know anything else about a project.

A Manager would know what projects are his responsibility, and be able to
Assign workers to those projects. It may be that the project doesn't know
about Effort, but rather the Manager sets Effort for assignments and is then
able to assign Workers based on that. The Manager could also keep track of
how much Effort each worker currently has (work-load, so to speak).

To get started, try to write out these ideas. Then look for nouns and verbs
to be your data and methods. Hope this helps.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240093
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to