Class ExaminationConstraintProvider

java.lang.Object
org.optaplanner.examples.examination.score.ExaminationConstraintProvider
All Implemented Interfaces:
org.optaplanner.core.api.score.stream.ConstraintProvider

public class ExaminationConstraintProvider extends Object implements org.optaplanner.core.api.score.stream.ConstraintProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.optaplanner.core.api.score.stream.Constraint
    conflictingExamsInSamePeriod(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    org.optaplanner.core.api.score.stream.Constraint[]
    defineConstraints(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    frontLoad(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    mixedDurations(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    periodDurationTooShort(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    periodPenalty(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    periodPenaltyAfter(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    periodPenaltyExamCoincidence(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    periodPenaltyExclusion(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    periodSpread(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    roomCapacityTooSmall(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    roomPenalty(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    roomPenaltyExclusive(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    twoExamsInADay(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     
    protected org.optaplanner.core.api.score.stream.Constraint
    twoExamsInARow(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExaminationConstraintProvider

      public ExaminationConstraintProvider()
  • Method Details

    • defineConstraints

      public org.optaplanner.core.api.score.stream.Constraint[] defineConstraints(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
      Specified by:
      defineConstraints in interface org.optaplanner.core.api.score.stream.ConstraintProvider
    • conflictingExamsInSamePeriod

      protected org.optaplanner.core.api.score.stream.Constraint conflictingExamsInSamePeriod(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • periodDurationTooShort

      protected org.optaplanner.core.api.score.stream.Constraint periodDurationTooShort(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • roomCapacityTooSmall

      protected org.optaplanner.core.api.score.stream.Constraint roomCapacityTooSmall(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • periodPenaltyExamCoincidence

      protected org.optaplanner.core.api.score.stream.Constraint periodPenaltyExamCoincidence(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • periodPenaltyExclusion

      protected org.optaplanner.core.api.score.stream.Constraint periodPenaltyExclusion(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • periodPenaltyAfter

      protected org.optaplanner.core.api.score.stream.Constraint periodPenaltyAfter(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • roomPenaltyExclusive

      protected org.optaplanner.core.api.score.stream.Constraint roomPenaltyExclusive(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • twoExamsInARow

      protected org.optaplanner.core.api.score.stream.Constraint twoExamsInARow(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • twoExamsInADay

      protected org.optaplanner.core.api.score.stream.Constraint twoExamsInADay(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • periodSpread

      protected org.optaplanner.core.api.score.stream.Constraint periodSpread(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • mixedDurations

      protected org.optaplanner.core.api.score.stream.Constraint mixedDurations(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • frontLoad

      protected org.optaplanner.core.api.score.stream.Constraint frontLoad(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • periodPenalty

      protected org.optaplanner.core.api.score.stream.Constraint periodPenalty(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
    • roomPenalty

      protected org.optaplanner.core.api.score.stream.Constraint roomPenalty(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)