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>

Public Member Functions

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

Private Attributes

MSVehicle * myLeader
 The leader on the informed vehicle's lane.
MSVehicle * myNeighFollower
 The follower on the lane the vehicle want to change to.
MSVehicle * myNeighLeader
 The leader on the lane the vehicle want to change to.

Detailed Description

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

Definition at line 104 of file MSAbstractLaneChangeModel.h.


Constructor & Destructor Documentation

MSAbstractLaneChangeModel::MSLCMessager::MSLCMessager ( MSVehicle *  leader,
MSVehicle *  neighLead,
MSVehicle *  neighFollow 
) throw () [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 111 of file MSAbstractLaneChangeModel.h.

MSAbstractLaneChangeModel::MSLCMessager::~MSLCMessager ( ) [inline]

Destructor.

Definition at line 117 of file MSAbstractLaneChangeModel.h.


Member Function Documentation

void* MSAbstractLaneChangeModel::MSLCMessager::informLeader ( void *  info,
MSVehicle *  sender 
) throw () [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 125 of file MSAbstractLaneChangeModel.h.

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

void* MSAbstractLaneChangeModel::MSLCMessager::informNeighFollower ( void *  info,
MSVehicle *  sender 
) throw () [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 147 of file MSAbstractLaneChangeModel.h.

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

Referenced by MSLCM_DK2004::informBlocker().

void* MSAbstractLaneChangeModel::MSLCMessager::informNeighLeader ( void *  info,
MSVehicle *  sender 
) throw () [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 136 of file MSAbstractLaneChangeModel.h.

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

Referenced by MSLCM_DK2004::informBlocker().


Field Documentation

The leader on the informed vehicle's lane.

Definition at line 155 of file MSAbstractLaneChangeModel.h.

Referenced by informLeader().

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

Definition at line 159 of file MSAbstractLaneChangeModel.h.

Referenced by informNeighFollower().

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

Definition at line 157 of file MSAbstractLaneChangeModel.h.

Referenced by informNeighLeader().


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