ITS
Manager Class Reference

#include <Manager.h>

Inheritance diagram for Manager:
[legend]
Collaboration diagram for Manager:
[legend]

Public Slots

void execute ()
 execute Slot used to be threadable. More...
 
void changeMID ()
 changeMID Slot used when need to change the MID. More...
 

Signals

void midToChange ()
 midToChange Signal used when need to change the MID. More...
 

Public Member Functions

 Manager (QMutex *mutex=nullptr, FakeGPSProvider *pGPS=nullptr, FakeCANProvider *pCAN=nullptr, ParameterDENM *pDENM=nullptr, FakeApplicationProvider *pAppli=nullptr, ParameterUpperTester *pUt=nullptr)
 Manager Manager constructor. More...
 
 ~Manager ()
 
void updateGnAddr (uchar *mid)
 updateGnAddr Update the GN-ADDR More...
 

Public Attributes

QHash< QString, void * > hashMap
 

Private Attributes

FakeGPSProviderm_paramGPS
 
FakeCANProviderm_paramCAN
 
FakeApplicationProviderm_paramAppli
 
ParameterConfigurationm_paramConf
 
ParameterDENMm_paramDENM
 
ParameterUpperTesterm_paramUpperTester
 
ParameterSecuritym_paramSecurity
 
ParameterNetworkm_paramNetwork
 
GnAddrm_gnA
 
QMutex * m_mutex
 

Detailed Description

Definition at line 28 of file Manager.h.

Constructor & Destructor Documentation

◆ Manager()

Manager::Manager ( QMutex *  mutex = nullptr,
FakeGPSProvider pGPS = nullptr,
FakeCANProvider pCAN = nullptr,
ParameterDENM pDENM = nullptr,
FakeApplicationProvider pAppli = nullptr,
ParameterUpperTester pUt = nullptr 
)

Manager Manager constructor.

Parameters
mutexMutex used for initialization.
pGPSFakeGPSProvider to store.
pCANFakeCANProvider to store.
pDENMParameterDENM to store.
pAppliParameterApplication to store.
pUtParameterUpperTester to store.

Definition at line 3 of file Manager.cpp.

References changeMID(), ParameterConfiguration::countryCode(), FakeApplicationProvider::data(), hashMap, ParameterConfiguration::itsGnLocalAddrConfMethod(), ParameterConfiguration::itsGnSecurity(), m_gnA, m_mutex, m_paramAppli, m_paramCAN, m_paramConf, m_paramDENM, m_paramGPS, m_paramNetwork, m_paramSecurity, m_paramUpperTester, ParameterConfiguration::mid(), midToChange(), and ParameterApplication::stationType().

Here is the call graph for this function:

◆ ~Manager()

Manager::~Manager ( )

~Manager Manager destructor.

Definition at line 49 of file Manager.cpp.

Member Function Documentation

◆ changeMID

void Manager::changeMID ( )
slot

changeMID Slot used when need to change the MID.

TODO demander le nouveau MID à la couche sécu via un signal

Definition at line 57 of file Manager.cpp.

References ParameterConfiguration::itsGnLocalAddrConfMethod(), itsGnLocalAddrConfMethod_anonymous, itsGnLocalAddrConfMethod_auto, m_mutex, m_paramConf, ParameterConfiguration::mid(), and updateGnAddr().

Referenced by GeoNet::beaconPacketProcessing(), GeoNet::gacPacketProcessing(), GeoNet::gbcPacketProcessing(), GeoNet::gucPacketProcessing(), GeoNet::LSReplyPacketProcessing(), GeoNet::LSRequestPacketProcessing(), Manager(), GeoNet::shbPacketProcessing(), and GeoNet::tsbPacketProcessing().

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

◆ execute

void Manager::execute ( )
slot

execute Slot used to be threadable.

Definition at line 53 of file Manager.cpp.

◆ midToChange

void Manager::midToChange ( )
signal

midToChange Signal used when need to change the MID.

Referenced by Manager().

Here is the caller graph for this function:

◆ updateGnAddr()

void Manager::updateGnAddr ( uchar *  mid)

updateGnAddr Update the GN-ADDR

Parameters
midThe new MID to use.

Definition at line 41 of file Manager.cpp.

References ParameterConfiguration::countryCode(), FakeApplicationProvider::data(), ParameterConfiguration::itsGnLocalAddrConfMethod(), m_gnA, m_paramAppli, m_paramConf, ParameterConfiguration::mid(), ParameterApplication::stationType(), and ParameterConfiguration::updateMID().

Referenced by changeMID(), and UpperTester::utInitialize().

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

Member Data Documentation

◆ hashMap

◆ m_gnA

GnAddr* Manager::m_gnA
private

ITS-S GN-ADDR.

Definition at line 80 of file Manager.h.

Referenced by Manager(), and updateGnAddr().

◆ m_mutex

QMutex* Manager::m_mutex
private

Mutex used for initialization.

Definition at line 81 of file Manager.h.

Referenced by changeMID(), and Manager().

◆ m_paramAppli

FakeApplicationProvider* Manager::m_paramAppli
private

Application configuration.

Definition at line 74 of file Manager.h.

Referenced by Manager(), and updateGnAddr().

◆ m_paramCAN

FakeCANProvider* Manager::m_paramCAN
private

CAN bus module.

Definition at line 73 of file Manager.h.

Referenced by Manager().

◆ m_paramConf

ParameterConfiguration* Manager::m_paramConf
private

Global configuration.

Definition at line 75 of file Manager.h.

Referenced by changeMID(), Manager(), and updateGnAddr().

◆ m_paramDENM

ParameterDENM* Manager::m_paramDENM
private

DENM configuration.

Definition at line 76 of file Manager.h.

Referenced by Manager().

◆ m_paramGPS

FakeGPSProvider* Manager::m_paramGPS
private

GPS module.

Definition at line 72 of file Manager.h.

Referenced by Manager().

◆ m_paramNetwork

ParameterNetwork* Manager::m_paramNetwork
private

Network configuration.

Definition at line 79 of file Manager.h.

Referenced by Manager().

◆ m_paramSecurity

ParameterSecurity* Manager::m_paramSecurity
private

Security configuration.

Definition at line 78 of file Manager.h.

Referenced by Manager().

◆ m_paramUpperTester

ParameterUpperTester* Manager::m_paramUpperTester
private

UpperTester configuration.

Definition at line 77 of file Manager.h.

Referenced by Manager().


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