net.sf.cpsolver.studentsct.model
Class Config

java.lang.Object
  extended by net.sf.cpsolver.studentsct.model.Config

public class Config
extends Object

Representation of a configuration of an offering. A configuration contains id, name, an offering and a list of subparts.

Each instructional offering (see Offering) contains one or more configurations. Each configuration contain one or more subparts. Each student has to take a class of each subpart of one of the possible configurations. Some restrictions might be defined using reservations (see Reservation).

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

Constructor Summary
Config(long id, String name, Offering offering)
          Constructor
 
Method Summary
 long getId()
          Configuration id
 double getMaxPenalty()
          Average maximal penalty from Subpart.getMaxPenalty()
 double getMinPenalty()
          Average minimal penalty from Subpart.getMinPenalty()
 String getName()
          Configuration name
 Offering getOffering()
          Instructional offering to which this configuration belongs.
 Vector getSubparts()
          List of subparts
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Config

public Config(long id,
              String name,
              Offering offering)
Constructor

Parameters:
id - instructional offering configuration unique id
name - configuration name
offering - instructional offering to which this configuration belongs
Method Detail

getId

public long getId()
Configuration id


getName

public String getName()
Configuration name


getOffering

public Offering getOffering()
Instructional offering to which this configuration belongs.


getSubparts

public Vector getSubparts()
List of subparts


toString

public String toString()
Overrides:
toString in class Object

getMinPenalty

public double getMinPenalty()
Average minimal penalty from Subpart.getMinPenalty()


getMaxPenalty

public double getMaxPenalty()
Average maximal penalty from Subpart.getMaxPenalty()