|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.exam.model.ExamOwner
public class ExamOwner
Representation of a course or a section (or any other group of students that
is associated with an exam). This entity is not used for examination
timetabling, but it may be important for reports since students are usually
enrolled to sections and/or courses and an exam can be offered for a set of
courses/sections.
The relations between course/section and exams, students and instructors are
bidirectional, see Exam.getOwners()
, ExamStudent.getOwners()
,
and ExamInstructor.getOwners()
.
Constructor Summary | |
---|---|
ExamOwner(Exam exam,
long id,
String name)
Constructor. |
Method Summary | |
---|---|
int |
compareTo(ExamOwner owner)
Compare two exam owners by name |
boolean |
equals(Object o)
Compare two exam owners for equality |
Exam |
getExam()
An exam for this course/section |
long |
getId()
Unique identifier |
Set<ExamInstructor> |
getIntructors()
List of instructors that are enrolled into this section/course |
String |
getName()
Course/section name |
Set<ExamStudent> |
getStudents()
List of students that are enrolled into this section/course |
int |
hashCode()
Hash code |
String |
toString()
String representation -- course/section name |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExamOwner(Exam exam, long id, String name)
exam
- an exam for this course/sectionid
- unique idname
- course/section nameMethod Detail |
---|
public long getId()
public String getName()
public Exam getExam()
public Set<ExamStudent> getStudents()
ExamStudent
public Set<ExamInstructor> getIntructors()
ExamInstructor
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(ExamOwner owner)
compareTo
in interface Comparable<ExamOwner>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |