Eclipse SUMO - Simulation of Urban MObility
MSAbstractLaneChangeModel::MSLCMessager Class Reference

A class responsible for exchanging messages between cars involved in lane-change interaction. More...

#include <MSAbstractLaneChangeModel.h>

Collaboration diagram for MSAbstractLaneChangeModel::MSLCMessager:
[legend]

Public Member Functions

void * informLeader (void *info, MSVehicle *sender)
 Informs the leader on the same lane. More...
 
void * informNeighFollower (void *info, MSVehicle *sender)
 Informs the follower on the desired lane. More...
 
void * informNeighLeader (void *info, MSVehicle *sender)
 Informs the leader on the desired lane. More...
 
 MSLCMessager (MSVehicle *leader, MSVehicle *neighLead, MSVehicle *neighFollow)
 Constructor. More...
 
 ~MSLCMessager ()
 Destructor. More...
 

Private Attributes

MSVehiclemyLeader
 The leader on the informed vehicle's lane. More...
 
MSVehiclemyNeighFollower
 The follower on the lane the vehicle want to change to. More...
 
MSVehiclemyNeighLeader
 The leader on the lane the vehicle want to change to. More...
 

Detailed Description

A class responsible for exchanging messages between cars involved in lane-change interaction.

Definition at line 53 of file MSAbstractLaneChangeModel.h.

Constructor & Destructor Documentation

◆ MSLCMessager()

MSAbstractLaneChangeModel::MSLCMessager::MSLCMessager ( MSVehicle leader,
MSVehicle neighLead,
MSVehicle neighFollow 
)
inline

Constructor.

Parameters
[in]leaderThe leader on the informed vehicle's lane
[in]neighLeadThe leader on the lane the vehicle want to change to
[in]neighFollowThe follower on the lane the vehicle want to change to

Definition at line 60 of file MSAbstractLaneChangeModel.h.

◆ ~MSLCMessager()

MSAbstractLaneChangeModel::MSLCMessager::~MSLCMessager ( )
inline

Destructor.

Definition at line 66 of file MSAbstractLaneChangeModel.h.

Member Function Documentation

◆ informLeader()

void* MSAbstractLaneChangeModel::MSLCMessager::informLeader ( void *  info,
MSVehicle sender 
)
inline

Informs the leader on the same lane.

Parameters
[in]infoThe information to pass
[in]senderThe sending vehicle (the lane changing vehicle)
Returns
Something!?

Definition at line 74 of file MSAbstractLaneChangeModel.h.

References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::inform(), and myLeader.

◆ informNeighFollower()

void* MSAbstractLaneChangeModel::MSLCMessager::informNeighFollower ( void *  info,
MSVehicle sender 
)
inline

Informs the follower on the desired lane.

Parameters
[in]infoThe information to pass
[in]senderThe sending vehicle (the lane changing vehicle)
Returns
Something!?

Definition at line 96 of file MSAbstractLaneChangeModel.h.

References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::inform(), and myNeighFollower.

Referenced by MSLCM_DK2008::informBlocker(), and MSLCM_LC2013::informFollower().

Here is the caller graph for this function:

◆ informNeighLeader()

void* MSAbstractLaneChangeModel::MSLCMessager::informNeighLeader ( void *  info,
MSVehicle sender 
)
inline

Informs the leader on the desired lane.

Parameters
[in]infoThe information to pass
[in]senderThe sending vehicle (the lane changing vehicle)
Returns
Something!?

Definition at line 85 of file MSAbstractLaneChangeModel.h.

References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::inform(), and myNeighLeader.

Referenced by MSLCM_DK2008::informBlocker(), and MSLCM_LC2013::informLeader().

Here is the caller graph for this function:

Field Documentation

◆ myLeader

MSVehicle* MSAbstractLaneChangeModel::MSLCMessager::myLeader
private

The leader on the informed vehicle's lane.

Definition at line 104 of file MSAbstractLaneChangeModel.h.

Referenced by informLeader().

◆ myNeighFollower

MSVehicle* MSAbstractLaneChangeModel::MSLCMessager::myNeighFollower
private

The follower on the lane the vehicle want to change to.

Definition at line 108 of file MSAbstractLaneChangeModel.h.

Referenced by informNeighFollower().

◆ myNeighLeader

MSVehicle* MSAbstractLaneChangeModel::MSLCMessager::myNeighLeader
private

The leader on the lane the vehicle want to change to.

Definition at line 106 of file MSAbstractLaneChangeModel.h.

Referenced by informNeighLeader().


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