Package | Description |
---|---|
tlass.project | |
tlass.project.constraintTypes | |
tlass.project.gui.panels | |
tlass.project.model |
Modifier and Type | Method and Description |
---|---|
Assistant |
ModelHandler.addNewAssistant()
Adds a new Assistant to the model by utilizing ModelEvent
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Assistant> |
Controller.getAssistants()
Returns the assistants currently in the model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ModelHandler.addAssistantSkill(Assistant assistant,
Skill newSkill)
Returns if added
|
void |
ModelHandler.addAssistantSkill(Assistant assistant,
java.lang.String newSkillName)
Adds a skill that the Assistant possesses to that Assistant.
|
boolean |
ModelHandler.addAssistantUnavailableTime(Assistant assistant,
TimeBlock time)
Adds a time that an assistant will not be able to work to the supplied assistant.
|
void |
ModelHandler.addUnavailableTime(Assistant assistant,
TimeBlock time)
Adds a time that an assistant will not be able to work to the supplied assistant.
|
void |
WebformHandler.notifyAssistant(Assistant assistant)
Notifies the assistant of their assignment
|
void |
ModelHandler.removeAssistantSkill(Assistant assistant,
Skill selectedSkill)
Removes a skill from an Assistant
|
void |
ModelHandler.removeAssistantUnavailableTime(Assistant assistant,
TimeBlock aTime)
Removes a timeblock that is unavailable from the Assistant
|
void |
ModelHandler.restoreAssistant(Assistant assistant,
Assistant assistantBackup)
Restores the supplied assistant to the to the matching stored assistant, reverting any changes.
|
void |
ModelHandler.setAssistantActive(Assistant assistant,
boolean selected)
Sets the Assistant to be either active or inactive
marking whether or not they are eligable for scheduling
|
void |
ModelHandler.setAssistantLimit(Assistant assistant,
int value)
Sets the threshold of students in a section the Assistant can be assigned to
|
void |
ModelHandler.setAssistantName(Assistant assistant,
java.lang.String text)
Changes the name of the Assistant to the one supplied.
|
void |
ModelHandler.setAssistantUsername(Assistant assistant,
java.lang.String text)
Sets the Assistant's username to the one upplied.
|
Modifier and Type | Method and Description |
---|---|
void |
Controller.setAssistants(java.util.ArrayList<Assistant> a)
Set the Assistants in the model to the ones specified.
|
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 |
---|---|
Assistant |
AssistantPanel.getAssistant() |
Modifier and Type | Method and Description |
---|---|
void |
AssistantPanel.setAssistant(Assistant a) |
Constructor and Description |
---|
AssistantPanel(Controller c,
Assistant a,
javax.swing.JTree st,
javax.swing.tree.DefaultMutableTreeNode n,
MainWindow mw)
Constructor for the assistant panel
|
Modifier and Type | Method and Description |
---|---|
Assistant |
Assistant.copy()
Creates an exact copy of an assistant
|
Assistant |
Schedule.getAssignment(Position position)
Returns the assistant assigned to a given position
|
Assistant |
Model.getAssistant(int assistantIndex)
Retrieves a the assistant at the specified index from the list of assistants.
|
Assistant |
Model.getAssistantByName(java.lang.String s)
Returns the assistant in the model that has the same name
as the one that is supplied, if it exists in the model.
|
Assistant |
Model.getAssistantByUsername(java.lang.String s)
Returns the assistant in the model that has the same
username as the one supplied, if it exists in the model.
|
Assistant[] |
Model.getAssistantsArray()
Returns the list of assistants in the model as an array, rather than
as an arraylist.
|
Assistant |
Section.getRequiredAssistant(Position position)
Reutrns the assistant that is required to be assigned
to the supplied position
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<Position,Assistant> |
Schedule.getAssignments()
Simple accessor for assignments.
|
java.util.ArrayList<Assistant> |
Model.getAssistants()
Gets the list of assistants that are currently in the model.
|
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<Assistant> |
Instructor.getForbiddenAssistants()
Returns a list of forbidden Assistants
|
java.util.ArrayList<Assistant> |
Section.getForbiddenAssistants(Position position)
Returns an ArrayList of the assistants forbidden
from being assigned to the supplied position
|
java.util.HashMap<Position,Assistant> |
Section.getRequiredAssistants()
Gets the hashmap that contains the required assistants, mapped to positions, 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 |
Model.addAssistant(Assistant assistant)
Adds the supplied assistant to the list of assistants that are currently in the model.
|
void |
Instructor.addForbiddenAssistant(Assistant assistant)
Adds a forbidden assistant to the instructor's list
|
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 |
Section.allowAssistant(Assistant a)
Allows an assistant to be considered for a position.
|
void |
Instructor.allowAssistant(Assistant a)
Changes an assistant from being on the forbidden list to now be allowed
|
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 |
Instructor.isForbiddenAssistant(Assistant anAssistant)
checks to see if an assistant is in that Instructor's forbidden assistants list
|
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.optionalizeAssistant(Assistant a)
TODO
|
void |
Model.removeAssistant(Assistant a)
Not only removes the assistant from the Model, but also ensures that there
are no references to the Assistant in any component of the model.
|
void |
Model.renameAssistant(Assistant a,
java.lang.String name)
Renames an assistant to a specified name.
|
void |
Assistant.restore(Assistant backup)
Restores an assistant with all the data from a previous version
|
void |
Section.setRequiredAssistants(Position position,
Assistant data)
Sets the assistant as required for the selected position for this section.
|
void |
Schedule.unassignAssistant(Assistant a)
Removes any references to the assistant from the schedule.
|
boolean |
Schedule.uses(Assistant assistant)
Checks whether a given assistant is used at all in the schedule.
|
Modifier and Type | Method and Description |
---|---|
void |
Instructor.clean(java.util.ArrayList<Assistant> assistants)
Removes any assistants still in the instructors forbidden assistants list after that assistant
has been deleted from the master list
|
void |
Section.clean(java.util.ArrayList<Assistant> assistants,
java.util.ArrayList<Skill> skills,
java.util.ArrayList<Instructor> instructors)
Consumes an ArrayLIst of assistants, skills, and instructors
and then removes all of the elements from the three
arraylists
|
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.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
|
void |
Schedule.setAssignments(java.util.HashMap<Position,Assistant> assignments)
Simple mutator for the assignments of this schedule.
|
void |
Model.setAssistants(java.util.ArrayList<Assistant> assistants)
Sets the list of assistants that are currently in the model to the list supplied.
|
void |
Instructor.setForbiddenAssistants(java.util.ArrayList<Assistant> forbiddenAssistants)
Sets the forbidden Assistants
|
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.setForbiddenAssistants(Position position,
java.util.ArrayList<Assistant> data)
Sets the assistant as forbidden for the selected position 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.
|