A C D G P S T

A

AllTest - Class in com.example.model
 
AllTest() - Constructor for class com.example.model.AllTest
 

C

com.example.model - package com.example.model
 
com.example.web - package com.example.web
 
createSchedule(String[]) - Static method in class com.example.model.Parser
REMOVED TEST MAIN ***************** public static void main(String[] args) { String[] array = new String[5]; array[0] = new String("0:1-2;1:1-3"); array[1] = new String("0:1-2;1:1-3"); array[2] = new String("0:1-2;1:1-3"); array[3] = new String("0:1-2;1:1-3"); array[4] = new String("0:1-2;1:1-3"); Schedule testSched = new Schedule(1); testSched = createSchedule(array); testSched.setFreeSchedule(); String newString = testSched.printFreeSchedule(); System.out.println( newString ); String expectedResult = "Day: M, Hour: 1pm" + '\n' + "Day: M, Hour: 2pm" + '\n' + "Day: T, Hour: 1pm" + '\n' + "Day: T, Hour: 2pm" + '\n' + "Day: W, Hour: 1pm" + '\n' + "Day: W, Hour: 2pm" + '\n' + "Day: TR, Hour: 1pm" + '\n' + "Day: TR, Hour: 2pm" + '\n' + "Day: F, Hour: 1pm" + '\n' + "Day: F, Hour: 2pm" + '\n'; System.out.println(expectedResult); if( newString.compareTo(expectedResult) == 0 ) System.out.println("return true"); else System.out.println("return false "); //return 0; } END OF REMOVAL

D

doPost(HttpServletRequest, HttpServletResponse) - Method in class com.example.web.ScheduleServlet
Class: ScheduleServlet This is the controller servlet for the A08 webapp.

G

getFreeHour(int, int) - Method in class com.example.model.Student
Purpose: Check to see if this particular Day and Hour are set as "free" (meaning "1")
getFreeSchedule(int, int) - Method in class com.example.model.Schedule
 

P

Parser - Class in com.example.model
 
Parser() - Constructor for class com.example.model.Parser
 
printFreeSchedule() - Method in class com.example.model.Schedule
 

S

Schedule - Class in com.example.model
 
Schedule(int) - Constructor for class com.example.model.Schedule
Constructor
ScheduleServlet - Class in com.example.web
 
ScheduleServlet() - Constructor for class com.example.web.ScheduleServlet
 
setFreeSchedule() - Method in class com.example.model.Schedule
 
setHourAsFree(int, int) - Method in class com.example.model.Student
Purpose: Set this particular Day and Hour as "free" (1)
setSchedule(int, int, int) - Method in class com.example.model.Schedule
 
Student - Class in com.example.model
 
Student() - Constructor for class com.example.model.Student
 

T

testSimpleParser() - Method in class com.example.model.AllTest
 
testSimpleSchedule() - Method in class com.example.model.AllTest
 
testSimpleStudent() - Method in class com.example.model.AllTest
 

A C D G P S T