net.sf.cpsolver.studentsct.reservation
Class DummyReservation

java.lang.Object
  extended by net.sf.cpsolver.studentsct.reservation.Reservation
      extended by net.sf.cpsolver.studentsct.reservation.DummyReservation
All Implemented Interfaces:
Comparable<Reservation>

public class DummyReservation
extends Reservation

Dummy reservation. Use to fill remaining space for offerings that are marked as by reservation only.

Version:
StudentSct 1.2 (Student Sectioning)
Copyright (C) 2007 - 2010 Tomas Muller
muller@unitime.org
http://muller.unitime.org

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 3 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 see http://www.gnu.org/licenses/.

Constructor Summary
DummyReservation(Offering offering)
          Constructor
 
Method Summary
 boolean canAssignOverLimit()
          Dummy reservation cannot go over the limit
 int getPriority()
          Dummy reservation has low priority
 double getReservationLimit()
          Dummy reservation is unlimited
 boolean isApplicable(Student student)
          Dummy reservation is not applicable to any students
 boolean mustBeUsed()
          Dummy reservation do not need to be used
 
Methods inherited from class net.sf.cpsolver.studentsct.reservation.Reservation
addConfig, addSection, assigned, canEnroll, compareTo, getConfigs, getEnrollments, getId, getLimit, getLimitCap, getOffering, getReservedAvailableSpace, getRestrictivity, getSections, getSections, getUsedSpace, isAllowOverlap, isExpired, isIncluded, setExpired, unassigned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyReservation

public DummyReservation(Offering offering)
Constructor

Parameters:
offering - offering on which the reservation is set
Method Detail

getReservationLimit

public double getReservationLimit()
Dummy reservation is unlimited

Specified by:
getReservationLimit in class Reservation

getPriority

public int getPriority()
Dummy reservation has low priority

Specified by:
getPriority in class Reservation

isApplicable

public boolean isApplicable(Student student)
Dummy reservation is not applicable to any students

Specified by:
isApplicable in class Reservation
Parameters:
student - a student
Returns:
true if student can use the reservation to get into the course / configuration / section

canAssignOverLimit

public boolean canAssignOverLimit()
Dummy reservation cannot go over the limit

Specified by:
canAssignOverLimit in class Reservation

mustBeUsed

public boolean mustBeUsed()
Dummy reservation do not need to be used

Specified by:
mustBeUsed in class Reservation


Copyright © 2014 UniTime LLC. All Rights Reserved.