ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
adore::env::traffic::TrafficMap Class Reference

#include <trafficmap.h>

Inheritance diagram for adore::env::traffic::TrafficMap:
Inheritance graph
Collaboration diagram for adore::env::traffic::TrafficMap:
Collaboration graph

Public Types

typedef std::unordered_multimap< adore::env::BorderBased::BorderID, std::pair< adore::env::BorderBased::BorderPositioning< 4 >, adore::env::traffic::Participant::TTrackingID >, adore::env::BorderBased::BorderIDHasher > TBorderToParticipant
 
typedef std::unordered_multimap< adore::env::traffic::Participant::TTrackingID, std::pair< adore::env::BorderBased::BorderID, adore::env::BorderBased::BorderPositioning< 4 > > > TParticipantToBorder
 
typedef std::unordered_multimap< adore::env::traffic::Participant::TTrackingID, adore::env::traffic::Participant > TTrackingIDToParticipant
 

Public Member Functions

TParticipantSet & getTrafficParticipantSet ()
 Get the set of traffic participants. More...
 
adore::env::BorderBased::BorderSet * getBorderSet ()
 Get the border set. More...
 
const TBorderToParticipant & getBorderToParticipant () const
 Get the border to participant map. More...
 
const TParticipantToBorder & getParticipantToBorder () const
 Get the participant to border map. More...
 
const TTrackingIDToParticipant & getTrackingIDToParticipant () const
 Get the tracking id to participant map. More...
 
 TrafficMap (adore::env::BorderBased::BorderSet *borderSet)
 Construct a new TrafficMap object. More...
 
 TrafficMap (adore::env::BorderBased::BorderSet *borderSet, adore::env::AFactory *factory)
 Construct a new TrafficMap object. More...
 
void update ()
 Update the TrafficMap. More...
 
void matchBorders ()
 Match traffic to borders. More...
 

Private Attributes

TBorderToParticipant borderToParticipant_
 
TParticipantToBorder participantToBorder_
 
TTrackingIDToParticipant trackingIDToParticipant_
 
TParticipantSet participantSet_
 
adore::env::BorderBased::BorderSet * borderSet_
 
adore::env::AFactory::TParticipantSetReader * tpsetReader_
 

Detailed Description

Class to represent traffic data

Member Typedef Documentation

◆ TBorderToParticipant

◆ TParticipantToBorder

◆ TTrackingIDToParticipant

Constructor & Destructor Documentation

◆ TrafficMap() [1/2]

adore::env::traffic::TrafficMap::TrafficMap ( adore::env::BorderBased::BorderSet *  borderSet)
inline

Construct a new TrafficMap object.

Parameters
borderSetset of borders
Here is the call graph for this function:

◆ TrafficMap() [2/2]

adore::env::traffic::TrafficMap::TrafficMap ( adore::env::BorderBased::BorderSet *  borderSet,
adore::env::AFactory *  factory 
)
inline

Construct a new TrafficMap object.

Parameters
borderSetset of borders
factory
Here is the call graph for this function:

Member Function Documentation

◆ getBorderSet()

adore::env::BorderBased::BorderSet* adore::env::traffic::TrafficMap::getBorderSet ( )
inline

Get the border set.

Returns
adore::env::BorderBased::BorderSet*
Here is the caller graph for this function:

◆ getBorderToParticipant()

const TBorderToParticipant& adore::env::traffic::TrafficMap::getBorderToParticipant ( ) const
inline

Get the border to participant map.

Returns
const TBorderToParticipant&
Here is the caller graph for this function:

◆ getParticipantToBorder()

const TParticipantToBorder& adore::env::traffic::TrafficMap::getParticipantToBorder ( ) const
inline

Get the participant to border map.

Returns
const TParticipantToBorder&
Here is the caller graph for this function:

◆ getTrackingIDToParticipant()

const TTrackingIDToParticipant& adore::env::traffic::TrafficMap::getTrackingIDToParticipant ( ) const
inline

Get the tracking id to participant map.

Returns
const TTrackingIDToParticipant&
Here is the caller graph for this function:

◆ getTrafficParticipantSet()

TParticipantSet& adore::env::traffic::TrafficMap::getTrafficParticipantSet ( )
inline

Get the set of traffic participants.

Returns
TParticipantSet&
Here is the caller graph for this function:

◆ matchBorders()

void adore::env::traffic::TrafficMap::matchBorders ( )
inline

Match traffic to borders.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void adore::env::traffic::TrafficMap::update ( )
inline

Update the TrafficMap.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ borderSet_

adore::env::BorderBased::BorderSet* adore::env::traffic::TrafficMap::borderSet_
private

set of borders

◆ borderToParticipant_

TBorderToParticipant adore::env::traffic::TrafficMap::borderToParticipant_
private

Borders mapped to participants

◆ participantSet_

TParticipantSet adore::env::traffic::TrafficMap::participantSet_
private

set of participants

◆ participantToBorder_

TParticipantToBorder adore::env::traffic::TrafficMap::participantToBorder_
private

Participants mapped to borders

◆ tpsetReader_

adore::env::AFactory::TParticipantSetReader* adore::env::traffic::TrafficMap::tpsetReader_
private

reader of traffic participants

◆ trackingIDToParticipant_

TTrackingIDToParticipant adore::env::traffic::TrafficMap::trackingIDToParticipant_
private

TrackingIDs mapped to participants


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