WSF
WsfCommComponentHW_JTIDS.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 2017 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 WSFCOMMCOMPONENTHWJTIDS_HPP
13#define WSFCOMMCOMPONENTHWJTIDS_HPP
14
15#include "wsf_mil_export.h"
16
17#include <memory>
18
21
22// Forward declarations
23class WsfCommResult;
24
25namespace wsf
26{
27namespace comm
28{
29
31class WSF_MIL_EXPORT ComponentHW_JTIDS : public ComponentHW
32{
33public:
34 static ComponentHW_JTIDS* Find(const Comm& aParent);
35 static ComponentHW_JTIDS* FindOrCreate(Comm& aParent);
36
38 ~ComponentHW_JTIDS() override = default;
39
41
42 WsfComponent* CloneComponent() const override;
43 WsfStringId GetComponentName() const override;
44 const int* GetComponentRoles() const override;
45 void* QueryInterface(int aRole) override;
47
49
50 bool Initialize(double aSimTime) override;
51 bool ProcessInput(UtInput& aInput) override;
53
54 bool CanReceiveFrom(double aSimTime, Comm* aXmtrPtr, Result& aResult) override;
55
56protected:
57 ComponentHW_JTIDS(const ComponentHW_JTIDS& aSrc) = default;
59
60private:
61 // The maximum range between the receiver and transmitter.
62 double mMaximumRange;
63};
64
65} // namespace comm
66} // namespace wsf
67
69
70#endif
#define WSF_DECLARE_COMPONENT_ROLE_TYPE(TYPE, ROLE)
Definition WsfComponentRoles.hpp:44
@ cWSF_COMPONENT_COMM_HW_JTIDS
Definition WsfMilComponentRoles.hpp:32
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
Definition WsfComponent.hpp:39
Definition WsfComm.hpp:43
The hardware component that can be attached to all comm systems.
Definition WsfCommComponentHW_JTIDS.hpp:32
WsfComponent * CloneComponent() const override
Definition WsfCommComponentHW_JTIDS.cpp:67
ComponentHW_JTIDS & operator=(const ComponentHW_JTIDS &aRhs)=delete
static ComponentHW_JTIDS * Find(const Comm &aParent)
Find the instance of this component attached to the specified processor.
Definition WsfCommComponentHW_JTIDS.cpp:27
bool Initialize(double aSimTime) override
Definition WsfCommComponentHW_JTIDS.cpp:105
bool ProcessInput(UtInput &aInput) override
Definition WsfCommComponentHW_JTIDS.cpp:120
ComponentHW_JTIDS()
Definition WsfCommComponentHW_JTIDS.cpp:49
bool CanReceiveFrom(double aSimTime, Comm *aXmtrPtr, Result &aResult) override
Definition WsfCommComponentHW_JTIDS.cpp:138
~ComponentHW_JTIDS() override=default
const int * GetComponentRoles() const override
Definition WsfCommComponentHW_JTIDS.cpp:79
static ComponentHW_JTIDS * FindOrCreate(Comm &aParent)
Definition WsfCommComponentHW_JTIDS.cpp:37
ComponentHW_JTIDS(const ComponentHW_JTIDS &aSrc)=default
WsfStringId GetComponentName() const override
Definition WsfCommComponentHW_JTIDS.cpp:73
void * QueryInterface(int aRole) override
Definition WsfCommComponentHW_JTIDS.cpp:86
ComponentHW()
Definition WsfCommComponentHW.cpp:56
Definition WsfCommResult.hpp:34
Definition WsfComm.cpp:34
Function definitions for those who need run-time access to the version.
Definition WsfComm.cpp:32
Copyrights Multiple, All Rights Reserved