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

public class NodeColorMultiRouteConstraint extends AbstractMultiWorkingHoursLevelConstraint
  • Field Details

  • Constructor Details

    • NodeColorMultiRouteConstraint

      public NodeColorMultiRouteConstraint()
    • NodeColorMultiRouteConstraint

      public NodeColorMultiRouteConstraint(List<org.apache.commons.lang3.tuple.Pair<String,Integer>> pairs)
  • Method Details

    • addNodeColorCapacity

      public void addNodeColorCapacity(NodeColorCapacityItem item)
    • getNodeColorCapacityMap

      public Map<Integer,NodeColorCapacityItem> getNodeColorCapacityMap()
    • getPresentColorCodes

      public Set<Integer> getPresentColorCodes()
    • getColorCapacityItemByColorCode

      public Optional<NodeColorCapacityItem> getColorCapacityItemByColorCode(int colorCode)
    • 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

      public String getTitle()