Class AbstractJob

java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractJob
All Implemented Interfaces:
HasId, HasIndex, Job
Direct Known Subclasses:
Service, Shipment

public abstract class AbstractJob extends Object implements Job
Created by schroeder on 14.07.14.
  • Constructor Details

    • AbstractJob

      public AbstractJob()
  • Method Details

    • getIndex

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

      @Deprecated protected void setIndex(int index)
      Deprecated.
      Job indices are now managed by VehicleRoutingProblem. This method is no longer called by the framework.
    • getUserData

      public Object getUserData()
      Returns:
      User-specific domain data associated by the job
    • setUserData

      protected void setUserData(Object userData)