Interface HardRouteConstraint

All Superinterfaces:
Constraint, HardConstraint
All Known Implementing Classes:
ConstraintManager, HardSkillConstraint, ServiceLoadRouteLevelConstraint, SwitchNotFeasible

public interface HardRouteConstraint extends HardConstraint
Hard constraint that evaluates whether a new job (insertionContext.getJob()) can be inserted existing route (insertionContext.getRoute()).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    fulfilled(JobInsertionContext insertionContext)
    Returns whether a job can be inserted in route.
  • Method Details

    • fulfilled

      boolean fulfilled(JobInsertionContext insertionContext)
      Returns whether a job can be inserted in route.
      Parameters:
      insertionContext - provides context information about inserting a new job, i.e. the new job (insertionContext.getJob()), the route where the new job should be inserted (insertionContext.getRoute()), the new vehicle that should operate the route plus the new job (insertionContext.getNewVehicle()) and the new departure time at this vehicle's start location (insertionContext.getNewDepartureTime()).
      Returns:
      true if constraint is met, false otherwise