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.org/sumo
3 // Copyright (C) 2002-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // -------------------
19 /****************************************************************************/
20 #ifndef NIVissimNodeDef_h
21 #define NIVissimNodeDef_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <map>
35 #include <utils/geom/Boundary.h>
37 #include "NIVissimNodeCluster.h"
38 
39 
41 public:
42  NIVissimNodeDef(int id, const std::string& name);
43  virtual ~NIVissimNodeDef();
44  int buildNodeCluster();
45 // virtual void computeBounding() = 0;
46 // bool partialWithin(const AbstractPoly &p, double off=0.0) const;
47 // virtual void searchAndSetConnections() = 0;
48  virtual double getEdgePosition(int edgeid) const = 0;
49 
50 public:
51  static bool dictionary(int id, NIVissimNodeDef* o);
52  static NIVissimNodeDef* dictionary(int id);
53 // static std::vector<int> getWithin(const AbstractPoly &p, double off=0.0);
54 // static void buildNodeClusters();
55 // static void dict_assignConnectionsToNodes();
56  static int dictSize();
57  static void clearDict();
58  static int getMaxID();
59 protected:
60  int myID;
61  std::string myName;
62 
63 private:
64  typedef std::map<int, NIVissimNodeDef*> DictType;
65  static DictType myDict;
66  static int myMaxID;
67 };
68 
69 
70 #endif
71 
72 /****************************************************************************/
73 
static void clearDict()
virtual ~NIVissimNodeDef()
static int myMaxID
static int getMaxID()
std::string myName
static bool dictionary(int id, NIVissimNodeDef *o)
virtual double getEdgePosition(int edgeid) const =0
std::map< int, NIVissimNodeDef * > DictType
static DictType myDict
static int dictSize()
int buildNodeCluster()
NIVissimNodeDef(int id, const std::string &name)