MATSIM
withinday
replanning
replanners
InitialReplanner.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* InitialReplanner.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.withinday.replanning.replanners;
22
23
import
org
.
matsim
.
api
.
core
.
v01
.
Id
;
24
import
org
.
matsim
.
api
.
core
.
v01
.
Scenario
;
25
import
org
.
matsim
.
core
.
mobsim
.
framework
.
MobsimAgent
;
26
import
org
.
matsim
.
core
.
mobsim
.
qsim
.
ActivityEndRescheduler
;
27
import
org
.
matsim
.
core
.
mobsim
.
qsim
.
agents
.
WithinDayAgentUtils
;
28
import
org
.
matsim
.
core
.
router
.
PlanRouter
;
29
import
org
.
matsim
.
withinday
.
replanning
.
replanners
.
interfaces
.
WithinDayInitialReplanner
;
30
import
org
.
matsim
.
withinday
.
replanning
.
replanners
.
interfaces
.
WithinDayReplanner
;
31
32
/*
33
* The InitialReplanner can be used when the Simulations is initialized but
34
* has not started yet.
35
*/
36
37
public
class
InitialReplanner
extends
WithinDayInitialReplanner
{
38
39
private
final
PlanRouter
planRouter
;
40
41
/*package*/
InitialReplanner
(
Id<WithinDayReplanner>
id
,
Scenario
scenario
,
ActivityEndRescheduler
internalInterface
,
PlanRouter
planRouter) {
42
super(
id
, scenario, internalInterface);
43
this.planRouter =
planRouter
;
44
}
45
46
@Override
47
public
boolean
doReplanning
(
MobsimAgent
withinDayAgent) {
48
49
this.planRouter.
run
(
WithinDayAgentUtils
.
getModifiablePlan
(withinDayAgent));
50
return
true
;
51
}
52
}
org.matsim.api.core.v01.Id
Definition:
Id.java:44
org.matsim.withinday.replanning.replanners.interfaces.WithinDayReplanner< InitialIdentifier >::internalInterface
final ActivityEndRescheduler internalInterface
Definition:
WithinDayReplanner.java:42
org.matsim.core.mobsim.framework
Definition:
AbstractMobsimModule.java:22
org
org.matsim.withinday.replanning.replanners.InitialReplanner.doReplanning
boolean doReplanning(MobsimAgent withinDayAgent)
Definition:
InitialReplanner.java:47
org.matsim.core.mobsim.framework.MobsimAgent
Definition:
MobsimAgent.java:41
org.matsim.core.mobsim
Definition:
DefaultMobsimModule.java:23
org.matsim.api
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.core.mobsim.qsim.agents.WithinDayAgentUtils
Definition:
WithinDayAgentUtils.java:64
org.matsim.core.router.PlanRouter
Definition:
PlanRouter.java:48
org.matsim.withinday.replanning.replanners
Definition:
CurrentLegReplanner.java:21
org.matsim.core.mobsim.qsim.ActivityEndRescheduler
Definition:
ActivityEndRescheduler.java:27
org.matsim.withinday.replanning.replanners.interfaces.WithinDayInitialReplanner
Definition:
WithinDayInitialReplanner.java:31
org.matsim.withinday.replanning.replanners.interfaces
Definition:
WithinDayDuringActivityReplanner.java:21
org.matsim.core.router.PlanRouter.run
void run(final Plan plan)
Definition:
PlanRouter.java:75
org.matsim
org.matsim.withinday.replanning.replanners.interfaces.WithinDayReplanner< InitialIdentifier >::scenario
final Scenario scenario
Definition:
WithinDayReplanner.java:41
org.matsim.withinday.replanning.replanners.InitialReplanner.planRouter
final PlanRouter planRouter
Definition:
InitialReplanner.java:39
org.matsim.withinday.replanning.replanners.interfaces.WithinDayReplanner
Definition:
WithinDayReplanner.java:38
org.matsim.withinday.replanning.replanners.InitialReplanner
Definition:
InitialReplanner.java:37
org.matsim.core.mobsim.qsim
Definition:
AbstractQSimModule.java:22
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
org.matsim.core.mobsim.qsim.agents
Definition:
AgentFactory.java:20
org.matsim.core.mobsim.qsim.agents.WithinDayAgentUtils.getModifiablePlan
static Plan getModifiablePlan(MobsimAgent agent)
Definition:
WithinDayAgentUtils.java:158
Generated by
1.8.13