net.sf.cpsolver.studentsct.model
Class Course

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

public class Course
extends Object

Representation of a course offering. A course offering contains id, subject area, course number and an instructional offering.

Each instructional offering (see Offering) is offered under one or more course offerings.

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
Course(long id, String subjectArea, String courseNumber, Offering offering)
          Constructor
Course(long id, String subjectArea, String courseNumber, Offering offering, int limit, int projected)
          Constructor
 
Method Summary
 String getCourseNumber()
          Course number
 long getId()
          Course offering unique id
 int getLimit()
          Course offering limit
 String getName()
          Course offering name: subject area + course number
 Offering getOffering()
          Instructional offering which is offered under this course offering.
 int getProjected()
          Course offering projected number of students
 String getSubjectArea()
          Subject area
 void setLimit(int limit)
          Set course offering limit
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Course

public Course(long id,
              String subjectArea,
              String courseNumber,
              Offering offering)
Constructor

Parameters:
id - course offering unique id
subjectArea - subject area (e.g., MA, CS, ENGL)
courseNumber - course number under the given subject area
offering - instructional offering which is offered under this course offering

Course

public Course(long id,
              String subjectArea,
              String courseNumber,
              Offering offering,
              int limit,
              int projected)
Constructor

Parameters:
id - course offering unique id
subjectArea - subject area (e.g., MA, CS, ENGL)
courseNumber - course number under the given subject area
offering - instructional offering which is offered under this course offering
limit - course offering limit
projected - projected demand
Method Detail

getId

public long getId()
Course offering unique id


getSubjectArea

public String getSubjectArea()
Subject area


getCourseNumber

public String getCourseNumber()
Course number


getName

public String getName()
Course offering name: subject area + course number


toString

public String toString()
Overrides:
toString in class Object

getOffering

public Offering getOffering()
Instructional offering which is offered under this course offering.


getLimit

public int getLimit()
Course offering limit


setLimit

public void setLimit(int limit)
Set course offering limit


getProjected

public int getProjected()
Course offering projected number of students