|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.studentsct.model.Choice
public class Choice
Student choice. Students have a choice of availabe time (but not room) and instructor(s).
Choices of subparts that have the same instrutional type are also merged together. For instance, a
student have a choice of a time/instructor of a Lecture and of a Recitation.
Constructor Summary | |
---|---|
Choice(Offering offering,
String choiceId)
Constructor |
|
Choice(Offering offering,
String instructionalType,
TimeLocation time,
String instructorIds,
String instructorNames)
Constructor |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare two choices, based on getId() |
String |
getId()
Choice id combined from instructionalType, time and instructorIds in the following format: instructionalType|time|instructorIds where time is of format dayCode:startSlot:length:datePatternId |
String |
getInstructionalType()
Instructional type (e.g., Lecture, Recitation or Laboratory) to which this choice belongs |
String |
getInstructorIds()
Instructor(s) id of the choice, can be null if the section has no instructor assigned |
String |
getInstructorNames()
Instructor(s) name of the choice, can be null if the section has no instructor assigned |
String |
getName()
Choice name: name of the appropriate subpart + long name of time + instructor(s) name |
Offering |
getOffering()
Instructional offering to which this choice belongs |
HashSet |
getParentSections()
List of parent sections of sections of the instructional offering which represent this choice. |
HashSet |
getSections()
List of sections of the instructional offering which represent this choice. |
TimeLocation |
getTime()
Time location of the choice |
int |
hashCode()
Choice hash id, based on getId() |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Choice(Offering offering, String instructionalType, TimeLocation time, String instructorIds, String instructorNames)
offering
- instructional offering to which the choice belongsinstructionalType
- instructional type to which the choice belongs (e.g., Lecture, Recitation or Laboratory)time
- time assignmentinstructorIds
- instructor(s) idinstructorNames
- instructor(s) namepublic Choice(Offering offering, String choiceId)
offering
- instructional offering to which the choice belongschoiceId
- choice id is in format instructionalType|time|instructorIds where time is of format dayCode:startSlot:length:datePatternIdMethod Detail |
---|
public Offering getOffering()
public String getInstructionalType()
public TimeLocation getTime()
public String getInstructorIds()
public String getInstructorNames()
public String getId()
public boolean equals(Object o)
getId()
equals
in class Object
public int hashCode()
getId()
hashCode
in class Object
public HashSet getSections()
public HashSet getParentSections()
public String getName()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |