001/* 002 * UniTime 3.5 (University Timetabling Application) 003 * Copyright (C) 2013, UniTime LLC, and individual contributors 004 * as indicated by the @authors tag. 005 * 006 * This program is free software; you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation; either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * This program is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License along 017 * with this program. If not, see <http://www.gnu.org/licenses/>. 018 * 019*/ 020package org.cpsolver.studentsct.online.expectations; 021 022import org.cpsolver.ifs.util.DataProperties; 023 024/** 025 * A class is considered over-expected, when there less space available than expected. 026 * Much like the {@link PercentageOverExpected}, but with no ability to adjust the expectations. 027 * Expectation rounding can be defined by OverExpected.Rounding parameter, defaults to round 028 * (other values are none, ceil, and floor).<br><br> 029 * Unlimited classes are never over-expected. A class is over-expected when the number of 030 * enrolled students (including the student in question) + expectations is greater or equal 031 * the section limit. 032 * 033 * @version StudentSct 1.3 (Student Sectioning)<br> 034 * Copyright (C) 2014 Tomas Muller<br> 035 * <a href="mailto:muller@unitime.org">muller@unitime.org</a><br> 036 * <a href="http://muller.unitime.org">http://muller.unitime.org</a><br> 037 * <br> 038 * This library is free software; you can redistribute it and/or modify 039 * it under the terms of the GNU Lesser General Public License as 040 * published by the Free Software Foundation; either version 3 of the 041 * License, or (at your option) any later version. <br> 042 * <br> 043 * This library is distributed in the hope that it will be useful, but 044 * WITHOUT ANY WARRANTY; without even the implied warranty of 045 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 046 * Lesser General Public License for more details. <br> 047 * <br> 048 * You should have received a copy of the GNU Lesser General Public 049 * License along with this library; if not see <a 050 * href='http://www.gnu.org/licenses'>http://www.gnu.org/licenses</a>. 051 * 052 */ 053public class MoreSpaceThanExpected extends PercentageOverExpected { 054 055 public MoreSpaceThanExpected(DataProperties config) { 056 super(config); 057 setPercentage(1.0); 058 } 059 060 public MoreSpaceThanExpected() { 061 super(); 062 } 063 064}