Package | Description |
---|---|
tlass.project | |
tlass.project.gui.panels | |
tlass.project.model |
Modifier and Type | Method and Description |
---|---|
static Schedule |
Scheduler.pick(Model model)
Creates a schedule by taking all of the positions and assistants
and applying the constraints and returns a list of pairings
that abides by the constraints.
|
Schedule |
ModelHandler.pickNewSchedule()
Returns a new schedule by utilizing ModelEvent
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Schedule> |
Controller.getSchedules()
Returns the schedules currently in the model.
|
Modifier and Type | Method and Description |
---|---|
void |
ModelHandler.finalizeSchedule(Schedule schedule)
Finalizes a schedule, ensuring that all other schedules are not
finalized.
|
java.lang.String[] |
WebformHandler.finalizeSchedule(java.lang.String semester,
Schedule schedule)
Notifies the Assistants of their assignments and finalizes the assignments
|
java.util.ArrayList<Pair<Position,Response>> |
WebformHandler.getNewResponses(java.lang.String semester,
Schedule schedule)
Retieves the responses from the webform and updates the published schedule accordingly.
|
void |
ModelHandler.publishSchedule(Schedule schedule)
Publishes a schedule, ensuring that all other schedules are not
published.
|
java.lang.String[] |
WebformHandler.publishSchedule(java.lang.String semester,
Schedule schedule)
Publishes the schedule to the webform.
|
void |
ModelHandler.restoreSchedule(Schedule schedule,
Schedule scheduleBackup)
Restores the schedule to the matching stored schedule, reverting any changes.
|
boolean |
ModelHandler.setResponse(Schedule schedule,
Position position,
Response response)
Changes a response to a position in a schedule.
|
void |
ModelHandler.setScheduleName(Schedule schedule,
java.lang.String text)
Changes the name of the schedule to the one supplied.
|
void |
ModelHandler.unfinalizeSchedule(Schedule schedule)
Sets the flag in the system that says whether a Schedule is finalized to false.
|
void |
ModelHandler.unpublishIfBad(Schedule schedule)
Unpublishes the schedule if it cannot be published
|
void |
ModelHandler.unpublishSchedule(Schedule schedule)
Sets the flag that tells the system that the schedule will be published to false
|
Modifier and Type | Method and Description |
---|---|
void |
Controller.setSchedules(java.util.ArrayList<Schedule> s)
Set the schedules in the model to the ones specified.
|
Modifier and Type | Method and Description |
---|---|
Schedule |
SchedulePanel.getSchedule()
Get the schedule
|
Modifier and Type | Method and Description |
---|---|
void |
SchedulePanel.setSchedule(Schedule s)
Set the schedule
|
Constructor and Description |
---|
SchedulePanel(MainWindow mw,
Controller c,
Schedule s)
Constructor of a Schedule Panel.
|
Modifier and Type | Method and Description |
---|---|
Schedule |
Schedule.copy()
Returns a copy of the Schedule, including it's internal data
structures (assignments and responses).
|
Schedule |
Model.getFinalizedSchedule()
Retrieves the schedules in the list of schedules
that are marked as finalized.
|
Schedule |
Model.getPublishedSchedule()
Retrieves a the schedules in the list of schedules
that are marked as published.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Schedule> |
Model.getSchedules()
Gets the list of all schedules in the model.
|
Modifier and Type | Method and Description |
---|---|
void |
Model.addSchedule(Schedule aSchedule)
Adds the supplied schedule to the model.
|
void |
Model.removeSchedule(Schedule s)
Removes a Schedule from the Model, ensuring that there are no references to the
Schedule elsewhere in the model.
|
void |
Model.renameSchedule(Schedule s,
java.lang.String name)
Renames the schedule to a specified name.
|
void |
Schedule.restore(Schedule backup)
Overwrites a schedule based on a given backup.
|
Modifier and Type | Method and Description |
---|---|
void |
Model.setSchedules(java.util.ArrayList<Schedule> schedules)
Sets the list of schedules that are currently in the model to the list supplied.
|