mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
added vehicle dependent route/activity state getters to interface
This commit is contained in:
parent
31e14ee8a0
commit
e3fde8bb05
1 changed files with 6 additions and 0 deletions
|
|
@ -19,11 +19,17 @@ package jsprit.core.problem.solution.route.state;
|
||||||
import jsprit.core.problem.solution.route.VehicleRoute;
|
import jsprit.core.problem.solution.route.VehicleRoute;
|
||||||
import jsprit.core.problem.solution.route.activity.TourActivity;
|
import jsprit.core.problem.solution.route.activity.TourActivity;
|
||||||
import jsprit.core.problem.solution.route.state.StateFactory.StateId;
|
import jsprit.core.problem.solution.route.state.StateFactory.StateId;
|
||||||
|
import jsprit.core.problem.vehicle.Vehicle;
|
||||||
|
|
||||||
public interface RouteAndActivityStateGetter {
|
public interface RouteAndActivityStateGetter {
|
||||||
|
|
||||||
|
|
||||||
public <T> T getActivityState(TourActivity act, StateId stateId, Class<T> type);
|
public <T> T getActivityState(TourActivity act, StateId stateId, Class<T> type);
|
||||||
|
|
||||||
|
public <T> T getActivityState(TourActivity act, Vehicle vehicle, StateId stateId, Class<T> type);
|
||||||
|
|
||||||
public <T> T getRouteState(VehicleRoute route, StateId stateId, Class<T> type);
|
public <T> T getRouteState(VehicleRoute route, StateId stateId, Class<T> type);
|
||||||
|
|
||||||
|
public <T> T getRouteState(VehicleRoute route, Vehicle vehicle, StateId stateId, Class<T> type);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue