7 #ifndef caBasicService_H 8 #define caBasicService_H 15 #include <QElapsedTimer> 30 #define DEFAULT_N_GEN_CAM 3 31 #define MAX_REFERENCEPOSITION 40 296 #endif // caBasicService_H PathPoint_t m_listPathPoint[MAX_REFERENCEPOSITION]
PathHistory_t getPathHistory()
getPathHistory PathHistory getter.
quint16 N_GenCam() const
N_GenCam N_GenCam getter.
Usefull functions and declarations.
bool checkForOptionalContainers()
checkForOptionalContainers Check if there need optional data.
void setLastLF(QTime l)
setLastLF Set the time where the last CAM had a LowFrequencyContainer.
QTime previousTime() const
previousTime Time of the previous CAM getter.
void execute()
execute Slot used for the first loop.
CAM_t currentCAM() const
currentCAM Current CAM getter.
FakeGPSProvider * m_paramGPS
void PassCamToNetworkAndTransportLayer(char *cam, int camLength)
PassCamToNetworkAndTransportLayer Pass the encoded CAM to the N&T layer.
CAM_t previousCAM() const
previousCAM Previous CAM getter
SpecialVehicleContainer_t collectOptionalData_SpecialVehicleContainer(VehicleRole_t v)
collectOptionalData_SpecialVehicleContainer Collect optional data for the SpecialVehicleContainer.
quint16 T_GenCam_DCC() const
T_GenCam_DCC T_GenCam_DCC getter.
QList< GenerationDeltaTime_t > m_listGenerationDeltaTime
bool checkCamGeneration()
checkCamGeneration Check if a CAM needs to be generated.
FakeCANProvider * m_paramCAN
quint64 timestamp()
timestamp Timestamp getter.
RoadWorksContainerBasic_t collectOptionalData_RoadWorksContainerbasic()
collectOptionalData_RoadWorksContainerbasic Collect optional data for the RoadWorksContainerBasic.
FakeApplicationProvider * m_paramAppli
EmergencyContainer_t collectOptionalData_EmergencyContainer()
collectOptionalData_EmergencyContainer Collect optional data for the EmergencyContainer.
BasicVehicleContainerLowFrequency_t collectOptionalData_BasicVehicleContainerLowFrequency()
collectOptionalData_BasicVehicleContainerLowFrequency Collect optional data for the BasicVehicleConta...
bool needSpecialVehicleContainer(VehicleRole_t role)
needSpecialVehicleContainer Check if there need SpecialVehicleContainer.
SpecialTransportContainer_t collectOptionalData_SpecialTransportContainer()
collectOptionalData_SpecialTransportContainer Collect optional data for the SpecialTransportContainer...
quint16 T_CheckGenCam() const
T_CheckGenCam T_CheckCamm getter.
CAM_t collectMandatoryData()
collectMandatoryData Collect the CAM mandatory data.
void checkToSendCAM()
checkToSendCAM Slot used when there need to check if we need to send CAM.
void setCurrentCAM(CAM_t c)
setCurrentCAM Set the current CAM.
ParameterConfiguration * m_paramConf
BasicContainer_t collectMandatoryData_BasicContainer()
collectMandatoryData_BasicContainer Collect mandatory data for the BasicContainer.
void setT_GenCam_DCC(quint16 t)
setT_GenCam_DCC Set the T_GenCam_DCC.
void checkPathPoint(int i)
checkPathPoint Check a PathPoint.
CAM reception management.
QTime lastLF() const
lastLF Last time where a CAM had a LowFrequencyContainer.
QList< ReferencePosition_t > m_listReferencePosition
Constantes used everywhere.
quint64 timestamp() const
timestamp Current timestamp getter.
void setPreviousTime(QTime p)
setPreviousTime Set the time where the previous CAM was sent.
void setT_CheckGenCam(quint16 t)
setT_CheckGenCam Set the T_CheckGenCam.
SafetyCarContainer_t collectOptionalData_SafetyCarContainer()
collectOptionalData_SafetyCarContainer Collect optional data for the SafetyCarContainer.
void setT_GenCam(quint16 t)
setT_GenCam Set the T_GenCam.
API used by the Facilities layer.
PathPoint_t getPathPoint(int i)
getPathPoint PathPoint getter.
BasicVehicleContainerHighFrequency_t collectMandatoryData_BasicVehicleContainerHighFrequency()
collectMandatoryData_BasicVehicleContainerHighFrequency Collect mandatory data for the BasicVehicleCo...
RescueContainer_t collectOptionalData_RescueContainer()
collectOptionalData_RescueContainer Collect optional data for the RescueContainer.
PublicTransportContainer_t collectOptionalData_PublicTransportContainer()
collectOptionalData_PublicTransportContainer Collect optional data for the PublicTransportContainer.
caBasicService(GeoNet *geonet, FakeGPSProvider *paramGPS, ParameterConfiguration *paramConf, FakeApplicationProvider *paramAppli, FakeCANProvider *paramCAN)
caBasicService caBasicService constructor.
void checkAndCollectDataForOptionalContainers(CAM_t *cam)
checkAndCollectDataForOptionalContainers Check and collect data for optional containers.
DangerousGoodsContainer_t collectOptionalData_DangerousGoodsContainer()
collectOptionalData_DangerousGoodsContainer Collect optional data for the DangerousGoodsContainer.
void setN_GenCam(quint16 n)
setN_GenCam Set the N_GenCam
quint16 T_GenCam() const
T_GenCam T_GenCam getter.
CAM_t setCAM(CAM_t c)
setCAM CAM copy.
void utInitialize()
utInitialize Initialize the CA Basic Service.
RSUContainerHighFrequency_t collectMandatoryData_RSUContainerHighFrequency()
collectMandatoryData_RSUContainerHighFrequency Collect mandatory data for the RSUContainerHighFrequen...
#define MAX_REFERENCEPOSITION
void setPreviousCAM(CAM_t c)
setPreviousCAM Set the previous CAM.