Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NLDiscreteEventBuilder.h
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-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/****************************************************************************/
19// missing_desc
20/****************************************************************************/
21#pragma once
22#include <config.h>
23
24#include <string>
25#include <map>
27
28
29// ===========================================================================
30// class declarations
31// ===========================================================================
32class MSNet;
33
34
35// ===========================================================================
36// class definitions
37// ===========================================================================
44public:
56
59
62
64 void addAction(const SUMOSAXAttributes& attrs, const std::string& basePath);
65
66private:
68 void buildSaveTLStateCommand(const SUMOSAXAttributes& attrs, const std::string& basePath);
69
71 void buildSaveTLSwitchesCommand(const SUMOSAXAttributes& attrs, const std::string& basePath);
72
74 void buildSaveTLSwitchStatesCommand(const SUMOSAXAttributes& attrs, const std::string& basePath);
75
77 void buildSaveTLSProgramCommand(const SUMOSAXAttributes& attrs, const std::string& basePath);
78
79private:
80 NLDiscreteEventBuilder& operator=(const NLDiscreteEventBuilder&); // just to avoid a compiler warning
81
82protected:
84 typedef std::map<std::string, ActionType> KnownActions;
85
88
90
91};
The simulated network and simulation perfomer.
Definition MSNet.h:89
void buildSaveTLSwitchesCommand(const SUMOSAXAttributes &attrs, const std::string &basePath)
Builds an action which saves the switch times of links into a file.
void addAction(const SUMOSAXAttributes &attrs, const std::string &basePath)
Builds an action and saves it for further use.
NLDiscreteEventBuilder & operator=(const NLDiscreteEventBuilder &)
void buildSaveTLSProgramCommand(const SUMOSAXAttributes &attrs, const std::string &basePath)
Builds an action which saves the tls states as a loadable program into a file.
KnownActions myActions
Build actions that shall be executed during the simulation.
void buildSaveTLStateCommand(const SUMOSAXAttributes &attrs, const std::string &basePath)
Builds an action which saves the state of a certain tls into a file.
std::map< std::string, ActionType > KnownActions
Definitions of a storage for build actions.
void buildSaveTLSwitchStatesCommand(const SUMOSAXAttributes &attrs, const std::string &basePath)
Builds an action which saves the switch times and states of tls into a file.
@ EV_SAVETLSWITCHSTATES
"SaveTLSSwitchStates"
@ EV_SAVETLSWITCHES
"SaveTLSSwitchTimes"
@ EV_SAVETLSPROGRAM
"SaveTLSProgram"
Encapsulated SAX-Attributes.