SUMO - Simulation of Urban MObility

MSJunction Class Reference

The base class for an intersection. More...

#include <MSJunction.h>

Inheritance diagram for MSJunction:
MSLogicJunction MSNoLogicJunction MSRightOfWayJunction

Public Member Functions

virtual const std::vector
< MSLane * > & 
getFoeInternalLanes (const MSLink *const ) const throw ()
virtual const std::vector
< MSLink * > & 
getFoeLinks (const MSLink *const ) const throw ()
const std::string & getID () const
 Returns the id of the junction.
const Position & getPosition () const
const PositionVector & getShape () const throw ()
 Returns this junction's shape.
 MSJunction (const std::string &id, const Position &position, const PositionVector &shape) throw ()
 Constructor.
virtual void postloadInit () throw (ProcessError)
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.

Detailed Description

The base class for an intersection.

Definition at line 52 of file MSJunction.h.


Constructor & Destructor Documentation

MSJunction::~MSJunction ( ) [virtual]

Destructor.

Definition at line 51 of file MSJunction.cpp.

MSJunction::MSJunction ( const std::string &  id,
const Position &  position,
const PositionVector &  shape 
) throw ()

Constructor.

Parameters:
[in]idThe id of the junction
[in]positionThe position of the junction
[in]shapeThe shape of the junction

Definition at line 46 of file MSJunction.cpp.

MSJunction::MSJunction ( const MSJunction &  ) [private]

Invalidated copy constructor.


Member Function Documentation

virtual const std::vector<MSLane*>& MSJunction::getFoeInternalLanes ( const MSLink *  const) const throw () [inline, virtual]

Reimplemented in MSRightOfWayJunction.

Definition at line 87 of file MSJunction.h.

References myEmptyLanes.

virtual const std::vector<MSLink*>& MSJunction::getFoeLinks ( const MSLink *  const) const throw () [inline, virtual]

Reimplemented in MSRightOfWayJunction.

Definition at line 83 of file MSJunction.h.

References myEmptyLinks.

const std::string & MSJunction::getID ( ) const

Returns the id of the junction.

Definition at line 65 of file MSJunction.cpp.

References myID.

const Position & MSJunction::getPosition ( ) const

returns the junction's position

Definition at line 55 of file MSJunction.cpp.

References myPosition.

Referenced by GUINet::getJunctionPosition(), and TraCIServerAPI_Junction::processGet().

const PositionVector& MSJunction::getShape ( ) const throw () [inline]

Returns this junction's shape.

Returns:
The shape of this junction

Definition at line 79 of file MSJunction.h.

References myShape.

MSJunction& MSJunction::operator= ( const MSJunction &  ) [private]

Invalidated assignment operator.

void MSJunction::postloadInit ( ) throw (ProcessError) [virtual]

performs some initialisation after the loading (e.g., link map computation)

Reimplemented in MSLogicJunction, MSNoLogicJunction, and MSRightOfWayJunction.

Definition at line 61 of file MSJunction.cpp.


Field Documentation

std::vector<MSLane*> MSJunction::myEmptyLanes [protected]

Definition at line 102 of file MSJunction.h.

Referenced by getFoeInternalLanes().

std::vector<MSLink*> MSJunction::myEmptyLinks [protected]

Definition at line 101 of file MSJunction.h.

Referenced by getFoeLinks().

std::string MSJunction::myID [protected]

The id of the junction.

Definition at line 93 of file MSJunction.h.

Referenced by getID().

The position of the junction.

Definition at line 96 of file MSJunction.h.

Referenced by getPosition().

The shape of the junction.

Definition at line 99 of file MSJunction.h.

Referenced by getShape().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines