|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface GroupConstraint.PairCheck
Group constraints that can be checked on pairs of classes (e.g., same room means any two classes are in the same room), only need to implement this interface.
Method Summary | |
---|---|
boolean |
isSatisfied(GroupConstraint gc,
Placement plc1,
Placement plc2)
Check whether the constraint is satisfied for the given two assignments (required / preferred case) |
boolean |
isViolated(GroupConstraint gc,
Placement plc1,
Placement plc2)
Check whether the constraint is satisfied for the given two assignments (prohibited / discouraged case) |
Method Detail |
---|
boolean isSatisfied(GroupConstraint gc, Placement plc1, Placement plc2)
gc
- Calling group constraintplc1
- First placementplc2
- Second placement
boolean isViolated(GroupConstraint gc, Placement plc1, Placement plc2)
gc
- Calling group constraintplc1
- First placementplc2
- Second placement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |