public static interface GroupConstraint.PairCheck
| Modifier and Type | Method and Description |
|---|---|
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)
|
boolean isSatisfied(GroupConstraint gc, Placement plc1, Placement plc2)
gc - Calling group constraintplc1 - First placementplc2 - Second placementboolean isViolated(GroupConstraint gc, Placement plc1, Placement plc2)
gc - Calling group constraintplc1 - First placementplc2 - Second placement