|
||||||||||
| 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<Timeframe> schedule)
|
|
Schedule(Person owner,
Timeframe schedule)
|
|
Schedule(Schedule u)
|
|
| Method Summary | |
|---|---|
void |
add(java.util.LinkedList<Timeframe> 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 |
java.lang.String |
getDescription()
Gets the Description of the schedule |
java.lang.Long |
getId()
Gets the database id of the schedule |
Person |
getPerson()
Gets the owner of the schedule |
java.util.LinkedList |
getSchedule()
Gets the timeframes of the schedule |
boolean |
isEmpty()
|
void |
removeTimeframe(Timeframe t)
Removes one timeframe from the schedule |
void |
setDescription(java.lang.String nd)
Sets the description |
void |
setPerson(Person person)
Sets the person |
void |
setSchedule(java.util.LinkedList<Timeframe> schedule)
Sets the schedule from a linked list of timeframes |
java.lang.String |
toString()
|
java.lang.String |
toStringMilitary()
|
java.lang.String |
toStringSchedule()
Gets a string of all the schedules delimited by " | " |
java.lang.String |
toStringScheduleMilitary()
Gets a string of all the schedules delimited by " | " |
void |
updateTimeframeid()
Calls the Timeframe setScheduleId to update the Timeframe's
parent id. |
| 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<Timeframe> schedule)
public Schedule(Person owner,
Timeframe schedule)
public Schedule(Schedule u)
| Method Detail |
|---|
public java.lang.String getDescription()
public void setDescription(java.lang.String nd)
nd - the description of the schedulepublic java.lang.Long getId()
public Person getPerson()
Person who own's the schedulepublic java.util.LinkedList getSchedule()
Timeframespublic void setPerson(Person person)
owner - the Person who the schedule belongs topublic void setSchedule(java.util.LinkedList<Timeframe> schedule)
schedule - a linked list of Timeframespublic java.lang.String toStringMilitary()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringSchedule()
public java.lang.String toStringScheduleMilitary()
public void updateTimeframeid()
Timeframe setScheduleId to update the Timeframe's
parent id. Must be called after the schedule is saved and before the Timeframe
is saved.
public void addTimeframe(Timeframe newtime)
newtime - a new Timeframe to add to the schedulepublic void removeTimeframe(Timeframe t)
t - a Timeframe to remove from the schedulepublic void add(java.util.LinkedList<Timeframe> 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 schedulepublic boolean isEmpty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||