net.sf.cpsolver.coursett.model
Class Student

java.lang.Object
  extended by net.sf.cpsolver.coursett.model.Student
All Implemented Interfaces:
Comparable

public class Student
extends Object
implements Comparable

Student.

Version:
CourseTT 1.1 (University Course Timetabling)
Copyright (C) 2006 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

Field Summary
static boolean USE_DISTANCE_CACHE
           
 
Constructor Summary
Student(Long studentId)
           
 
Method Summary
 void addCanNotEnroll(Lecture lecture)
           
 void addCanNotEnroll(Long offeringId, Collection lectures)
           
 void addCommitedPlacement(Placement placement)
           
 void addConfiguration(Configuration config)
           
 void addLecture(Lecture lecture)
           
 void addOffering(Long offeringId, double weight)
           
 double avg(double w1, double w2)
           
 boolean canEnroll(Lecture lecture)
           
 Hashtable canNotEnrollSections()
           
 void clearDistanceCache()
           
 int compareTo(Object o)
           
 Set conflictPlacements(Placement placement)
           
 int countConflictPlacements(Placement placement)
           
 boolean equals(Object o)
           
 Set getCommitedPlacements()
           
 Set getConfigurations()
           
 double getDistance(Student student)
           
 Long getId()
           
 double getJenrlWeight(Lecture l1, Lecture l2)
           
 Set getLectures()
           
 Set getOfferings()
           
 Hashtable getOfferingsMap()
           
 double getOfferingWeight(Configuration configuration)
           
 double getOfferingWeight(Long offeringId)
           
 int hashCode()
           
 boolean hasOffering(Long offeringId)
           
 void removeConfiguration(Configuration config)
           
 void removeLecture(Lecture lecture)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

USE_DISTANCE_CACHE

public static boolean USE_DISTANCE_CACHE
Constructor Detail

Student

public Student(Long studentId)
Method Detail

addOffering

public void addOffering(Long offeringId,
                        double weight)

getOfferingsMap

public Hashtable getOfferingsMap()

getOfferings

public Set getOfferings()

hasOffering

public boolean hasOffering(Long offeringId)

getOfferingWeight

public double getOfferingWeight(Configuration configuration)

getOfferingWeight

public double getOfferingWeight(Long offeringId)

canEnroll

public boolean canEnroll(Lecture lecture)

addCanNotEnroll

public void addCanNotEnroll(Lecture lecture)

addCanNotEnroll

public void addCanNotEnroll(Long offeringId,
                            Collection lectures)

canNotEnrollSections

public Hashtable canNotEnrollSections()

addLecture

public void addLecture(Lecture lecture)

removeLecture

public void removeLecture(Lecture lecture)

getLectures

public Set getLectures()

addConfiguration

public void addConfiguration(Configuration config)

removeConfiguration

public void removeConfiguration(Configuration config)

getConfigurations

public Set getConfigurations()

getId

public Long getId()

getDistance

public double getDistance(Student student)

clearDistanceCache

public void clearDistanceCache()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

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

addCommitedPlacement

public void addCommitedPlacement(Placement placement)

getCommitedPlacements

public Set getCommitedPlacements()

conflictPlacements

public Set conflictPlacements(Placement placement)

countConflictPlacements

public int countConflictPlacements(Placement placement)

getJenrlWeight

public double getJenrlWeight(Lecture l1,
                             Lecture l2)

avg

public double avg(double w1,
                  double w2)