Class ShallowRoute


  • public class ShallowRoute
    extends Object
    Lightweight route description consisting of vehicle and location IDs instead of entities. This makes it easier to quickly construct and share result of route optimization without converting planning domain objects to business domain objects. Specifically, some information may be lost when converting business domain objects to planning domain because it's not needed for optimization (e.g. location address) and so it's impossible to reconstruct the original business object without looking into the repository.
    • Field Detail

      • vehicleId

        public final long vehicleId
        Vehicle ID.
      • depotId

        public final long depotId
        Depot ID.
      • visitIds

        public final List<Long> visitIds
        Visit IDs (immutable, never null).
    • Constructor Detail

      • ShallowRoute

        public ShallowRoute​(long vehicleId,
                            long depotId,
                            List<Long> visitIds)
        Create shallow route.
        Parameters:
        vehicleId - vehicle ID
        depotId - depot ID
        visitIds - visit IDs