A C D F G I S T

A

addBusyTimesToList(TimeInterval, List<TimeInterval>) - Method in class com.example.model.Schedule
Adds a busy time TimeInterval to a list of intervals for a particular day.
addFreeTimesToList(TimeInterval, List<TimeInterval>) - Method in class com.example.model.Schedule
Adds a free time TimeInterval to a list of intervals for a particular day.

C

com.example.model - package com.example.model
 
com.example.web - package com.example.web
 
combine(List<TimeInterval>, char) - Method in class com.example.model.Schedule
Takes a list of intervals for a particular day, the character symbol for that day, and combines the free times in that list into a string which gets returned.

D

difference() - Method in class com.example.model.TimeInterval
Returns the amount of time spanned by the interval.
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.example.web.ScheduleCreator
gets information from form and sends it to the model class.

F

FreeTimesAlreadySetException - Exception in com.example.model
 
FreeTimesAlreadySetException() - Constructor for exception com.example.model.FreeTimesAlreadySetException
 
FreeTimesAlreadySetException(String) - Constructor for exception com.example.model.FreeTimesAlreadySetException
 
FreeTimesNotSetException - Exception in com.example.model
 
FreeTimesNotSetException() - Constructor for exception com.example.model.FreeTimesNotSetException
 
FreeTimesNotSetException(String) - Constructor for exception com.example.model.FreeTimesNotSetException
 

G

getEnd() - Method in class com.example.model.TimeInterval
Return interval's end time.
getEndTimeString() - Method in class com.example.model.TimeInterval
Converts the interval's end time from an integer in universal time to a string in standard time.
getFreeTimes() - Method in class com.example.model.Schedule
Creates a String representation of the free times for each day, combines those strings into one all-encompassing string and returns it.
getMessage() - Method in exception com.example.model.FreeTimesAlreadySetException
 
getMessage() - Method in exception com.example.model.FreeTimesNotSetException
 
getMinFreeTimeSpan() - Method in class com.example.model.Schedule
Return the minimum time span for an interval to be considered valid free time.
getStart() - Method in class com.example.model.TimeInterval
Return interval's start time.
getStartTimeString() - Method in class com.example.model.TimeInterval
Converts the interval's start time from an integer in universal time to a string in standard time.
getTime(String) - Method in class com.example.model.Schedule
Takes a time that was parsed from the original string, and returns that time as an integer in universal time, to be used in a TimeInterval object.

I

isAfter(TimeInterval) - Method in class com.example.model.TimeInterval
Checks if a particular time interval occurs completely after this interval.
isBefore(TimeInterval) - Method in class com.example.model.TimeInterval
Checks if a particular time interval occurs completely before this interval.
isDuring(TimeInterval) - Method in class com.example.model.TimeInterval
Checks if a particular time interval occurs completely during this interval.
isEndOut(TimeInterval) - Method in class com.example.model.TimeInterval
Checks if a particular time interval ends after this interval but starts during it.
isStartOut(TimeInterval) - Method in class com.example.model.TimeInterval
Checks if a particular time interval starts before this interval but ends during it.

S

Schedule - Class in com.example.model
A Schedule object takes a set of restraint times along the busy times for a group and returns the free times common to all members of the group that fall within the restraints.
Schedule() - Constructor for class com.example.model.Schedule
 
ScheduleCreator - Class in com.example.web
 
ScheduleCreator() - Constructor for class com.example.web.ScheduleCreator
 
setBusyTimes(String) - Method in class com.example.model.Schedule
Parses a string of the form "MW 9:00 AM-11:15 AM, T 12:25 PM - 4:00 PM", containing a set of busy times for the schedule object.
setEnd(int) - Method in class com.example.model.TimeInterval
Set the end time of the interval.
setFreeTimeConstraints(String) - Method in class com.example.model.Schedule
Parses a string of the form "MW 9:00 AM-11:15 AM, T 12:25 PM - 4:00 PM", containing the free time constraints for the schedule object.
setMinFreeTimeSpan(String) - Method in class com.example.model.Schedule
Set the minimum time span for an interval to be considered valid free time.
setStart(int) - Method in class com.example.model.TimeInterval
Set the start time of the interval.

T

TimeInterval - Class in com.example.model
 
TimeInterval(int, int) - Constructor for class com.example.model.TimeInterval
Constructor

A C D F G I S T