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-2022 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>
28
29
30// ===========================================================================
31// class declarations
32// ===========================================================================
33class RORoute;
34
35
36// ===========================================================================
37// class definitions
38// ===========================================================================
48struct ODCell {
51
54
57
59 std::string origin;
60
62 std::string destination;
63
65 std::string vehicleType;
66
68 std::vector<RORoute*> pathsVector; // path_id, string of edges?
69
71 std::map<SUMOTime, std::vector<std::string> > departures;
72
74 bool originIsEdge = false;
75
77 bool destinationIsEdge = false;
78};
long long int SUMOTime
Definition: GUI.h:36
A complete router's route.
Definition: RORoute.h:52
A single O/D-matrix cell.
Definition: ODCell.h:48
std::string destination
Name of the destination district.
Definition: ODCell.h:62
std::map< SUMOTime, std::vector< std::string > > departures
mapping of departure times to departing vehicles, if already fixed
Definition: ODCell.h:71
std::string vehicleType
Name of the vehicle type.
Definition: ODCell.h:65
std::string origin
Name of the origin district.
Definition: ODCell.h:59
std::vector< RORoute * > pathsVector
the list of paths / routes
Definition: ODCell.h:68
double vehicleNumber
The number of vehicles.
Definition: ODCell.h:50
bool originIsEdge
the origin "district" is an edge id
Definition: ODCell.h:74
SUMOTime end
The end time this cell describes.
Definition: ODCell.h:56
SUMOTime begin
The begin time this cell describes.
Definition: ODCell.h:53
bool destinationIsEdge
the destination "district" is an edge id
Definition: ODCell.h:77