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.dev/sumo
3 // Copyright (C) 2002-2024 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
20 // A single O/D-matrix cell
21 /****************************************************************************/
22 #pragma once
23 #include <config.h>
24 
25 #include <vector>
26 #include <map>
27 #include <utils/common/SUMOTime.h>
29 
30 
31 // ===========================================================================
32 // class declarations
33 // ===========================================================================
34 class RORoute;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
49 struct ODCell {
51  double vehicleNumber;
52 
55 
58 
60  std::string origin;
61 
63  std::string destination;
64 
66  std::string vehicleType;
67 
69  std::vector<RORoute*> pathsVector; // path_id, string of edges?
70 
72  typedef std::map<SUMOTime, std::vector<SUMOVehicleParameter> > Departures;
74 
76  bool originIsEdge = false;
77 
79  bool destinationIsEdge = false;
80 };
long long int SUMOTime
Definition: GUI.h:35
A complete router's route.
Definition: RORoute.h:52
A single O/D-matrix cell.
Definition: ODCell.h:49
std::string destination
Name of the destination district.
Definition: ODCell.h:63
std::string vehicleType
Name of the vehicle type.
Definition: ODCell.h:66
std::string origin
Name of the origin district.
Definition: ODCell.h:60
Departures departures
Definition: ODCell.h:73
std::map< SUMOTime, std::vector< SUMOVehicleParameter > > Departures
mapping of departure times to departing vehicles, if already fixed
Definition: ODCell.h:72
std::vector< RORoute * > pathsVector
the list of paths / routes
Definition: ODCell.h:69
double vehicleNumber
The number of vehicles.
Definition: ODCell.h:51
bool originIsEdge
the origin "district" is an edge id
Definition: ODCell.h:76
SUMOTime end
The end time this cell describes.
Definition: ODCell.h:57
SUMOTime begin
The begin time this cell describes.
Definition: ODCell.h:54
bool destinationIsEdge
the destination "district" is an edge id
Definition: ODCell.h:79