SUMO - Simulation of Urban MObility
NIImporter_RobocupRescue.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-2018 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 /****************************************************************************/
16 // Importer for networks stored in robocup rescue league format
17 /****************************************************************************/
18 #ifndef NIImporter_RobocupRescue_h
19 #define NIImporter_RobocupRescue_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include <string>
28 #include <map>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class NBNetBuilder;
36 class NBEdge;
37 class OptionsCont;
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
49 public:
59  static void loadNetwork(const OptionsCont& oc, NBNetBuilder& nb);
60 
61 
62 protected:
69 
70 
73 
74 
78  void loadNodes(const std::string& file);
79 
80 
84  void loadEdges(const std::string& file);
85 
86 
87 protected:
90 
93 
94 private:
97 };
98 
99 
100 #endif
101 
102 /****************************************************************************/
103 
Importer for networks stored in robocup rescue league format.
NIImporter_RobocupRescue(NBNodeCont &nc, NBEdgeCont &ec)
Constructor.
The representation of a single edge during network building.
Definition: NBEdge.h:65
NBEdgeCont & myEdgeCont
The edge container to fill.
NIImporter_RobocupRescue & operator=(const NIImporter_RobocupRescue &s)
Invalidated assignment operator.
static void loadNetwork(const OptionsCont &oc, NBNetBuilder &nb)
Loads content of the optionally given RoboCup Rescue League files.
void loadNodes(const std::string &file)
Loads nodes from the given file.
Storage for edges, including some functionality operating on multiple edges.
Definition: NBEdgeCont.h:61
Instance responsible for building networks.
Definition: NBNetBuilder.h:109
A storage for options typed value containers)
Definition: OptionsCont.h:92
NBNodeCont & myNodeCont
The node container to fill.
Container for nodes during the netbuilding process.
Definition: NBNodeCont.h:60
void loadEdges(const std::string &file)
Loads edges from the given file.