MATSIM
withinday
replanning
replanners
CurrentLegReplannerFactory.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* CurrentLegReplannerFactory.java
4
* *
5
* *********************************************************************** *
6
* *
7
* copyright : (C) 2010 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.withinday.replanning.replanners;
22
23
import
org
.
matsim
.
api
.
core
.
v01
.
Scenario
;
24
import
org
.
matsim
.
core
.
mobsim
.
qsim
.
ActivityEndReschedulerProvider
;
25
import
org
.
matsim
.
core
.
router
.
util
.
LeastCostPathCalculator
;
26
import
org
.
matsim
.
withinday
.
replanning
.
replanners
.
interfaces
.
WithinDayDuringLegReplanner
;
27
import
org
.
matsim
.
withinday
.
replanning
.
replanners
.
interfaces
.
WithinDayDuringLegReplannerFactory
;
28
29
public
class
CurrentLegReplannerFactory
extends
WithinDayDuringLegReplannerFactory
{
30
31
private
final
Scenario
scenario
;
32
private
final
LeastCostPathCalculator
pathCalculator
;
33
34
public
CurrentLegReplannerFactory
(
Scenario
scenario,
ActivityEndReschedulerProvider
withinDayEngine
,
35
LeastCostPathCalculator
pathCalculator) {
36
super(withinDayEngine);
37
this.scenario =
scenario
;
38
this.pathCalculator =
pathCalculator
;
39
}
40
41
@Override
42
public
WithinDayDuringLegReplanner
createReplanner
() {
43
WithinDayDuringLegReplanner
replanner =
new
CurrentLegReplanner
(super.getId(),
scenario
,
44
this.
getWithinDayEngine
().
getActivityRescheduler
(),
45
this.
pathCalculator
);
46
return
replanner;
47
}
48
}
org.matsim.core.router.util.LeastCostPathCalculator
Definition:
LeastCostPathCalculator.java:30
org.matsim.core.mobsim.qsim.ActivityEndReschedulerProvider.getActivityRescheduler
ActivityEndRescheduler getActivityRescheduler()
org.matsim.withinday.replanning.replanners.CurrentLegReplannerFactory
Definition:
CurrentLegReplannerFactory.java:29
org.matsim.withinday.replanning.replanners.CurrentLegReplannerFactory.scenario
final Scenario scenario
Definition:
CurrentLegReplannerFactory.java:31
org.matsim.withinday.replanning.replanners.CurrentLegReplannerFactory.createReplanner
WithinDayDuringLegReplanner createReplanner()
Definition:
CurrentLegReplannerFactory.java:42
org
org.matsim.withinday.replanning.replanners.interfaces.WithinDayReplannerFactory< DuringLegAgentSelector >::getWithinDayEngine
final ActivityEndReschedulerProvider getWithinDayEngine()
Definition:
WithinDayReplannerFactory.java:45
org.matsim.withinday.replanning.replanners.interfaces.WithinDayDuringLegReplanner
Definition:
WithinDayDuringLegReplanner.java:31
org.matsim.core.router.util
Definition:
AStarNodeData.java:21
org.matsim.withinday.replanning.replanners.CurrentLegReplannerFactory.CurrentLegReplannerFactory
CurrentLegReplannerFactory(Scenario scenario, ActivityEndReschedulerProvider withinDayEngine, LeastCostPathCalculator pathCalculator)
Definition:
CurrentLegReplannerFactory.java:34
org.matsim.withinday.replanning.replanners.CurrentLegReplanner
Definition:
CurrentLegReplanner.java:52
org.matsim.core.mobsim
Definition:
DefaultMobsimModule.java:23
org.matsim.api
org.matsim.withinday.replanning.replanners.interfaces.WithinDayDuringLegReplannerFactory
Definition:
WithinDayDuringLegReplannerFactory.java:26
org.matsim.withinday.replanning
org.matsim.core
org.matsim.core.router
Definition:
AnalysisMainModeIdentifier.java:20
org.matsim.api.core.v01.Scenario
Definition:
Scenario.java:76
org.matsim.withinday
org.matsim.api.core
org.matsim.withinday.replanning.replanners.interfaces.WithinDayReplannerFactory< DuringLegAgentSelector >::withinDayEngine
final ActivityEndReschedulerProvider withinDayEngine
Definition:
WithinDayReplannerFactory.java:34
org.matsim.core.mobsim.qsim.ActivityEndReschedulerProvider
Definition:
ActivityEndReschedulerProvider.java:27
org.matsim.withinday.replanning.replanners.CurrentLegReplannerFactory.pathCalculator
final LeastCostPathCalculator pathCalculator
Definition:
CurrentLegReplannerFactory.java:32
org.matsim.withinday.replanning.replanners
Definition:
CurrentLegReplanner.java:21
org.matsim.withinday.replanning.replanners.interfaces
Definition:
WithinDayDuringActivityReplanner.java:21
org.matsim
org.matsim.core.mobsim.qsim
Definition:
AbstractQSimModule.java:22
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
Generated by
1.8.13