SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSLogicJunction Class Reference

#include <MSLogicJunction.h>

Inheritance diagram for MSLogicJunction:
MSJunction MSRightOfWayJunction

Public Types

typedef std::bitset< 64 > InnerState
 Container for junction-internal lane occupation Each element of this container represents one particular junction-internal lane.
typedef std::bitset< 64 > LinkFoes
 Container for link foes.

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 PositiongetPosition () const
const PositionVectorgetShape () const
 Returns this junction's shape.
virtual void postloadInit ()
 initialises the junction after the whole net has been loaded
virtual ~MSLogicJunction ()
 Destructor.

Protected Member Functions

 MSLogicJunction (const std::string &id, const Position &position, const PositionVector &shape, std::vector< MSLane * > incoming)
 Constructor.

Protected Attributes

std::vector< MSLane * > myEmptyLanes
std::vector< MSLink * > myEmptyLinks
std::string myID
 The id of the junction.
std::vector< MSLane * > myIncomingLanes
 list of incoming lanes
InnerState myInnerState
Position myPosition
 The position of the junction.
PositionVector myShape
 The shape of the junction.

Private Member Functions

 MSLogicJunction (const MSLogicJunction &)
 Invalidated copy constructor.
MSLogicJunctionoperator= (const MSLogicJunction &)
 Invalidated assignment operator.

Detailed Description

A junction which may not let all vehicles through, but must perform any kind of an operation to determine which cars are allowed to drive in this step.

Definition at line 56 of file MSLogicJunction.h.


Member Typedef Documentation

typedef std::bitset<64> MSLogicJunction::InnerState

Container for junction-internal lane occupation Each element of this container represents one particular junction-internal lane.

Definition at line 69 of file MSLogicJunction.h.

typedef std::bitset<64> MSLogicJunction::LinkFoes

Container for link foes.

Definition at line 64 of file MSLogicJunction.h.


Constructor & Destructor Documentation

MSLogicJunction::~MSLogicJunction ( )
virtual

Destructor.

Definition at line 64 of file MSLogicJunction.cpp.

MSLogicJunction::MSLogicJunction ( const std::string &  id,
const Position position,
const PositionVector shape,
std::vector< MSLane * >  incoming 
)
protected

Constructor.

Parameters:
[in]idThe id of the junction
[in]positionThe position of the junction
[in]shapeThe shape of the junction
[in]incomingThe incoming lanes
[in]internalThe internal lanes

Definition at line 48 of file MSLogicJunction.cpp.

MSLogicJunction::MSLogicJunction ( const MSLogicJunction )
private

Invalidated copy constructor.


Member Function Documentation

virtual const std::vector<MSLane*>& MSJunction::getFoeInternalLanes ( const MSLink const) const
inlinevirtualinherited

Reimplemented in MSRightOfWayJunction.

Definition at line 91 of file MSJunction.h.

References MSJunction::myEmptyLanes.

virtual const std::vector<MSLink*>& MSJunction::getFoeLinks ( const MSLink const) const
inlinevirtualinherited

Reimplemented in MSRightOfWayJunction.

Definition at line 87 of file MSJunction.h.

References MSJunction::myEmptyLinks.

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

Returns the id of the junction.

Definition at line 68 of file MSJunction.cpp.

References MSJunction::myID.

const Position & MSJunction::getPosition ( ) const
inherited
const PositionVector& MSJunction::getShape ( ) const
inlineinherited

Returns this junction's shape.

Returns:
The shape of this junction

Definition at line 83 of file MSJunction.h.

References MSJunction::myShape.

Referenced by GUIJunctionWrapper::drawGL(), and GUIJunctionWrapper::GUIJunctionWrapper().

MSLogicJunction& MSLogicJunction::operator= ( const MSLogicJunction )
private

Invalidated assignment operator.

void MSLogicJunction::postloadInit ( )
virtual

initialises the junction after the whole net has been loaded

Reimplemented from MSJunction.

Reimplemented in MSRightOfWayJunction.

Definition at line 68 of file MSLogicJunction.cpp.


Field Documentation

std::vector<MSLane*> MSJunction::myEmptyLanes
protectedinherited

Definition at line 106 of file MSJunction.h.

Referenced by MSJunction::getFoeInternalLanes().

std::vector<MSLink*> MSJunction::myEmptyLinks
protectedinherited

Definition at line 105 of file MSJunction.h.

Referenced by MSJunction::getFoeLinks().

std::string MSJunction::myID
protectedinherited

The id of the junction.

Definition at line 97 of file MSJunction.h.

Referenced by MSJunction::getID().

std::vector<MSLane*> MSLogicJunction::myIncomingLanes
protected

list of incoming lanes

Definition at line 92 of file MSLogicJunction.h.

Referenced by MSRightOfWayJunction::postloadInit().

InnerState MSLogicJunction::myInnerState
protected

Current inner state

Definition at line 100 of file MSLogicJunction.h.

Referenced by MSRightOfWayJunction::postloadInit().

Position MSJunction::myPosition
protectedinherited

The position of the junction.

Definition at line 100 of file MSJunction.h.

Referenced by MSJunction::getPosition().

PositionVector MSJunction::myShape
protectedinherited

The shape of the junction.

Definition at line 103 of file MSJunction.h.

Referenced by MSJunction::getShape().


The documentation for this class was generated from the following files: