net.sf.cpsolver.exam.model
Class SimpleExamRoomSharing

java.lang.Object
  extended by net.sf.cpsolver.exam.model.ExamRoomSharing
      extended by net.sf.cpsolver.exam.model.SimpleExamRoomSharing

public class SimpleExamRoomSharing
extends ExamRoomSharing

Simple room sharing model. Any two exams of the same length (Exam.getLength()) can be put into any room, if the room is big enough.

To enable this model, set property Exams.RoomSharingClass to net.sf.cpsolver.exam.model.SimpleExamRoomSharing

Version:
ExamTT 1.2 (Examination Timetabling)
Copyright (C) 2008 - 2012 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
SimpleExamRoomSharing(Model<Exam,ExamPlacement> model, DataProperties config)
           
 
Method Summary
 boolean canShareRoom(Exam x1, Exam x2)
          True if given two exams can share a room
 
Methods inherited from class net.sf.cpsolver.exam.model.ExamRoomSharing
computeConflicts, computeConflicts, inConflict, inConflict, load, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExamRoomSharing

public SimpleExamRoomSharing(Model<Exam,ExamPlacement> model,
                             DataProperties config)
Method Detail

canShareRoom

public boolean canShareRoom(Exam x1,
                            Exam x2)
Description copied from class: ExamRoomSharing
True if given two exams can share a room

Specified by:
canShareRoom in class ExamRoomSharing


Copyright © 2014 UniTime LLC. All Rights Reserved.