SUMO - Simulation of Urban MObility
NIVissimExtendedEdgePoint.h
Go to the documentation of this file.
1 /****************************************************************************/
8 // -------------------
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2015 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 NIVissimExtendedEdgePoint_h
22 #define NIVissimExtendedEdgePoint_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 <vector>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class NBEdge;
41 class Position;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
51 public:
58  NIVissimExtendedEdgePoint(int edgeid, const std::vector<int>& lanes,
59  SUMOReal position, const std::vector<int>& assignedVehicles);
61  int getEdgeID() const;
62  SUMOReal getPosition() const;
63  Position getGeomPosition() const;
64  const std::vector<int>& getLanes() const;
65 
66 
74  void recheckLanes(const NBEdge* const edge);
75 
76 private:
77  int myEdgeID;
78  std::vector<int> myLanes;
80  std::vector<int> myAssignedVehicles;
81 };
82 
83 
84 #endif
85 
86 /****************************************************************************/
87 
NIVissimExtendedEdgePoint(int edgeid, const std::vector< int > &lanes, SUMOReal position, const std::vector< int > &assignedVehicles)
Constructor.
void recheckLanes(const NBEdge *const edge)
Resets lane numbers if all lanes shall be used.
The representation of a single edge during network building.
Definition: NBEdge.h:70
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
const std::vector< int > & getLanes() const
#define SUMOReal
Definition: config.h:214