SUMO - Simulation of Urban MObility
ROMAEdge.cpp
Go to the documentation of this file.
1 /****************************************************************************/
11 // A basic edge for routing applications
12 /****************************************************************************/
13 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
14 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
15 /****************************************************************************/
16 //
17 // This file is part of SUMO.
18 // SUMO is free software: you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation, either version 3 of the License, or
21 // (at your option) any later version.
22 //
23 /****************************************************************************/
24 
25 
26 // ===========================================================================
27 // included modules
28 // ===========================================================================
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include "ROMAEdge.h"
36 
37 
38 // ===========================================================================
39 // method definitions
40 // ===========================================================================
41 ROMAEdge::ROMAEdge(const std::string& id, RONode* from, RONode* to, int index, const int priority)
42  : ROEdge(id, from, to, index, priority) {
43 }
44 
45 
47 }
48 
49 
50 void
51 ROMAEdge::addSuccessor(ROEdge* s, std::string dir) {
52  ROEdge::addSuccessor(s, dir);
53  if (dir == "l" || dir == "L") {
54  myLeftTurns.insert(static_cast<ROMAEdge*>(s));
55  }
56 }
57 
58 
59 /****************************************************************************/
60 
std::set< ROMAEdge * > myLeftTurns
Definition: ROMAEdge.h:106
ROMAEdge(const std::string &id, RONode *from, RONode *to, int index, const int priority)
Constructor.
Definition: ROMAEdge.cpp:41
virtual void addSuccessor(ROEdge *s, std::string dir="")
Adds information about a connected edge.
Definition: ROMAEdge.cpp:51
A basic edge for routing applications.
Definition: ROEdge.h:77
virtual void addSuccessor(ROEdge *s, std::string dir="")
Adds information about a connected edge.
Definition: ROEdge.cpp:105
virtual ~ROMAEdge()
Destructor.
Definition: ROMAEdge.cpp:46
Base class for nodes used by the router.
Definition: RONode.h:53