Eclipse SUMO - Simulation of Urban MObility
MSAmitranTrajectories.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2014-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 /****************************************************************************/
18 // Realises dumping the complete network state
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
23 #include <utils/common/SUMOTime.h>
24 
25 
26 // ===========================================================================
27 // class declarations
28 // ===========================================================================
29 class OutputDevice;
30 class MSVehicleControl;
31 class MSEdge;
32 class MSBaseVehicle;
33 class MSLane;
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
49 public:
59  static void write(OutputDevice& of, const SUMOTime timestep);
60 
61 
62 private:
70  static void writeVehicle(OutputDevice& of, const SUMOVehicle& veh, const SUMOTime timestep);
71 
72 
73 private:
74  static std::set<std::string> myWrittenTypes;
75  static std::map<std::string, int> myWrittenVehicles;
76 
77 
78 private:
81 
84 
85 
86 };
long long int SUMOTime
Definition: GUI.h:35
Realises dumping the complete network state.
static std::map< std::string, int > myWrittenVehicles
static void write(OutputDevice &of, const SUMOTime timestep)
Writes the complete network state into the given device.
MSAmitranTrajectories(const MSAmitranTrajectories &)
Invalidated copy constructor.
static std::set< std::string > myWrittenTypes
MSAmitranTrajectories & operator=(const MSAmitranTrajectories &)
Invalidated assignment operator.
static void writeVehicle(OutputDevice &of, const SUMOVehicle &veh, const SUMOTime timestep)
Writes the dump of the given vehicle into the given device.
The base class for microscopic and mesoscopic vehicles.
Definition: MSBaseVehicle.h:55
A road/street connecting two junctions.
Definition: MSEdge.h:77
Representation of a lane in the micro simulation.
Definition: MSLane.h:84
The class responsible for building and deletion of vehicles.
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:61
Representation of a vehicle.
Definition: SUMOVehicle.h:60