|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
scheduler.generate.Generate
public class Generate
Contains the methods for generating a schedule. Most of the "magic" behind this class is hidden under the mask of the Generate_ui class. Thus, much of what is contained here is "under the hood". Furthermore, this class does not contain any of its own: all its information will come from the external, all-powerful database(s).
Field Summary | |
---|---|
Schedule |
s
The generated schedule |
static java.util.Hashtable<Instructor,Treatment> |
treatment
Keeps track of what courses, times, and WTU's an instructor had been assigned |
Constructor Summary | |
---|---|
Generate()
Just calls super()...does nothing else. |
Method Summary | |
---|---|
private void |
addItem(Schedule s,
Course c,
Instructor i,
LocationAndTime lat)
Tries to add a schedule item to the schedule. |
void |
generate(java.util.LinkedList<Course> cdb,
java.util.LinkedList<Instructor> idb,
java.util.LinkedList<Location> ldb)
Generates a schedule. |
Schedule |
getSchedule()
Part of the last-minute hack I did to make sure you could "observe" the schedule. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Hashtable<Instructor,Treatment> treatment
public Schedule s
Constructor Detail |
---|
public Generate()
Method Detail |
---|
public void generate(java.util.LinkedList<Course> cdb, java.util.LinkedList<Instructor> idb, java.util.LinkedList<Location> ldb)
cdb
- The list of courses to scheduleidb
- The list of instructors with which to teach the coursesldb
- The list of location in which to teach the coursesprivate void addItem(Schedule s, Course c, Instructor i, LocationAndTime lat)
public Schedule getSchedule()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |