Class CheapTimeConstraintProvider
- java.lang.Object
-
- org.optaplanner.examples.cheaptime.optional.score.CheapTimeConstraintProvider
-
- All Implemented Interfaces:
org.optaplanner.core.api.score.stream.ConstraintProvider
public class CheapTimeConstraintProvider extends Object implements org.optaplanner.core.api.score.stream.ConstraintProvider
-
-
Constructor Summary
Constructors Constructor Description CheapTimeConstraintProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.optaplanner.core.api.score.stream.ConstraintactiveMachinePowerCost(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintactiveMachineSpinUpAndDownCost(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.ConstraintidleCosts(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintmaximumCapacity(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintstartEarly(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintstartTimeLimitsFrom(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstraintstartTimeLimitsTo(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)protected org.optaplanner.core.api.score.stream.ConstrainttaskPowerCost(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
-
startTimeLimitsFrom
protected org.optaplanner.core.api.score.stream.Constraint startTimeLimitsFrom(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
startTimeLimitsTo
protected org.optaplanner.core.api.score.stream.Constraint startTimeLimitsTo(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
maximumCapacity
protected org.optaplanner.core.api.score.stream.Constraint maximumCapacity(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
activeMachinePowerCost
protected org.optaplanner.core.api.score.stream.Constraint activeMachinePowerCost(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
activeMachineSpinUpAndDownCost
protected org.optaplanner.core.api.score.stream.Constraint activeMachineSpinUpAndDownCost(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
idleCosts
protected org.optaplanner.core.api.score.stream.Constraint idleCosts(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
taskPowerCost
protected org.optaplanner.core.api.score.stream.Constraint taskPowerCost(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
startEarly
protected org.optaplanner.core.api.score.stream.Constraint startEarly(org.optaplanner.core.api.score.stream.ConstraintFactory constraintFactory)
-
-