Class ShallowRoute
- java.lang.Object
-
- org.optaweb.vehiclerouting.service.route.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.
-
-
Constructor Summary
Constructors Constructor Description ShallowRoute(long vehicleId, long depotId, List<Long> visitIds)Create shallow route.
-