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 /****************************************************************************/
16 // A single O/D-matrix cell
17 /****************************************************************************/
18 #ifndef ODCell_h
19 #define ODCell_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <vector>
28 #include <map>
29 #include <utils/common/SUMOTime.h>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class RORoute;
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
50 struct ODCell {
52  double vehicleNumber;
53 
56 
59 
61  std::string origin;
62 
64  std::string destination;
65 
67  std::string vehicleType;
68 
70  std::vector<RORoute*> pathsVector; // path_id, string of edges?
71 
73  std::map<SUMOTime, std::vector<std::string> > departures;
74 
76  bool originIsEdge = false;
77 
79  bool destinationIsEdge = false;
80 };
81 
82 
83 #endif
84 
85 /****************************************************************************/
86 
ODCell::originIsEdge
bool originIsEdge
the origin "district" is an edge id
Definition: ODCell.h:76
SUMOTime.h
ODCell::vehicleNumber
double vehicleNumber
The number of vehicles.
Definition: ODCell.h:52
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
ODCell
A single O/D-matrix cell.
Definition: ODCell.h:50
ODCell::vehicleType
std::string vehicleType
Name of the vehicle type.
Definition: ODCell.h:67
ODCell::destination
std::string destination
Name of the destination district.
Definition: ODCell.h:64
RORoute
A complete router's route.
Definition: RORoute.h:54
ODCell::pathsVector
std::vector< RORoute * > pathsVector
the list of paths / routes
Definition: ODCell.h:70
ODCell::end
SUMOTime end
The end time this cell describes.
Definition: ODCell.h:58
ODCell::origin
std::string origin
Name of the origin district.
Definition: ODCell.h:61
ODCell::destinationIsEdge
bool destinationIsEdge
the destination "district" is an edge id
Definition: ODCell.h:79
config.h
ODCell::begin
SUMOTime begin
The begin time this cell describes.
Definition: ODCell.h:55
ODCell::departures
std::map< SUMOTime, std::vector< std::string > > departures
mapping of departure times to departing vehicles, if already fixed
Definition: ODCell.h:73