Files
@ 318a910b91ad
Branch filter:
Location: SlatePermutate/schedulecreator.php - annotation
318a910b91ad
3.0 KiB
text/x-php
Now instead of automatically guessing that a user want to register for the next semester, assume they want to register for a semester whose middle is half a year into the future.
27edaecc0d90 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 1cb6f6105b45 27edaecc0d90 30c9462fd881 5d94cc8ac7cd 30c9462fd881 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 27edaecc0d90 28ba454c4ff1 5d94cc8ac7cd 12553a2740cb 27edaecc0d90 5d94cc8ac7cd 12553a2740cb 12553a2740cb 27edaecc0d90 5d94cc8ac7cd 12553a2740cb 12553a2740cb 27edaecc0d90 5d94cc8ac7cd 12553a2740cb 27edaecc0d90 5d94cc8ac7cd 12553a2740cb 12553a2740cb 12553a2740cb 27edaecc0d90 5d94cc8ac7cd 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 27edaecc0d90 5d94cc8ac7cd 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 12553a2740cb 27edaecc0d90 27edaecc0d90 27edaecc0d90 | <?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();
|