|
SUMO - Simulation of Urban MObility
|
The base class for an intersection. More...
#include <MSJunction.h>
Public Member Functions | |
| virtual const std::vector < MSLane * > & | getFoeInternalLanes (const MSLink *const ) const |
| virtual const std::vector < MSLink * > & | getFoeLinks (const MSLink *const ) const |
| const std::string & | getID () const |
| Returns the id of the junction. | |
| const Position & | getPosition () const |
| const PositionVector & | getShape () const |
| Returns this junction's shape. | |
| MSJunction (const std::string &id, const Position &position, const PositionVector &shape) | |
| Constructor. | |
| virtual void | postloadInit () |
| virtual | ~MSJunction () |
| Destructor. | |
Protected Attributes | |
| std::vector< MSLane * > | myEmptyLanes |
| std::vector< MSLink * > | myEmptyLinks |
| std::string | myID |
| The id of the junction. | |
| Position | myPosition |
| The position of the junction. | |
| PositionVector | myShape |
| The shape of the junction. | |
Private Member Functions | |
| MSJunction (const MSJunction &) | |
| Invalidated copy constructor. | |
| MSJunction & | operator= (const MSJunction &) |
| Invalidated assignment operator. | |
The base class for an intersection.
Definition at line 56 of file MSJunction.h.
|
virtual |
Destructor.
Definition at line 54 of file MSJunction.cpp.
| MSJunction::MSJunction | ( | const std::string & | id, |
| const Position & | position, | ||
| const PositionVector & | shape | ||
| ) |
Constructor.
| [in] | id | The id of the junction |
| [in] | position | The position of the junction |
| [in] | shape | The shape of the junction |
Definition at line 49 of file MSJunction.cpp.
|
private |
Invalidated copy constructor.
|
inlinevirtual |
Reimplemented in MSRightOfWayJunction.
Definition at line 91 of file MSJunction.h.
References myEmptyLanes.
|
inlinevirtual |
Reimplemented in MSRightOfWayJunction.
Definition at line 87 of file MSJunction.h.
References myEmptyLinks.
| const std::string & MSJunction::getID | ( | ) | const |
| const Position & MSJunction::getPosition | ( | ) | const |
returns the junction's position
Definition at line 58 of file MSJunction.cpp.
References myPosition.
Referenced by GUIJunctionWrapper::drawGL(), GUINet::getJunctionPosition(), GUIJunctionWrapper::GUIJunctionWrapper(), and TraCIServerAPI_Junction::processGet().
|
inline |
Returns this junction's shape.
Definition at line 83 of file MSJunction.h.
References myShape.
Referenced by GUIJunctionWrapper::drawGL(), and GUIJunctionWrapper::GUIJunctionWrapper().
|
private |
Invalidated assignment operator.
|
virtual |
performs some initialisation after the loading (e.g., link map computation)
Reimplemented in MSRightOfWayJunction, MSNoLogicJunction, and MSLogicJunction.
Definition at line 64 of file MSJunction.cpp.
|
protected |
Definition at line 106 of file MSJunction.h.
Referenced by getFoeInternalLanes().
|
protected |
Definition at line 105 of file MSJunction.h.
Referenced by getFoeLinks().
|
protected |
|
protected |
The position of the junction.
Definition at line 100 of file MSJunction.h.
Referenced by getPosition().
|
protected |