SUMO - Simulation of Urban MObility
ODCell.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
19 // A single O/D-matrix cell
20 /****************************************************************************/
21 #ifndef ODCell_h
22 #define ODCell_h
23 
24 
25 // ===========================================================================
26 // included modules
27 // ===========================================================================
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <vector>
35 #include <map>
36 #include <utils/common/SUMOTime.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class RORoute;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
57 struct ODCell {
59  double vehicleNumber;
60 
63 
66 
68  std::string origin;
69 
71  std::string destination;
72 
74  std::string vehicleType;
75 
77  std::vector<RORoute*> pathsVector; // path_id, string of edges?
78 
80  std::map<SUMOTime, std::vector<std::string> > departures;
81 };
82 
83 
84 #endif
85 
86 /****************************************************************************/
87 
std::vector< RORoute * > pathsVector
the list of paths / routes
Definition: ODCell.h:77
double vehicleNumber
The number of vehicles.
Definition: ODCell.h:59
A single O/D-matrix cell.
Definition: ODCell.h:57
std::string origin
Name of the origin district.
Definition: ODCell.h:68
std::map< SUMOTime, std::vector< std::string > > departures
mapping of departure times to departing vehicles, if already fixed
Definition: ODCell.h:80
SUMOTime begin
The begin time this cell describes.
Definition: ODCell.h:62
std::string vehicleType
Name of the vehicle type.
Definition: ODCell.h:74
std::string destination
Name of the destination district.
Definition: ODCell.h:71
long long int SUMOTime
Definition: TraCIDefs.h:51
SUMOTime end
The end time this cell describes.
Definition: ODCell.h:65
A complete router&#39;s route.
Definition: RORoute.h:61