Need Help with conceptual on a Schedule Class
Posted on 2005-04-21
I'm writing a Task Queueing program and am having trouble with the design of the class that will allow a manager to configure an employees schedule.
The requirements are:
1) The employee has a "default" work week. Say Monday - Friday 7:00 to 4:00 with 11:00 to 12:00 for lunch, Saturday and Sunday off
2) There are predefined Days off - i.e Christmas, New Years, etc. that all employees schedules should reflect
3) There are employee specific schedule changes - Vacation, Sick Days, Etc. for each employee.
I want to use the schedule this way - the employee has a task that starts @ 9:00am on monday and is estimated to take 24 hours. so the task start would show
Start: Monday June 6, 2005 9:00am
The schedule class would be able to give the estimated task end baised on the configured Schedule.
End: Wednesday June 8, 2005 4:00pm
The trouble i'm having is the concept of how you would design/structure a class or collection to do this. I'm really not asking to have the class written for me. The best help would be direction to documentation that explaines how this is handled from a design perspective. I've alway been realy week when it comes to date/time based concepts such as this.
to get ths example above i had to write out a mini calender on paper. :P
Hope this was clear.
Any help would be appreciated.