WSF
WsfJTIDS_Terminal.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2016 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFJTIDS_TERMINAL_HPP
13#define WSFJTIDS_TERMINAL_HPP
14
15#include "wsf_mil_export.h"
16
17#include "UtCallback.hpp"
18#include "UtCallbackHolder.hpp"
19#include "WsfComm.hpp"
20#include "WsfCommMessage.hpp"
21
23
61
62class WSF_MIL_EXPORT WsfJTIDS_Terminal : public wsf::comm::Comm
63{
64public:
66 ~WsfJTIDS_Terminal() override;
67
70
72
73 wsf::comm::Comm* Clone() const override;
74 bool Initialize(double aSimTime) override;
75 void TurnOff(double aSimTime) override;
77
79
80 bool ReceiveSetup(double aSimTime, wsf::comm::Comm* aXmtrPtr, wsf::comm::Message& aMessage) override;
81
82 bool SendSetup(double aSimTime, wsf::comm::Message& aMessage, const wsf::comm::Address& aAddress) override;
83
84 bool ReceiveActions(double aSimTime, bool aReceiveStatus, Comm* aXmtrPtr, wsf::comm::Message& aMessage) override;
86
88
89 UtCallbackListN<void(double, const WsfMessage*, int, WsfJTIDS_SlotGroup*)> MessageSent;
91
92protected:
95
96 void PrintDebugReception(double aSimTime, const wsf::comm::Message& aMessage) const override;
97
98private:
100 WsfJTIDS_Terminal& operator=(const WsfJTIDS_Terminal& aRhs) = delete;
101
102 void HandleMessageSent(double aSimTime, const WsfMessage* aMessagePtr, int aSlotNumber, WsfJTIDS_SlotGroup* aSlotGroup);
103
104 UtCallbackHolder mCallbacks;
105};
106
107#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfJTIDS_SlotGroup.hpp:48
static WsfStringId GetJTIDSClassId()
Return the RTTI class ID.
Definition WsfJTIDS_Terminal.cpp:60
WsfJTIDS_Terminal(WsfScenario &aScenario)
Definition WsfJTIDS_Terminal.cpp:31
UtCallbackListN< void(double, const WsfMessage *, int, WsfJTIDS_SlotGroup *)> MessageSent
Definition WsfJTIDS_Terminal.hpp:89
A base class for messages sent among simulation communication objects, processors and sensors.
Definition WsfMessage.hpp:33
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
Definition WsfCommAddress.hpp:57
Definition WsfComm.hpp:43
virtual bool SendSetup(double aSimTime, Message &aMessage, const Address &aAddress)
Definition WsfComm.cpp:690
Comm * Clone() const override
Standard Clone() method.
Definition WsfComm.cpp:143
Comm(const WsfScenario &aScenario, CommType aCommType=cCT_XMT_RCV)
Definition WsfComm.cpp:37
bool Initialize(double aSimTime) override
Definition WsfComm.cpp:168
virtual bool ReceiveSetup(double aSimTime, Comm *aXmtrPtr, Message &aMessage)
Definition WsfComm.cpp:708
virtual void PrintDebugReception(double aSimTime, const Message &aMessage) const
Displays debug info associated with message reception.
Definition WsfComm.cpp:753
Comm & operator=(const Comm &aRhs)=delete
void TurnOff(double aSimTime) override
Definition WsfComm.cpp:377
virtual bool ReceiveActions(double aSimTime, bool aReceiveStatus, Comm *aXmtrPtr, Message &aMessage)
Definition WsfComm.cpp:731
Definition WsfCommMessage.hpp:51
Copyrights Multiple, All Rights Reserved