Eclipse SUMO - Simulation of Urban MObility
NIVissimNodeDef.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2002-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 // -------------------
20 /****************************************************************************/
21 #pragma once
22 #include <config.h>
23 
24 #include <string>
25 #include <map>
26 #include <utils/geom/Boundary.h>
28 #include "NIVissimNodeCluster.h"
29 
30 
32 public:
33  NIVissimNodeDef(int id, const std::string& name);
34  virtual ~NIVissimNodeDef();
36 // virtual void computeBounding() = 0;
37 // bool partialWithin(const AbstractPoly &p, double off=0.0) const;
38 // virtual void searchAndSetConnections() = 0;
39  virtual double getEdgePosition(int edgeid) const = 0;
40 
41 public:
42  static bool dictionary(int id, NIVissimNodeDef* o);
43  static NIVissimNodeDef* dictionary(int id);
44 // static std::vector<int> getWithin(const AbstractPoly &p, double off=0.0);
45 // static void buildNodeClusters();
46 // static void dict_assignConnectionsToNodes();
47  static void clearDict();
48  static int getMaxID();
49 protected:
50  int myID;
51  std::string myName;
52 
53 private:
54  typedef std::map<int, NIVissimNodeDef*> DictType;
55  static DictType myDict;
56  static int myMaxID;
57 };
static void clearDict()
static DictType myDict
virtual ~NIVissimNodeDef()
static int myMaxID
std::string myName
NIVissimNodeDef(int id, const std::string &name)
static bool dictionary(int id, NIVissimNodeDef *o)
int buildNodeCluster()
static int getMaxID()
virtual double getEdgePosition(int edgeid) const =0
std::map< int, NIVissimNodeDef * > DictType