|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 | |
|---|---|
void |
clearReservationCache()
Clear reservation information that was cached on this offering or below |
boolean |
equals(Object o)
|
Set<Choice> |
getChoices(String instructionalType)
Return the list of all possible choices of the given instructional type for this offering. |
List<Config> |
getConfigs()
Possible configurations |
Course |
getCourse(Student student)
Return course, under which the given student enrolls into this offering. |
List<Course> |
getCourses()
List of courses. |
long |
getId()
Offering id |
Set<String> |
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 |
List<Reservation> |
getReservations()
Reservations associated with this offering |
Section |
getSection(long sectionId)
Return section of the given id, if it is part of one of this offering configurations. |
Set<Subpart> |
getSubparts(String instructionalType)
Return list of all subparts of the given isntructional type for this offering. |
double |
getTotalUnreservedSpace()
Total space in the offering that is not reserved by any reservation |
double |
getUnreservedSpace(Request excludeRequest)
Available space in the offering that is not reserved by any reservation |
int |
hashCode()
|
boolean |
hasReservations()
True if there are reservations for this offering |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 List<Config> getConfigs()
public List<Course> getCourses()
public Section getSection(long sectionId)
public Course getCourse(Student student)
public Set<String> getInstructionalTypes()
public Set<Choice> getChoices(String instructionalType)
public Set<Subpart> getSubparts(String instructionalType)
public double getMinPenalty()
Config.getMinPenalty()
public double getMaxPenalty()
Config.getMaxPenalty()
public String toString()
toString in class Objectpublic List<Reservation> getReservations()
public boolean hasReservations()
public double getTotalUnreservedSpace()
public double getUnreservedSpace(Request excludeRequest)
excludeRequest - excluding given request (if not null)public void clearReservationCache()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||