Files
qt5-legatus-legacy/Lts/Services/CentralEffectSimulation/ModuleTests/ces_tests_simulated_movement.h
T
2026-08-13 18:33:10 +02:00

80 lines
2.2 KiB
C++
Executable File

/**
* ModuleTests for Msg
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <CentralEffectSimulation/ces_dtc.h>
#include <CentralEffectSimulation/ces_ftc.h>
#include <CentralEffectSimulation/ces_ftc_types.h>
#include <CentralEffectSimulation/logger.h>
#include <ParticipantManagement/ppm_dts.h>
#include <DDS/DDSConnector/dds_connector.h>
#include <LtsCoordTrans/lts_coord_trans.h>
namespace CentralEffectSimulation
{
class cesTestsSimulatedMovement : public QObject
, protected CentralEffectSimulation::Interface::Ftc::SimulatedMovementModifyReplyHandler
, protected CentralEffectSimulation::Interface::Ftc::SimulatedMovementRemoveReplyHandler
{
Q_OBJECT
public:
explicit cesTestsSimulatedMovement(QObject *parent = nullptr);
~cesTestsSimulatedMovement();
bool init(int domainId, int exerciseId, int testId);
bool testsSuccessful() const
{
return m_bTestsSuccessful;
}
public Q_SLOTS:
void startTest();
protected Q_SLOTS:
void trySimulatedMovementModifyRequest();
void trySimulatedMovementRemoveRequest();
// ////////////////////////
// Participants
// ////////////////////////
void tryCreateParticipant();
void failExit();
void ExitSuccess();
protected:
private: // methods
void checkParticipantEvent();
void onSimulatedMovementModifyReply(const Core::FunctionReplyObject &replyObject) override final;
void onSimulatedMovementRemoveReply(const Core::FunctionReplyObject &replyObject) override final;
private:
Core::FunctionReplyObject fillFro(int participantId, bool bSuccess) const;
private:
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector42;
std::shared_ptr<CentralEffectSimulation::Interface::Dtc> m_cesDtc;
std::shared_ptr<CentralEffectSimulation::Interface::Ftc> m_cesFtc;
std::shared_ptr<ParticipantManagement::Interface::Dts> m_ppmDts;
bool m_bTestsSuccessful;
int m_participantId;
bool m_repeat;
LtsCoordTrans::UtmCoordinate m_housePos;
NGL::INGLLogger &m_logger;
int m_testId;
};
} // namespace CentralEffectSimulation