Class RouteWithTrack


  • public class RouteWithTrack
    extends Route
    Vehicle's itinerary enriched with detailed geographical description of the route. This object contains data needed to visualize vehicle's route on a map.
    • Constructor Detail

      • RouteWithTrack

        public RouteWithTrack​(Route route,
                              List<List<Coordinates>> track)
        Create a route with track. When route is empty (no visits), track must be empty too and vice-versa (non-empty route must have a non-empty track).
        Parameters:
        route - vehicle's route (not null)
        track - track going through all visits (not null)
    • Method Detail

      • track

        public List<List<Coordinates>> track()
        Vehicle's track that goes from vehicle's depot through all visits and returns to the depot.
        Returns:
        vehicle's track (not null)