|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gmscheduler.model.ScheduleUtil
public class ScheduleUtil
The Schedule Utility is the buisness logic for parsing schedules as well as finding busy times. The utility has two methods parseSchedule, which takes a preformatted string and returns a schedule, and findTime which takes a constraint schedule and a linkedlist of busy time schedules.
Timeframe,
Schedule,
Person,
com.gmscheduler.model.DatabaseManager;| Constructor Summary | |
|---|---|
ScheduleUtil()
|
|
| Method Summary | |
|---|---|
Schedule |
findTime(Schedule freetime,
java.util.LinkedList<Schedule> schedules)
Finds the remaining free time from the free time constraint compared against the busy time of all schedules. |
Schedule |
parseSchedule(java.lang.String str)
This method simply takes in the big list of times and days, breaks them apart and sends them to the parse method which handles the actual parsing. |
Schedule |
removeTimeframe(Schedule s,
Timeframe t)
Removes a Timeframe from a Schedule, also from the database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduleUtil()
| Method Detail |
|---|
public Schedule parseSchedule(java.lang.String str)
str - is the big long list of times that a user submits.
public Schedule findTime(Schedule freetime,
java.util.LinkedList<Schedule> schedules)
freetime - The original non-busy time in which to constrain all other busy times.schedules - A linked list of Schedules that are busy time.
public Schedule removeTimeframe(Schedule s,
Timeframe t)
Timeframe from a Schedule, also from the database.
s - The schedule to remove the Timeframe from.t - The Timeframe to be removed.
Schedule less the timeframe.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||