WSF
WsfSA_Module.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 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 WSFSA_MODULE_HPP
13#define WSFSA_MODULE_HPP
14
15class WsfPlatform;
16class WsfSimulation;
17
18#include "WsfSA_Processor.hpp"
19
20// Base class module for all other WsfSA classes that need access to data
22{
23public:
25
26 ~WsfSA_Module() = default;
27
31 virtual void Update(double aSimTime);
32
35
40 void SetSAP(WsfSA_Processor* aSA_ProcPtr, WsfSA_Processor::PerceiveData* aDataPtr);
41
43 WsfPlatform* GetPlatform() const;
44
47
50
51protected:
52 WsfSA_Module(const WsfSA_Module& aSrc);
53
55
58};
59
60#endif
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Definition WsfSA_Module.hpp:22
~WsfSA_Module()=default
WsfSA_Processor::PerceiveData * mDataPtr
Perceived data container used by multiple SAP classes and lives in the SA Processor.
Definition WsfSA_Module.hpp:56
WsfSA_Processor * mSA_ProcessorPtr
Pointer to the owning processor for this module.
Definition WsfSA_Module.hpp:54
WsfSA_Processor * GetSAP() const
Return a pointer to the SA Processor that owns this module.
Definition WsfSA_Module.hpp:34
void SetSAP(WsfSA_Processor *aSA_ProcPtr, WsfSA_Processor::PerceiveData *aDataPtr)
Sets the SA Processor that owns this module.
Definition WsfSA_Module.cpp:31
WsfSA_Module(WsfSA_Processor *aSA_ProcPtr, WsfSA_Processor::PerceiveData *aDataPtr)
Definition WsfSA_Module.cpp:14
WsfScriptContext & GetScriptContext() const
Return a reference to the script context.
Definition WsfSA_Module.cpp:42
WsfSimulation * GetSimulation() const
Return a pointer to the simulation.
Definition WsfSA_Module.cpp:47
WsfPlatform * GetPlatform() const
Return a pointer to the platform.
Definition WsfSA_Module.cpp:37
virtual void Update(double aSimTime)
Update this module.
Definition WsfSA_Module.cpp:26
Definition WsfSA_Processor.hpp:60
Definition WsfScriptContext.hpp:71
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Definition WsfSA_Processor.hpp:86
Copyrights Multiple, All Rights Reserved