public class NodeColorMultiRouteConstraint extends AbstractMultiWorkingHoursLevelConstraint
Constructor and Description |
---|
NodeColorMultiRouteConstraint() |
NodeColorMultiRouteConstraint(List<org.apache.commons.lang3.tuple.Pair<String,Integer>> pairs) |
Modifier and Type | Method and Description |
---|---|
void |
addNodeColorCapacity(NodeColorCapacityItem item) |
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) |
Optional<NodeColorCapacityItem> |
getColorCapacityItemByColorCode(int colorCode) |
Map<Integer,NodeColorCapacityItem> |
getNodeColorCapacityMap() |
Set<Integer> |
getPresentColorCodes() |
String |
getTitle() |
boolean |
needsFullJobLevelEvaluation()
Needs full job level evaluation.
|
addCurrentCost, addItem, applyCostAndGetResult, assessConstraint, getCurrentCost, getItem, getMirrorItem, initUpdate, isActive, setCurrentCost
public static final String MY_TITLE
public void addNodeColorCapacity(NodeColorCapacityItem item)
public Map<Integer,NodeColorCapacityItem> getNodeColorCapacityMap()
public Optional<NodeColorCapacityItem> getColorCapacityItemByColorCode(int colorCode)
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)
public boolean needsFullJobLevelEvaluation()
IMultiWorkingHoursLevelConstraint
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.
public String getTitle()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.