Class RouteWithTrack
- java.lang.Object
-
- org.optaweb.vehiclerouting.domain.Route
-
- org.optaweb.vehiclerouting.domain.RouteWithTrack
-
-
Constructor Summary
Constructors Constructor Description RouteWithTrack(Route route, List<List<Coordinates>> track)Create a route with track.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<List<Coordinates>>track()Vehicle's track that goes from vehicle's depot through all visits and returns to the depot.
-
-
-
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 (notnull)track- track going through all visits (notnull)
-
-
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)
-
-