net.sf.cpsolver.studentsct.report
Class CourseSection

java.lang.Object
  extended by net.sf.cpsolver.studentsct.report.CourseSection
All Implemented Interfaces:
Comparable<CourseSection>

public class CourseSection
extends Object
implements Comparable<CourseSection>

A simple class containing reference to a (course, class) pair. Used in some of the reports. Provides sorting capabilities.

Version:
StudentSct 1.2 (Student Sectioning)
Copyright (C) 2013 Tomas Muller
muller@unitime.org
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/.

Constructor Summary
CourseSection(Course course, Section section)
          Constructor
 
Method Summary
 int compareTo(CourseSection other)
           
 boolean equals(Object o)
           
 Course getCourse()
          Course
 Section getSection()
          Class
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseSection

public CourseSection(Course course,
                     Section section)
Constructor

Method Detail

getCourse

public Course getCourse()
Course


getSection

public Section getSection()
Class


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(CourseSection other)
Specified by:
compareTo in interface Comparable<CourseSection>


Copyright © 2014 UniTime LLC. All Rights Reserved.