|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.studentsct.model.Config
public class Config
Representation of a configuration of an offering. A configuration contains id, name, an offering and a list of subparts.
Each instructional offering (see Offering) contains one or more configurations.
Each configuration contain one or more subparts. Each student has to take a class of each subpart of one of the
possible configurations. Some restrictions might be defined using reservations (see Reservation).
| Constructor Summary | |
|---|---|
Config(long id,
String name,
Offering offering)
Constructor |
|
| Method Summary | |
|---|---|
long |
getId()
Configuration id |
double |
getMaxPenalty()
Average maximal penalty from Subpart.getMaxPenalty() |
double |
getMinPenalty()
Average minimal penalty from Subpart.getMinPenalty() |
String |
getName()
Configuration name |
Offering |
getOffering()
Instructional offering to which this configuration belongs. |
Vector |
getSubparts()
List of subparts |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Config(long id,
String name,
Offering offering)
id - instructional offering configuration unique idname - configuration nameoffering - instructional offering to which this configuration belongs| Method Detail |
|---|
public long getId()
public String getName()
public Offering getOffering()
public Vector getSubparts()
public String toString()
toString in class Objectpublic double getMinPenalty()
Subpart.getMinPenalty()
public double getMaxPenalty()
Subpart.getMaxPenalty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||