Package | Description |
---|---|
tlass.project | |
tlass.project.constraintTypes | |
tlass.project.gui.panels | |
tlass.project.model |
Modifier and Type | Method and Description |
---|---|
Position |
ModelHandler.addLAPosition(Section s)
Adds a new LA Position to the provided section
|
Position |
ModelHandler.addTAPosition(Section s)
Adds a new TA position to the provided section.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Position> |
ModelHandler.findProblemPositions()
Gets the positions that will potentially cause the Schedule from being completed.
|
static java.util.ArrayList<Position> |
Scheduler.findProblemPositions(Model model)
Returns an ArrayList of positions cannot be assigned.
|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
ModelHandler.removeLAPosition(Position position)
Removes a specific LA position from the model, updating references
|
void |
ModelHandler.removeTAPosition(Position position)
Removes a specific TA position from the model, updating references
|
void |
ModelHandler.setPositionRestriction(Position position,
Restriction restriction,
java.lang.Object data) |
boolean |
ModelHandler.setResponse(Schedule schedule,
Position position,
Response response)
Changes a response to a position in a schedule.
|
Modifier and Type | Method and Description |
---|---|
void |
RequireTagsConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Require Skills: To be assigned to a position,
an assistant must have at least all the skills
that the position’s section requires.
|
void |
RequireAssignmentConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Require Specific Assignment: Require a assistant
to fill a specific position.
|
void |
PreventSectionConflictsConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Avoid Assignment Time Conflicts: If an assistant
is assigned to two different positions, those
positions’ times must not intersect.
|
void |
PreventScheduleConflictsConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Avoid Unavailable Times: If an assistant is assigned
to a position, that position’s time must not intersect
with a time that assistant has declared to be unavailable.
|
void |
LimitStudentTotalConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Limit Student Count: When a student is being assigned to
multiple positions, limit the total number of students they
can teach overall.
|
void |
ForbidInstructorAssignmentConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Instructor Precludes Assistant: Forbid an assistant from being
assigned to a section taught by a specific professor.
|
void |
ForbidAssignmentConstraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
Forbid Specific Assignment: Forbid an assistant from filling a specific position.
|
Modifier and Type | Method and Description |
---|---|
Pair<Restriction,java.lang.Object> |
SectionPanel.askRestrictions(Position p,
Restriction currentType,
java.lang.Object data)
Retrieves the restrictions for a position and updates the GUI
|
Constructor and Description |
---|
RestrictionDialog(javax.swing.JFrame o,
Controller c,
Position p,
Restriction cr,
java.lang.Object data)
Constructor for RestrictionDialog.
|
Modifier and Type | Method and Description |
---|---|
Position |
Section.addLAPosition()
Add a new LA position that can potentially be filled by an assistant
|
Position |
Section.addTAPosition()
Create a TA position which can potentially be filled by an assistant
|
Position |
Model.getPositionAt(int row)
Looking at the ordered list of sections and their consistent ordering of Positions,
returns a specific Position.
|
Position |
Model.getPositionById(java.lang.String p)
Returns the position in the model that has the same
ID as the one supplied, if it exists in the model.
|
Position[] |
Model.getPositions()
Gets all of the positions currently in the model.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<Position,Assistant> |
Schedule.getAssignments()
Simple accessor for assignments.
|
java.util.HashMap<Position,java.util.ArrayList<Assistant>> |
Section.getForbiddenAssistants()
Gets the assistants which are forbidden from being mapped to specified positions.
|
java.util.ArrayList<Position> |
Section.getLAs()
Gets the LAs for the section.
|
java.util.ArrayList<Position> |
Section.getPositions()
Returns a list of the positions, both open and filled.
|
java.util.HashMap<Position,Assistant> |
Section.getRequiredAssistants()
Gets the hashmap that contains the required assistants, mapped to positions, for the section.
|
java.util.HashMap<Position,Response> |
Schedule.getResponses()
Simple accessor for the responses of this schedule.
|
java.util.ArrayList<Position> |
Section.getSortedPositions()
Returns an ordered list of the Positions.
|
java.util.ArrayList<Position> |
Section.getTAs()
Gets the TAs for the section.
|
Modifier and Type | Method and Description |
---|---|
void |
Schedule.addAssignment(Position position,
Assistant assistant)
Adds a new assignment (with accompanying "unseen" response).
|
void |
Section.addForbiddenAssistant(Position position,
Assistant assistant)
Pairs the specified position and assistant and marks them as a forbidden pairing.
|
void |
Section.addRequiredAssistant(Position position,
Assistant a)
Adds the assistant to the provided position.
|
void |
Schedule.clean(Position[] positions,
java.util.ArrayList<Assistant> assistants)
Removes all of the positions and assistants in the supplied array of positions and ArrayList of asssistants
|
boolean |
Schedule.filled(Position position)
Checks whether a position has been filled.
|
Assistant |
Schedule.getAssignment(Position position)
Returns the assistant assigned to a given position
|
java.util.ArrayList<Assistant> |
Section.getForbiddenAssistants(Position position)
Returns an ArrayList of the assistants forbidden
from being assigned to the supplied position
|
int |
Section.getLAOrder(Position position)
Gets an ordered list of the LAs
|
Assistant |
Section.getRequiredAssistant(Position position)
Reutrns the assistant that is required to be assigned
to the supplied position
|
Response |
Schedule.getResponse(Position position)
Returns the response given to this schedule by the assistant
assigned to that position.
|
int |
Section.getTAOrder(Position position)
Gets an ordered list of the TAs
|
boolean |
Section.hasForbiddenAssistants(Position position)
Checks to see if the supplied position has any assistants
forbidden from being assigned to it.
|
boolean |
Section.hasRequiredAssistant(Position position)
Checks to see if the supplied position has any assistants
that are required to be assingned to it.
|
abstract void |
Constraint.imposeConstraint(Store jacopStore,
IntVar[] variables,
Position[] positions,
Assistant[] assistants)
The important function to override for a Constraint.
|
boolean |
Schedule.isAssigned(Position position,
Assistant assistant)
Returns whether the given assistant is assigned to that position
|
boolean |
Section.isForbiddenAssistant(Position aPosition,
Assistant anAssistant)
Checks to see if the assistant is forbidden from being paired with the specified section.
|
boolean |
Section.isRequiredAssistant(Position aPosition,
Assistant anAssistant)
Checks to see if the assistant and position pairing is required.
|
void |
Section.removeLA(Position position)
Removes the selected La position from the section.
|
void |
Model.removeLAPosition(Position position)
Removes the specified position from the list of available
la positions from the model.
|
void |
Section.removeTA(Position position)
Reomoves the selected Ta Position from the section.
|
void |
Model.removeTAPosition(Position position)
Removes the specified position from the list of available
ta positions from the model.
|
boolean |
Schedule.resetResponse(Position position)
Changes the response to unseen.
|
void |
Section.setForbiddenAssistants(Position position,
java.util.ArrayList<Assistant> data)
Sets the assistant as forbidden for the selected position for the section.
|
void |
Section.setRequiredAssistants(Position position,
Assistant data)
Sets the assistant as required for the selected position for this section.
|
boolean |
Schedule.setResponse(Position position,
Response response)
Changes the response for a certain assignment.
|
void |
Schedule.unassign(Position p)
Removes the assignment of an Assistant to a Position.
|
void |
Schedule.unassignPosition(Position p)
Removes the specified position from the schedule.
|
boolean |
Schedule.uses(Position position)
Checks whether a given position is used at all in the schedule
|
Modifier and Type | Method and Description |
---|---|
void |
Schedule.clean(java.util.ArrayList<Position> positions,
java.util.ArrayList<Assistant> assistants)
Consumes the positions and assistants in the system and checks if this
schedule references resources that are missing.
|
void |
Schedule.setAssignments(java.util.HashMap<Position,Assistant> assignments)
Simple mutator for the assignments of this schedule.
|
void |
Section.setForbiddenAssistants(java.util.HashMap<Position,java.util.ArrayList<Assistant>> forbiddenAssistants)
Set the assistants which are forbidden from being mapped to specified positions;
|
void |
Section.setLAs(java.util.ArrayList<Position> las)
Sets the LAs for the section.
|
void |
Section.setRequiredAssistants(java.util.HashMap<Position,Assistant> requiredAssistants)
Sets a list of assistants, which are mapped to positions, who are required for the section.
|
void |
Schedule.setResponses(java.util.HashMap<Position,Response> responses)
Simple mutator for the responses of this schedule.
|
void |
Section.setTAs(java.util.ArrayList<Position> tas)
Sets the TAs for the section.
|