All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cpsolver.studentsct.online.OnlineConfig Maven / Gradle / Ivy

Go to download

The constraint solver library contains a local search based framework that allows modeling of a problem using constraint programming primitives (variables, values, constraints).

The newest version!
package org.cpsolver.studentsct.online;

import org.cpsolver.studentsct.model.Config;
import org.cpsolver.studentsct.model.Offering;

/**
 * An online configuration. A simple extension of the {@link Config} class that allows to set the current configuration enrollment.
 * This class is particularly useful when a model containing only the given student is constructed (to provide him/her with a schedule or suggestions).
 * 
 * @author  Tomas Muller
 * @version StudentSct 1.3 (Student Sectioning)
* Copyright (C) 2014 Tomas Muller
* [email protected]
* 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. * */ public class OnlineConfig extends Config { private int iEnrollment = 0; public OnlineConfig(long id, int limit, String name, Offering offering) { super(id, limit, name, offering); } /** * Set current enrollment * @param enrollment current enrollment */ public void setEnrollment(int enrollment) { iEnrollment = enrollment; } /** * Get current enrollment * @return current enrollment */ public int getEnrollment() { return iEnrollment; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy