net.sf.cpsolver.coursett.model
Class Student
java.lang.Object
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
USE_DISTANCE_CACHE
public static boolean USE_DISTANCE_CACHE
Student
public Student(Long studentId)
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)