Class TennisConstraintProvider
- java.lang.Object
-
- org.optaplanner.examples.tennis.optional.score.TennisConstraintProvider
-
- All Implemented Interfaces:
org.optaplanner.core.api.score.stream.ConstraintProvider
public final class TennisConstraintProvider extends Object implements org.optaplanner.core.api.score.stream.ConstraintProvider
-
-
Constructor Summary
Constructors Constructor Description TennisConstraintProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.optaplanner.core.api.score.stream.Constraint[]defineConstraints(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintevenlyConfrontationCount(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintfairAssignmentCountPerTeam(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintoneAssignmentPerDatePerTeam(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintunavailabilityPenalty(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
-
-
Method Detail
-
defineConstraints
public org.optaplanner.core.api.score.stream.Constraint[] defineConstraints(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
- Specified by:
defineConstraintsin interfaceorg.optaplanner.core.api.score.stream.ConstraintProvider
-
oneAssignmentPerDatePerTeam
protected org.optaplanner.core.api.score.stream.Constraint oneAssignmentPerDatePerTeam(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
unavailabilityPenalty
protected org.optaplanner.core.api.score.stream.Constraint unavailabilityPenalty(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
fairAssignmentCountPerTeam
protected org.optaplanner.core.api.score.stream.Constraint fairAssignmentCountPerTeam(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
evenlyConfrontationCount
protected org.optaplanner.core.api.score.stream.Constraint evenlyConfrontationCount(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
-