WSF
PPLI_Part.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 2003-2015 The Boeing 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#ifndef L16_PPLI_PART_HPP
12#define L16_PPLI_PART_HPP
13
14#include "ComputerPart.hpp"
15#include "InputEnumeration.hpp"
16class WsfScenario;
17
18namespace WsfL16
19{
20class PPLI_Part : public ComputerPart
21{
22public:
23 PPLI_Part(WsfScenario& aScenario);
24 PPLI_Part(const PPLI_Part& aSrc);
25
26 ComputerPart* Clone() const override;
27
28 bool Initialize(double aSimTime, ComputerProcessor& aComputer) override;
29 bool ProcessInput(UtInput& aInput) override;
31 void HandleReceive(double aSimTime, const Messages::InitialBase& aMessage) override;
33 void HandleSend(double aSimTime) override;
34
35private:
36 void SendPPLI(double aSimTime);
37
38 void SendAirPPLI(double aSimTime, WsfPlatform& aPlatform);
39
40 void SendSurfacePPLI(double aSimTime, WsfPlatform& aPlatform);
41 void SendSubsurfacePPLI(double aSimTime, WsfPlatform& aPlatform);
42 void SendLandPPLI(double aSimTime, WsfPlatform& aPlatform);
43 void SendLandPointPPLI(double aSimTime, WsfPlatform& aPlatform);
44
45 enum Category
46 {
47 cAIR,
48 cSURFACE,
49 cSUBSURFACE,
50 cLAND,
51 cPOINT,
52 cUNSET
53 };
54
55 enum LandSubcategory
56 {
57 c_POINT,
58 c_LAND
59 };
60
61 int mCategory;
62 InputEnumeration mCategoryInput;
63 int mLandSubcategory;
64 InputEnumeration mLandSubcategoryInput;
65};
66} // namespace WsfL16
67
68#endif
Reads values from UtInput to set an enumeration.
Definition InputEnumeration.hpp:22
ComputerPart(WsfScenario &aScenario, const std::string &aClassName="WsfProcessor")
Definition ComputerPart.cpp:41
Sends and receives link16 messages.
Definition ComputerProcessor.hpp:50
void HandleSend(double aSimTime) override
This method is called when the a slot is open.
Definition PPLI_Part.cpp:111
bool ProcessInput(UtInput &aInput) override
Definition PPLI_Part.cpp:90
bool Initialize(double aSimTime, ComputerProcessor &aComputer) override
Definition PPLI_Part.cpp:55
ComputerPart * Clone() const override
Definition PPLI_Part.cpp:50
PPLI_Part(WsfScenario &aScenario)
Definition PPLI_Part.cpp:27
void HandleReceive(double aSimTime, const Messages::InitialBase &aMessage) override
Handle an incoming message.
Definition PPLI_Part.cpp:109
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
Contains the data required to create a simulation, and acts as the entry point for input file process...
Definition WsfScenario.hpp:111
This file should be included prior to defining a message. Currently there is a limit of 32 fields per...
Definition AllMessages.hpp:55
Copyrights Multiple, All Rights Reserved