MATSIM
core
mobsim
qsim
agents
TransitAgentFactory.java
Go to the documentation of this file.
1
/* *********************************************************************** *
2
* project: org.matsim.*
3
* TransitAgentFactory.java
4
* *
5
* *********************************************************************** *
6
* *
7
* copyright : (C) 2009 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.mobsim.qsim.agents;
22
23
import
org
.
matsim
.
api
.
core
.
v01
.
population
.
Person
;
24
import
org
.
matsim
.
core
.
mobsim
.
qsim
.
interfaces
.
Netsim
;
25
import
org
.
matsim
.
core
.
mobsim
.
qsim
.
pt
.
MobsimDriverPassengerAgent
;
26
import
org
.
matsim
.
core
.
utils
.
timing
.
TimeInterpretation
;
27
28
import
jakarta.inject.Inject;
29
30
31
public
class
TransitAgentFactory
implements
AgentFactory
{
32
33
private
final
Netsim
simulation
;
34
private
final
TimeInterpretation
timeInterpretation
;
35
36
@Inject
37
public
TransitAgentFactory
(
final
Netsim
simulation,
TimeInterpretation
timeInterpretation) {
38
this.simulation =
simulation
;
39
this.timeInterpretation =
timeInterpretation
;
40
}
41
42
@Override
43
public
MobsimDriverPassengerAgent
createMobsimAgentFromPerson
(
final
Person
p) {
44
MobsimDriverPassengerAgent
agent =
TransitAgent
.
createTransitAgent
(p, this.simulation, timeInterpretation);
45
return
agent;
46
}
47
48
}
org.matsim.core.mobsim.qsim.interfaces
Definition:
ActivityHandler.java:20
org.matsim.core.mobsim.qsim.agents.TransitAgent.createTransitAgent
static TransitAgent createTransitAgent(Person p, Netsim simulation, TimeInterpretation timeInterpretation)
Definition:
TransitAgent.java:57
org.matsim.api.core.v01.population
Definition:
Activity.java:21
org.matsim.core.mobsim.qsim.agents.TransitAgent
Definition:
TransitAgent.java:50
org
org.matsim.core.utils.timing.TimeInterpretation
Definition:
TimeInterpretation.java:16
org.matsim.core.utils
org.matsim.core.mobsim.qsim.agents.TransitAgentFactory.simulation
final Netsim simulation
Definition:
TransitAgentFactory.java:33
org.matsim.core.mobsim
Definition:
DefaultMobsimModule.java:23
org.matsim.api
org.matsim.core
org.matsim.core.mobsim.qsim.interfaces.Netsim
Definition:
Netsim.java:27
org.matsim.core.mobsim.qsim.agents.TransitAgentFactory.timeInterpretation
final TimeInterpretation timeInterpretation
Definition:
TransitAgentFactory.java:34
org.matsim.core.mobsim.qsim.agents.TransitAgentFactory.TransitAgentFactory
TransitAgentFactory(final Netsim simulation, TimeInterpretation timeInterpretation)
Definition:
TransitAgentFactory.java:37
org.matsim.api.core
org.matsim.core.utils.timing
Definition:
TimeInterpretation.java:1
org.matsim.core.mobsim.qsim.agents.AgentFactory
Definition:
AgentFactory.java:26
org.matsim
org.matsim.api.core.v01.population.Person
Definition:
Person.java:28
org.matsim.core.mobsim.qsim.pt.MobsimDriverPassengerAgent
Definition:
MobsimDriverPassengerAgent.java:30
org.matsim.core.mobsim.qsim.agents.TransitAgentFactory
Definition:
TransitAgentFactory.java:31
org.matsim.core.mobsim.qsim.pt
Definition:
AbstractTransitDriverAgent.java:20
org.matsim.core.mobsim.qsim
Definition:
AbstractQSimModule.java:22
org.matsim.api.core.v01
Definition:
BasicLocation.java:20
org.matsim.core.mobsim.qsim.agents.TransitAgentFactory.createMobsimAgentFromPerson
MobsimDriverPassengerAgent createMobsimAgentFromPerson(final Person p)
Definition:
TransitAgentFactory.java:43
Generated by
1.8.13