Class NodeColorMultiRouteConstraint
java.lang.Object
com.dna.jopt.member.unit.condition.workinghour.multi.AbstractMultiWorkingHoursLevelConstraint
com.dna.jopt.member.unit.condition.workinghour.nodecolor.NodeColorMultiRouteConstraint
- All Implemented Interfaces:
IMultiWorkingHoursLevelConstraint
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNodeColorMultiRouteConstraint
(List<org.apache.commons.lang3.tuple.Pair<String, Integer>> pairs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult
assessConstraint
(IEntity en, ILogicEntityRoute triggerRoute, List<ILogicEntityRoute> routes, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster costAdjuster, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) getColorCapacityItemByColorCode
(int colorCode) getTitle()
boolean
Needs full job level evaluation.Methods inherited from class com.dna.jopt.member.unit.condition.workinghour.multi.AbstractMultiWorkingHoursLevelConstraint
addCurrentCost, addItem, applyCostAndGetResult, assessConstraint, getCurrentCost, getItem, getMirrorItem, initUpdate, isActive, setCurrentCost
-
Field Details
-
MY_TITLE
- See Also:
-
-
Constructor Details
-
NodeColorMultiRouteConstraint
public NodeColorMultiRouteConstraint() -
NodeColorMultiRouteConstraint
-
-
Method Details
-
addNodeColorCapacity
-
getNodeColorCapacityMap
-
getPresentColorCodes
-
getColorCapacityItemByColorCode
-
assessConstraint
public com.dna.jopt.assessment.costassessorrestriction.restrictionresult.IEntityRestrictionResult assessConstraint(IEntity en, ILogicEntityRoute triggerRoute, List<ILogicEntityRoute> routes, com.dna.jopt.assessment.costadjustment.IEntityCostAdjuster costAdjuster, com.dna.jopt.framework.inputplausibility.properties.IPropertyProvider propertyProvider, boolean resultRequested) -
needsFullJobLevelEvaluation
public boolean needsFullJobLevelEvaluation()Description copied from interface:IMultiWorkingHoursLevelConstraint
Needs full job level evaluation.In case the constraint needs to access for example arrival times etc. of all nodes of a route. The cost assessor will ask if the constraint requires this and will save the data for the nodes carrying this constraint.
- Returns:
- boolean true if successful
-
getTitle
-