|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.studentsct.model.Offering
public class Offering
Representation of an instructional offering. An offering contains id, name, the list of course offerings, and the list of
possible configurations. See Config
and Course
.
Constructor Summary | |
---|---|
Offering(long id,
String name)
Constructor |
Method Summary | |
---|---|
HashSet |
getChoices(String instructionalType)
Return the list of all possible choices of the given instructional type for this offering. |
Vector |
getConfigs()
Possible configurations |
Course |
getCourse(Student student)
Return course, under which the given student enrolls into this offering. |
Vector |
getCourses()
List of courses. |
long |
getId()
Offering id |
HashSet |
getInstructionalTypes()
Return set of instructional types, union over all configurations. |
double |
getMaxPenalty()
Maximal penalty from Config.getMaxPenalty() |
double |
getMinPenalty()
Minimal penalty from Config.getMinPenalty() |
String |
getName()
Offering name |
Section |
getSection(long sectionId)
Return section of the given id, if it is part of one of this offering configurations. |
HashSet |
getSubparts(String instructionalType)
Return list of all subparts of the given isntructional type for this offering. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Offering(long id, String name)
id
- instructional offering unique idname
- instructional offering name (this is usually the name of the controlling course)Method Detail |
---|
public long getId()
public String getName()
public Vector getConfigs()
public Vector getCourses()
public Section getSection(long sectionId)
public Course getCourse(Student student)
public HashSet getInstructionalTypes()
public HashSet getChoices(String instructionalType)
public HashSet getSubparts(String instructionalType)
public double getMinPenalty()
Config.getMinPenalty()
public double getMaxPenalty()
Config.getMaxPenalty()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |