41 lines
1.1 KiB
C++
Executable File
41 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* The ProxyEmulator class emulates FTs of the TetraRadio Proxy to send position data
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hannes Baeuerle, SLSE, 2016-08-09
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QtCore/QObject>
|
|
#include <QtCore/QVector>
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <TrainingAreaBase/tab_dts.h>
|
|
#include <NGLLogger/INGLLogger.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
|
|
namespace VulnerabilityStateGenerator
|
|
{
|
|
class ProxyEmulator
|
|
: public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ProxyEmulator(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector, QObject *parent = nullptr);
|
|
|
|
bool init();
|
|
|
|
void giveInitState(const QMap<qint32, ParticipantManagement::Participant> &participants);
|
|
void publishNewState(ProjectDataManagement::VulnerabilityState newState, ParticipantManagement::Participant participant);
|
|
|
|
private: // methods
|
|
|
|
private: // attributes
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<TrainingAreaBase::Interface::Dts> m_tabDts;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
}
|