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.org/sumo
3 // Copyright (C) 2014-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 /****************************************************************************/
15 // Realises dumping the complete network state
16 /****************************************************************************/
17 #ifndef MSAmitranTrajectories_h
18 #define MSAmitranTrajectories_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include <utils/common/SUMOTime.h>
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class OutputDevice;
33 class MSVehicleControl;
34 class MSEdge;
35 class MSBaseVehicle;
36 class MSLane;
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
52 public:
62  static void write(OutputDevice& of, const SUMOTime timestep);
63 
64 
65 private:
73  static void writeVehicle(OutputDevice& of, const SUMOVehicle& veh, const SUMOTime timestep);
74 
75 
76 private:
77  static std::set<std::string> myWrittenTypes;
78  static std::map<std::string, int> myWrittenVehicles;
79 
80 
81 private:
84 
87 
88 
89 };
90 
91 
92 #endif
93 
94 /****************************************************************************/
95 
MSAmitranTrajectories::myWrittenVehicles
static std::map< std::string, int > myWrittenVehicles
Definition: MSAmitranTrajectories.h:78
SUMOTime.h
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:83
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:64
MSAmitranTrajectories::operator=
MSAmitranTrajectories & operator=(const MSAmitranTrajectories &)
Invalidated assignment operator.
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:35
SUMOVehicle
Representation of a vehicle.
Definition: SUMOVehicle.h:61
MSAmitranTrajectories::MSAmitranTrajectories
MSAmitranTrajectories(const MSAmitranTrajectories &)
Invalidated copy constructor.
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:76
MSAmitranTrajectories::myWrittenTypes
static std::set< std::string > myWrittenTypes
Definition: MSAmitranTrajectories.h:77
MSAmitranTrajectories::writeVehicle
static void writeVehicle(OutputDevice &of, const SUMOVehicle &veh, const SUMOTime timestep)
Writes the dump of the given vehicle into the given device.
Definition: MSAmitranTrajectories.cpp:54
MSBaseVehicle
The base class for microscopic and mesoscopic vehicles.
Definition: MSBaseVehicle.h:52
config.h
MSVehicleControl
The class responsible for building and deletion of vehicles.
Definition: MSVehicleControl.h:72
MSAmitranTrajectories::write
static void write(OutputDevice &of, const SUMOTime timestep)
Writes the complete network state into the given device.
Definition: MSAmitranTrajectories.cpp:45
MSAmitranTrajectories
Realises dumping the complete network state.
Definition: MSAmitranTrajectories.h:51