MATSIM
ReRoute.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * ReRoute.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2008 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.core.replanning.modules;
22 
23 import org.matsim.api.core.v01.Scenario;
31 
32 import jakarta.inject.Provider;
33 
40 public class ReRoute extends AbstractMultithreadedModule {
41 
44 
45  private final Provider<TripRouter> tripRouterProvider;
46 
47  public ReRoute(ActivityFacilities facilities, Provider<TripRouter> tripRouterProvider, GlobalConfigGroup globalConfigGroup, TimeInterpretation timeInterpretation) {
48  super(globalConfigGroup);
49  this.facilities = facilities;
50  this.tripRouterProvider = tripRouterProvider;
51  this.timeInterpretation = timeInterpretation;
52  }
53 
54  public ReRoute(Scenario scenario, Provider<TripRouter> tripRouterProvider, TimeInterpretation timeInterpretation) {
56  }
57 
58  @Override
60  return new PlanRouter(
61  tripRouterProvider.get(),
62  facilities,
64  );
65  }
66 
67 }
final Provider< TripRouter > tripRouterProvider
Definition: ReRoute.java:45
final TimeInterpretation timeInterpretation
Definition: ReRoute.java:43
ReRoute(ActivityFacilities facilities, Provider< TripRouter > tripRouterProvider, GlobalConfigGroup globalConfigGroup, TimeInterpretation timeInterpretation)
Definition: ReRoute.java:47
final PlanAlgorithm getPlanAlgoInstance()
Definition: ReRoute.java:59
ActivityFacilities getActivityFacilities()
final GlobalConfigGroup global()
Definition: Config.java:395
ReRoute(Scenario scenario, Provider< TripRouter > tripRouterProvider, TimeInterpretation timeInterpretation)
Definition: ReRoute.java:54