Class AbstractMultiWorkingHoursLevelConstraint
java.lang.Object
com.dna.jopt.member.unit.condition.workinghour.multi.AbstractMultiWorkingHoursLevelConstraint
- All Implemented Interfaces:
IMultiWorkingHoursLevelConstraint
- Direct Known Subclasses:
AbsoluteNodeColorMultiRouteConstraint
,NodeColorMultiRouteConstraint
public abstract class AbstractMultiWorkingHoursLevelConstraint
extends Object
implements IMultiWorkingHoursLevelConstraint
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMultiWorkingHoursLevelConstraint
(ToDoubleFunction<ILogicEntityRoute> costGetterFunction, ObjDoubleConsumer<ILogicEntityRoute> costSetterFunction) protected
AbstractMultiWorkingHoursLevelConstraint
(List<org.apache.commons.lang3.tuple.Pair<String, Integer>> pairs, ToDoubleFunction<ILogicEntityRoute> costGetterFunction, ObjDoubleConsumer<ILogicEntityRoute> costSetterFunction) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCurrentCost
(ILogicEntityRoute route, Double addCost) boolean
addItem
(String ownerId, IWorkingHours hours) static com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult
applyCostAndGetResult
(IMultiWorkingHoursLevelConstraint con, IEntity en, ILogicEntityRoute triggerRoute, List<ILogicEntityRoute> allRoutes, List<org.apache.commons.lang3.tuple.Pair<Double, Optional<IViolation>>> costAndVios, boolean resultRequested) com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult
assessConstraint
(IEntity en, ILogicEntityRoute triggerRoute, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster costAdjuster, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) getCurrentCost
(ILogicEntityRoute route) getItem()
initUpdate
(IEntity en) boolean
isActive()
void
setCurrentCost
(ILogicEntityRoute route, Double cost) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.dna.jopt.member.unit.condition.workinghour.multi.IMultiWorkingHoursLevelConstraint
assessConstraint, getTitle, needsFullJobLevelEvaluation
-
Constructor Details
-
AbstractMultiWorkingHoursLevelConstraint
protected AbstractMultiWorkingHoursLevelConstraint(List<org.apache.commons.lang3.tuple.Pair<String, Integer>> pairs, ToDoubleFunction<ILogicEntityRoute> costGetterFunction, ObjDoubleConsumer<ILogicEntityRoute> costSetterFunction) -
AbstractMultiWorkingHoursLevelConstraint
protected AbstractMultiWorkingHoursLevelConstraint(ToDoubleFunction<ILogicEntityRoute> costGetterFunction, ObjDoubleConsumer<ILogicEntityRoute> costSetterFunction)
-
-
Method Details
-
assessConstraint
public com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult assessConstraint(IEntity en, ILogicEntityRoute triggerRoute, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster costAdjuster, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) - Specified by:
assessConstraint
in interfaceIMultiWorkingHoursLevelConstraint
-
applyCostAndGetResult
public static com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult applyCostAndGetResult(IMultiWorkingHoursLevelConstraint con, IEntity en, ILogicEntityRoute triggerRoute, List<ILogicEntityRoute> allRoutes, List<org.apache.commons.lang3.tuple.Pair<Double, Optional<IViolation>>> costAndVios, boolean resultRequested) -
getCurrentCost
- Specified by:
getCurrentCost
in interfaceIMultiWorkingHoursLevelConstraint
-
setCurrentCost
- Specified by:
setCurrentCost
in interfaceIMultiWorkingHoursLevelConstraint
-
addCurrentCost
- Specified by:
addCurrentCost
in interfaceIMultiWorkingHoursLevelConstraint
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceIMultiWorkingHoursLevelConstraint
-
addItem
- Specified by:
addItem
in interfaceIMultiWorkingHoursLevelConstraint
-
initUpdate
- Specified by:
initUpdate
in interfaceIMultiWorkingHoursLevelConstraint
-
getMirrorItem
- Specified by:
getMirrorItem
in interfaceIMultiWorkingHoursLevelConstraint
-
getItem
-