public class FreeTimeRequest.FreeTimeRequestContext extends Request.RequestContext
Constructor and Description |
---|
FreeTimeRequestContext(Assignment<Request,Enrollment> assignment) |
Modifier and Type | Method and Description |
---|---|
void |
assigned(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
Enrollment with this assignment was assigned to a
Request . |
Set<Enrollment> |
getEnrollments()
Return the list of assigned enrollments that contains this assignment.
|
void |
unassigned(Assignment<Request,Enrollment> assignment,
Enrollment enrollment)
Enrollment with this assignment was unassigned from a
Request . |
getLastWeight, setLastWeight
public FreeTimeRequestContext(Assignment<Request,Enrollment> assignment)
public void assigned(Assignment<Request,Enrollment> assignment, Enrollment enrollment)
Request
.assignment
- current assignmentenrollment
- assigned enrollmentpublic void unassigned(Assignment<Request,Enrollment> assignment, Enrollment enrollment)
Request
.assignment
- current assignmentenrollment
- unassigned enrollmentpublic Set<Enrollment> getEnrollments()