|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.gmscheduler.model.Schedule
public class Schedule
A Schedule objects represents a person and a list of their time frames.
Person,
Timeframe| Constructor Summary | |
|---|---|
Schedule()
|
|
Schedule(Person owner)
|
|
Schedule(Person owner,
java.util.LinkedList schedule)
|
|
Schedule(Person owner,
Timeframe schedule)
|
|
Schedule(Schedule u)
|
|
| Method Summary | |
|---|---|
void |
add(java.util.LinkedList u)
Adds one or more timeframes to the schedule |
void |
addTimeframe(Timeframe newtime)
Adds one more timeframe to the schedule |
void |
difference(Schedule outschedule)
Takes a schedule and removes the timeframes in the given schedule from this schedule |
Person |
getPerson()
Gets the owner of the schedule |
java.util.LinkedList |
getSchedule()
Gets the timeframes of the schedule |
void |
setPerson(Person owner)
Sets the person |
void |
setSchedule(java.util.LinkedList schedule)
Sets the schedule from a linked list of timeframes |
java.lang.String |
toString()
|
java.lang.String |
toStringSchedule()
Gets a string of all the schedules delimited by " | " |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Schedule()
public Schedule(Person owner)
public Schedule(Person owner,
java.util.LinkedList schedule)
public Schedule(Person owner,
Timeframe schedule)
public Schedule(Schedule u)
| Method Detail |
|---|
public Person getPerson()
Person who own's the schedulepublic java.util.LinkedList getSchedule()
Timeframespublic void setPerson(Person owner)
owner - the Person who the schedule belongs topublic void setSchedule(java.util.LinkedList schedule)
schedule - a linked list of Timeframespublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringSchedule()
public void addTimeframe(Timeframe newtime)
newtime - a new Timeframe to add to the schedulepublic void add(java.util.LinkedList u)
u - a linked list of Timeframes to add to the schedulepublic void difference(Schedule outschedule)
outschedule - a Schedule that contains busy times to remove from this schedule
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||