public class Choice extends Object
Constructor and Description |
---|
Choice(Offering offering,
String choiceId)
Constructor
|
Choice(Offering offering,
String instructionalType,
TimeLocation time,
String instructorIds,
String instructorNames)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
Set<Section> |
getParentSections()
List of parent sections of sections of the instructional offering which
represent this choice.
|
Set<Section> |
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() |
void |
setInstructor(String instructorIds,
String instructorNames)
Set instructor(s) id and name of the choice, can be null if the section has no
instructor assigned
|
String |
toString() |
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 Offering getOffering()
public String getInstructionalType()
public TimeLocation getTime()
public String getInstructorIds()
public String getInstructorNames()
public void setInstructor(String instructorIds, String instructorNames)
public String getId()
public Set<Section> getSections()
public Set<Section> getParentSections()
public String getName()