Eclipse SUMO - Simulation of Urban MObility
MSQueueExport.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2012-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 /****************************************************************************/
14 // Export the queueing length in front of a junction (very experimental!)
15 /****************************************************************************/
16 #ifndef MSQueueExport_h
17 #define MSQueueExport_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <utils/common/SUMOTime.h>
26 
27 
28 // ===========================================================================
29 // class declarations
30 // ===========================================================================
31 class OutputDevice;
32 class MSEdgeControl;
33 class MSEdge;
34 class MSLane;
35 
36 
37 // ===========================================================================
38 // class definitions
39 // ===========================================================================
50 public:
59  static void write(OutputDevice& of, SUMOTime timestep);
60 
61 
62 private:
65 
68 
70  static void writeEdge(OutputDevice& of);
71 
73  static void writeLane(OutputDevice& of, const MSLane& lane);
74 
75 };
76 
77 
78 
79 #endif
80 
81 /****************************************************************************/
82 
SUMOTime.h
MSLane
Representation of a lane in the micro simulation.
Definition: MSLane.h:82
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
SUMOTime
long long int SUMOTime
Definition: SUMOTime.h:34
MSQueueExport::MSQueueExport
MSQueueExport(const MSQueueExport &)
Invalidated copy constructor.
MSQueueExport::write
static void write(OutputDevice &of, SUMOTime timestep)
Export the queueing length in front of a junction (very experimental!)
Definition: MSQueueExport.cpp:40
MSQueueExport::writeLane
static void writeLane(OutputDevice &of, const MSLane &lane)
Iterates through the lanes and check for available vehicle queues.
Definition: MSQueueExport.cpp:64
MSEdge
A road/street connecting two junctions.
Definition: MSEdge.h:78
config.h
MSEdgeControl
Stores edges and lanes, performs moving of vehicle.
Definition: MSEdgeControl.h:74
MSQueueExport::writeEdge
static void writeEdge(OutputDevice &of)
Iterates through all the edges and extract the lanes.
Definition: MSQueueExport.cpp:48
MSQueueExport
Export the queueing length in front of a junction (very experimental!)
Definition: MSQueueExport.h:49
MSQueueExport::operator=
MSQueueExport & operator=(const MSQueueExport &)
Invalidated assignment operator.