MATSIM
NetsimEngineContext.java
Go to the documentation of this file.
1 
2 /* *********************************************************************** *
3  * project: org.matsim.*
4  * NetsimEngineContext.java
5  * *
6  * *********************************************************************** *
7  * *
8  * copyright : (C) 2019 by the members listed in the COPYING, *
9  * LICENSE and WARRANTY file. *
10  * email : info at matsim dot org *
11  * *
12  * *********************************************************************** *
13  * *
14  * This program is free software; you can redistribute it and/or modify *
15  * it under the terms of the GNU General Public License as published by *
16  * the Free Software Foundation; either version 2 of the License, or *
17  * (at your option) any later version. *
18  * See also COPYING, LICENSE and WARRANTY file *
19  * *
20  * *********************************************************************** */
21 
22  package org.matsim.core.mobsim.qsim.qnetsimengine;
23 
29 
30 public class NetsimEngineContext {
31  private final EventsManager events;
32  final double effectiveCellSize;
33  private final AgentCounter agentCounter;
34  final AbstractAgentSnapshotInfoBuilder snapshotInfoBuilder;
35  final QSimConfigGroup qsimConfig;
36  private final MobsimTimer mobsimTimer;
37  final SnapshotLinkWidthCalculator linkWidthCalculator;
38 
39  public NetsimEngineContext(EventsManager events, double effectiveCellSize, AgentCounter agentCounter,
40  AbstractAgentSnapshotInfoBuilder snapshotInfoBuilder, QSimConfigGroup qsimConfig, MobsimTimer mobsimTimer,
41  SnapshotLinkWidthCalculator linkWidthCalculator) {
42  this.events = events;
43  this.effectiveCellSize = effectiveCellSize;
44  this.agentCounter = agentCounter;
45  this.snapshotInfoBuilder = snapshotInfoBuilder;
46  this.qsimConfig = qsimConfig;
47  this.mobsimTimer = mobsimTimer ;
48  this.linkWidthCalculator = linkWidthCalculator;
49  }
50 
51  MobsimTimer getSimTimer() {
52  return mobsimTimer;
53  }
54 
55  EventsManager getEventsManager() {
56  return events;
57  }
58 
59  AgentCounter getAgentCounter() {
60  return agentCounter;
61  }
62 
63 }
NetsimEngineContext(EventsManager events, double effectiveCellSize, AgentCounter agentCounter, AbstractAgentSnapshotInfoBuilder snapshotInfoBuilder, QSimConfigGroup qsimConfig, MobsimTimer mobsimTimer, SnapshotLinkWidthCalculator linkWidthCalculator)