public static class GroupConstraint.ParametrizedConstraintType<P> extends Object implements GroupConstraint.ConstraintTypeInterface
| Constructor and Description |
|---|
ParametrizedConstraintType(GroupConstraint.ConstraintType type,
P parameter,
String reference) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeConflicts(GroupConstraint.Distribution distribution,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value,
Set<TeachingAssignment> conflicts) |
String |
getName() |
P |
getParameter() |
double |
getValue(GroupConstraint.Distribution distribution,
Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
Instructor instructor,
TeachingAssignment value) |
String |
reference() |
GroupConstraint.ParametrizedConstraintType<P> |
setName(String name) |
GroupConstraint.ConstraintType |
type() |
public ParametrizedConstraintType(GroupConstraint.ConstraintType type, P parameter, String reference)
public GroupConstraint.ParametrizedConstraintType<P> setName(String name)
public double getValue(GroupConstraint.Distribution distribution, Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, Instructor instructor, TeachingAssignment value)
getValue in interface GroupConstraint.Checkpublic void computeConflicts(GroupConstraint.Distribution distribution, Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, TeachingAssignment value, Set<TeachingAssignment> conflicts)
computeConflicts in interface GroupConstraint.Checkpublic P getParameter()
public GroupConstraint.ConstraintType type()
type in interface GroupConstraint.ConstraintTypeInterfacepublic String reference()
reference in interface GroupConstraint.ConstraintTypeInterfacepublic String getName()
getName in interface GroupConstraint.ConstraintTypeInterface