Eclipse 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-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
17 // A single O/D-matrix cell
18 /****************************************************************************/
19 #ifndef ODCell_h
20 #define ODCell_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <vector>
29 #include <map>
30 #include <utils/common/SUMOTime.h>
31 
32 
33 // ===========================================================================
34 // class declarations
35 // ===========================================================================
36 class RORoute;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
51 struct ODCell {
53  double vehicleNumber;
54 
57 
60 
62  std::string origin;
63 
65  std::string destination;
66 
68  std::string vehicleType;
69 
71  std::vector<RORoute*> pathsVector; // path_id, string of edges?
72 
74  std::map<SUMOTime, std::vector<std::string> > departures;
75 
77  bool originIsEdge = false;
78 
80  bool destinationIsEdge = false;
81 };
82 
83 
84 #endif
85 
86 /****************************************************************************/
87 
long long int SUMOTime
Definition: SUMOTime.h:35
std::vector< RORoute * > pathsVector
the list of paths / routes
Definition: ODCell.h:71
double vehicleNumber
The number of vehicles.
Definition: ODCell.h:53
A single O/D-matrix cell.
Definition: ODCell.h:51
std::string origin
Name of the origin district.
Definition: ODCell.h:62
bool destinationIsEdge
the destination "district" is an edge id
Definition: ODCell.h:80
std::map< SUMOTime, std::vector< std::string > > departures
mapping of departure times to departing vehicles, if already fixed
Definition: ODCell.h:74
SUMOTime begin
The begin time this cell describes.
Definition: ODCell.h:56
bool originIsEdge
the origin "district" is an edge id
Definition: ODCell.h:77
std::string vehicleType
Name of the vehicle type.
Definition: ODCell.h:68
std::string destination
Name of the destination district.
Definition: ODCell.h:65
SUMOTime end
The end time this cell describes.
Definition: ODCell.h:59
A complete router&#39;s route.
Definition: RORoute.h:55