|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.studentsct.model.Subpart
public class Subpart
Representation of a scheduling subpart. Each scheduling subpart contains id, instructional type, name,
instructional offering configuration, and a list of sections. Optionally, parent-child relation between
subparts can be defined.
Constructor Summary | |
---|---|
Subpart(long id,
String itype,
String name,
Config config,
Subpart parent)
Constructor |
Method Summary | |
---|---|
int |
compareTo(Object o)
Compare two subparts: put parents first, use ids if there is no parent-child relation |
Vector |
getChildren()
Return children subparts |
HashSet |
getChoices()
List of available choices of the sections of this subpart. |
Config |
getConfig()
Instructional offering configuration to which this subpart belongs |
long |
getId()
Subpart id |
String |
getInstructionalType()
Instructional type, e.g., Lecture, Recitation or Laboratory |
double |
getMaxPenalty()
Maximal penalty from Section.getPenalty() |
double |
getMinPenalty()
Minimal penalty from Section.getPenalty() |
String |
getName()
Subpart name |
Subpart |
getParent()
Parent subpart, if parent-child relation is defined between subparts |
Vector |
getSections()
List of sections |
boolean |
isParentOf(Subpart subpart)
True, if this subpart is parent (or parent of a parent etc.) of the given subpart |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Subpart(long id, String itype, String name, Config config, Subpart parent)
id
- scheduling subpart unique iditype
- instructional typename
- subpart nameconfig
- instructional offering configuration to which this subpart belongsparent
- parent subpart, if parent-child relation is defined between subpartsMethod Detail |
---|
public long getId()
public String getInstructionalType()
public String getName()
public Config getConfig()
public Vector getSections()
public Subpart getParent()
public String toString()
toString
in class Object
public boolean isParentOf(Subpart subpart)
public int compareTo(Object o)
compareTo
in interface Comparable
public HashSet getChoices()
public double getMinPenalty()
Section.getPenalty()
public double getMaxPenalty()
Section.getPenalty()
public Vector getChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |