Class VehicleImpl.NoVehicle

java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractVehicle
com.graphhopper.jsprit.core.problem.vehicle.VehicleImpl.NoVehicle
All Implemented Interfaces:
HasId, HasIndex, Vehicle
Enclosing class:
VehicleImpl

public static class VehicleImpl.NoVehicle extends AbstractVehicle
Extension of VehicleImpl representing an unspecified vehicle with the id 'noVehicle' (to avoid null).
Author:
schroeder
  • Constructor Details

    • NoVehicle

      public NoVehicle()
  • Method Details

    • getEarliestDeparture

      public double getEarliestDeparture()
      Description copied from interface: Vehicle
      Returns the earliest departure of vehicle which should be the lower bound of this vehicle's departure times.
      Returns:
      earliest departure time
    • getLatestArrival

      public double getLatestArrival()
      Description copied from interface: Vehicle
      Returns the latest arrival time at this vehicle's end-location which should be the upper bound of this vehicle's arrival times at end-location.
      Returns:
      latest arrival time of this vehicle
    • getType

      public VehicleType getType()
      Description copied from interface: Vehicle
      Returns the VehicleType of this vehicle.
      Returns:
      VehicleType of this vehicle
    • getId

      public String getId()
      Description copied from interface: Vehicle
      Returns the id of this vehicle.
      Returns:
      id
    • isReturnToDepot

      public boolean isReturnToDepot()
      Description copied from interface: Vehicle
      Returns true if vehicle returns to depot, false otherwise.
      Returns:
      true if isReturnToDepot
    • getStartLocation

      public Location getStartLocation()
    • getEndLocation

      public Location getEndLocation()
    • getSkills

      public Skills getSkills()
    • getBreak

      public Break getBreak()