Files @ 30c9462fd881
Branch filter:

Location: SlatePermutate/schedulecreator.php

Ethan Zonca
Moved class files into inc
<?php
/*
 * Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
 *
 * This file is part of SlatePermutate.
 *
 * SlatePermutate is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SlatePermutate is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with SlatePermutate.  If not, see <http://www.gnu.org/licenses/>.
 */

include_once 'inc/class.schedule.php';
include_once 'inc/class.course.inc';
include_once 'inc/class.section.php';

//**************************************************
// ScheduleCreator.java	Author: Nathan Gelderloos
// 
// Creates a list of classes.
//**************************************************

   
         $allClasses = new Schedule("Fall 2010");
  	
         $allClasses->addCourse("CS 104");
         $allClasses->addSection("CS 104", "A", 1030, 1120, 'th');
      	
         $allClasses->addCourse("Engr 209");
         $allClasses->addSection("Engr 209", "A", 1330, 1420, 'mtwf');
         $allClasses->addSection("Engr 209", "B", 1430, 1520, 'mtwf');
      	
         $allClasses->addCourse("Engr 209L");
         $allClasses->addSection("Engr 209L", "A", 1830, 2120, 'h');
         $allClasses->addSection("Engr 209L", "B", 1830, 2120, 'w');
      	
         $allClasses->addCourse("Math 231");
         $allClasses->addSection("Math 231", "A", 800, 850, 'mtwf');
      	
         $allClasses->addCourse("Phys 235");
         $allClasses->addSection("Phys 235", "A", 900, 950, 'mwf');
         $allClasses->addSection("Phys 235", "B", 1130, 1220, 'mwf');
         $allClasses->addSection("Phys 235", "C", 1230, 1320, 'mwf');
      	
         $allClasses->addCourse("Phys 235L");
         $allClasses->addSection("Phys 235L", "A", 1430, 1720, 'm');
         $allClasses->addSection("Phys 235L", "B", 1430, 1720, 'w');
         $allClasses->addSection("Phys 235L", "C", 830, 1120, 'h');
         $allClasses->addSection("Phys 235L", "D", 1230, 1520, 'h');
      	
         $allClasses->addCourse("Rel 131");
         $allClasses->addSection("Rel 131", "A", 800, 850, 'mwf');
         $allClasses->addSection("Rel 131", "B", 900, 950, 'mwf');
         $allClasses->addSection("Rel 131", "C", 1330, 1420, 'mwf');
         $allClasses->addSection("Rel 131", "D", 1430, 1520, 'mwf');
         $allClasses->addSection("Rel 131", "E", 835, 950, 'th');
         $allClasses->addSection("Rel 131", "F", 1030, 1145, 'th');
         $allClasses->addSection("Rel 131", "G", 1205, 1320, 'th');
         $allClasses->addSection("Rel 131", "H", 1330, 1445, 'th');
      	       
         $allClasses->findPossibilities();
         $allClasses->writeoutTables();