net.sf.cpsolver.studentsct
Class StudentSctBBTest

java.lang.Object
  extended by net.sf.cpsolver.ifs.model.Model
      extended by net.sf.cpsolver.studentsct.StudentSctBBTest

public class StudentSctBBTest
extends Model

Online student sectioning test (using BranchBoundSelection selection). This class is used by the online student sectioning mock-up page.

Usage: StudentSctBBTest test = new StudentSctBBTest(student); //student already has all his/her requests defined
Solution sectioningSolution = test.getSolution(); //solution contains only one student (the given one) with his/her schedule
Vector sectioningMessages = test.getMessages(); //sectioning messages (to be printed in the GUI).


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

Nested Class Summary
static class StudentSctBBTest.Message
          Sectioning message
 
Field Summary
 
Fields inherited from class net.sf.cpsolver.ifs.model.Model
iAssignedVariables, iPerturbVariables, iUnassignedVariables, sDoubleFormat, sPercentageFormat, sTimeFormat
 
Constructor Summary
StudentSctBBTest(Student student)
          Constructor
 
Method Summary
 Vector getMessages()
          Return a list of messages (StudentSctBBTest.Message objects) from the sectioning of the given student
 Solution getSolution()
          Compute and return the sectioning solution.
 Student getStudent()
          Return the given student
 
Methods inherited from class net.sf.cpsolver.ifs.model.Model
addConstraint, addGlobalConstraint, addModelListener, addVariable, afterAssigned, afterUnassigned, assignedVariables, beforeAssigned, beforeUnassigned, bestUnassignedVariables, clearBest, conflictConstraints, conflictValues, constraints, countConstraints, countGlobalConstraints, countVariables, getBestPerturbations, getBestUnassignedVariables, getExtendedInfo, getInfo, getInfo, getInfoProviders, getModelListeners, getPerc, getPercRev, getTotalValue, getTotalValue, globalConstraints, inConflict, init, invalidateVariablesWithInitialValueCache, modelListenerOfType, nrAssignedVariables, nrUnassignedVariables, perturbVariables, perturbVariables, removeConstraint, removeGlobalConstraint, removeModelListener, removeVariable, restoreBest, saveBest, toString, unassignedHardConstraints, unassignedVariables, variables, variablesWithInitialValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StudentSctBBTest

public StudentSctBBTest(Student student)
Constructor

Parameters:
student - a student to be sectioned
Method Detail

getStudent

public Student getStudent()
Return the given student


getSolution

public Solution getSolution()
Compute and return the sectioning solution. It contains only the given student with his/her schedule


getMessages

public Vector getMessages()
Return a list of messages (StudentSctBBTest.Message objects) from the sectioning of the given student