Class AbstractVehicle.AbstractTypeKey

java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractVehicle.AbstractTypeKey
All Implemented Interfaces:
HasIndex
Direct Known Subclasses:
VehicleTypeKey
Enclosing class:
AbstractVehicle

public abstract static class AbstractVehicle.AbstractTypeKey extends Object implements HasIndex
  • Constructor Details

    • AbstractTypeKey

      public AbstractTypeKey()
  • Method Details

    • getIndex

      @Deprecated public int getIndex()
      Deprecated.
      Use VehicleRoutingProblem.getVehicleTypeKeyIndex(VehicleTypeKey) instead. VehicleTypeKey indices are VRP-specific and should not be accessed directly from the type key. A VehicleTypeKey can have different indices in different VRP instances.
      Specified by:
      getIndex in interface HasIndex
    • setIndex

      @Deprecated public void setIndex(int index)
      Deprecated.
      VehicleTypeKey indices are now managed by VehicleRoutingProblem. This method is no longer called by the framework.