net.sf.cpsolver.studentsct.model
Interface Assignment

All Known Implementing Classes:
FreeTimeRequest, Section

public interface Assignment

Time and room assignment. This can be either Section or FreeTimeRequest.

Version:
StudentSct 1.1 (Student Sectioning)
Copyright (C) 2007 Tomáš Müller
muller@unitime.org
Lazenska 391, 76314 Zlin, Czech Republic

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Method Summary
 void assigned(Enrollment enrollment)
          Enrollment with this assignmnet was assigned to a Request.
 Set getEnrollments()
          Return the list of assigned enrollments that contains this assignment.
 int getNrRooms()
          Number of rooms in which a section meets
 Vector getRooms()
          Room assignment
 TimeLocation getTime()
          Time assignment
 boolean isOverlapping(Assignment assignment)
          True, if this assignment is overlapping in time and space with the given assignment.
 boolean isOverlapping(Set assignments)
          True, if this assignment is overlapping in time and space with the given set of assignments.
 void unassigned(Enrollment enrollment)
          Enrollment with this assignmnet was unassigned from a Request.
 

Method Detail

getTime

TimeLocation getTime()
Time assignment


getRooms

Vector getRooms()
Room assignment

Returns:
list of RoomLocation

getNrRooms

int getNrRooms()
Number of rooms in which a section meets


isOverlapping

boolean isOverlapping(Assignment assignment)
True, if this assignment is overlapping in time and space with the given assignment.


isOverlapping

boolean isOverlapping(Set assignments)
True, if this assignment is overlapping in time and space with the given set of assignments.


assigned

void assigned(Enrollment enrollment)
Enrollment with this assignmnet was assigned to a Request.


unassigned

void unassigned(Enrollment enrollment)
Enrollment with this assignmnet was unassigned from a Request.


getEnrollments

Set getEnrollments()
Return the list of assigned enrollments that contains this assignment.