Eclipse SUMO - Simulation of Urban MObility
NIVissimSingleTypeParser_Signalgruppendefinition.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-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 /****************************************************************************/
18 //
19 /****************************************************************************/
20 #pragma once
21 #include <config.h>
22 
23 #include <iostream>
24 #include "../NIImporter_Vissim.h"
25 
26 
27 // ===========================================================================
28 // class definitions
29 // ===========================================================================
36 public:
39 
42 
44  bool parse(std::istream& from);
45 
46 private:
48  bool parseFixedTime(int id, const std::string& name, int lsaid,
49  std::istream& from);
50 
52  bool parseVAS(int id, const std::string& name, int lsaid,
53  std::istream& from);
54 
56  bool parseVSPLUS(int id, const std::string& name, int lsaid,
57  std::istream& from);
58 
60  bool parseTRENDS(int id, const std::string& name, int lsaid,
61  std::istream& from);
62 
64  bool parseVAP(int id, const std::string& name, int lsaid,
65  std::istream& from);
66 
68  bool parseTL(int id, const std::string& name, int lsaid,
69  std::istream& from);
70 
72  bool parsePOS(int id, const std::string& name, int lsaid,
73  std::istream& from);
74 
76  bool parseExternFixedTime(int id, const std::string& name, int lsaid,
77  std::istream& from);
78 
79 };
Importer for networks stored in Vissim format.
bool parse(std::istream &from)
Parses the data type from the given stream.
bool parseVAS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a VAS traffic light.
bool parseVAP(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a VAStraffic light.
bool parseTL(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a TL traffic light.
bool parsePOS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a POS traffic light.
bool parseTRENDS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a TRENDS traffic light.
bool parseExternFixedTime(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs fixed time traffic light with an extern definition.
bool parseVSPLUS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a VSPLUS traffic light.
bool parseFixedTime(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a fixed time traffic light.