Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+79
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* 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
|
||||
Reference in new issue
Block a user