SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
NIVissimNodeDef.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// -------------------
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
11
// Copyright (C) 2002-2014 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
#ifndef NIVissimNodeDef_h
22
#define NIVissimNodeDef_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <string>
35
#include <map>
36
#include <
utils/geom/Boundary.h
>
37
#include "
NIVissimExtendedEdgePointVector.h
"
38
#include "
NIVissimNodeCluster.h
"
39
40
41
class
NIVissimNodeDef
{
42
public
:
43
NIVissimNodeDef
(
int
id
,
const
std::string& name);
44
virtual
~NIVissimNodeDef
();
45
int
buildNodeCluster
();
46
// virtual void computeBounding() = 0;
47
// bool partialWithin(const AbstractPoly &p, SUMOReal off=0.0) const;
48
virtual
void
searchAndSetConnections
() = 0;
49
virtual
SUMOReal
getEdgePosition
(
int
edgeid)
const
= 0;
50
51
public
:
52
static
bool
dictionary
(
int
id
,
NIVissimNodeDef
* o);
53
static
NIVissimNodeDef
*
dictionary
(
int
id
);
54
// static std::vector<int> getWithin(const AbstractPoly &p, SUMOReal off=0.0);
55
// static void buildNodeClusters();
56
static
void
dict_assignConnectionsToNodes
();
57
static
size_t
dictSize
();
58
static
void
clearDict
();
59
static
int
getMaxID
();
60
protected
:
61
int
myID
;
62
std::string
myName
;
63
64
private
:
65
typedef
std::map<int, NIVissimNodeDef*>
DictType
;
66
static
DictType
myDict
;
67
static
int
myMaxID
;
68
};
69
70
71
#endif
72
73
/****************************************************************************/
74
tmp
buildd
sumo-0.21.0+dfsg
src
netimport
vissim
tempstructs
NIVissimNodeDef.h
Generated on Thu Nov 20 2014 19:49:57 for SUMO - Simulation of Urban MObility by
1.8.1.2