SUMO - Simulation of Urban MObility
ODCell.h
Go to the documentation of this file.
1 /****************************************************************************/
9 // A single O/D-matrix cell
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12 // Copyright (C) 2002-2016 DLR (http://www.dlr.de/) and contributors
13 /****************************************************************************/
14 //
15 // This file is part of SUMO.
16 // SUMO is free software: you can redistribute it and/or modify
17 // it under the terms of the GNU General Public License as published by
18 // the Free Software Foundation, either version 3 of the License, or
19 // (at your option) any later version.
20 //
21 /****************************************************************************/
22 #ifndef ODCell_h
23 #define ODCell_h
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <vector>
36 #include <map>
37 #include <utils/common/SUMOTime.h>
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class RORoute;
44 
45 
46 // ===========================================================================
47 // class definitions
48 // ===========================================================================
58 struct ODCell {
61 
64 
67 
69  std::string origin;
70 
72  std::string destination;
73 
75  std::string vehicleType;
76 
78  std::vector<RORoute*> pathsVector; // path_id, string of edges?
79 
81  std::map<SUMOTime, std::vector<std::string> > departures;
82 };
83 
84 
85 #endif
86 
87 /****************************************************************************/
88 
long long int SUMOTime
Definition: SUMOTime.h:43
std::vector< RORoute * > pathsVector
the list of paths / routes
Definition: ODCell.h:78
A single O/D-matrix cell.
Definition: ODCell.h:58
std::string origin
Name of the origin district.
Definition: ODCell.h:69
SUMOReal vehicleNumber
The number of vehicles.
Definition: ODCell.h:60
std::map< SUMOTime, std::vector< std::string > > departures
mapping of departure times to departing vehicles, if already fixed
Definition: ODCell.h:81
SUMOTime begin
The begin time this cell describes.
Definition: ODCell.h:63
std::string vehicleType
Name of the vehicle type.
Definition: ODCell.h:75
std::string destination
Name of the destination district.
Definition: ODCell.h:72
#define SUMOReal
Definition: config.h:213
SUMOTime end
The end time this cell describes.
Definition: ODCell.h:66
A complete router&#39;s route.
Definition: RORoute.h:62