WSF
OutputRate.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// ****************************************************************************
12// Updated by Infoscitex, a DCS Company.
13// ****************************************************************************
14
15#ifndef OUTPUTRATE_HPP
16#define OUTPUTRATE_HPP
17
18#include <vector>
19
20class UtInput;
21class UtInputBlock;
22
23namespace engage
24{
25
28{
29public:
30 struct Item
31 {
32 Item(double aTime, double aPeriod)
33 : mTime(aTime)
34 , mPeriod(aPeriod)
35 {
36 }
37
38 double mTime;
39 double mPeriod;
40 };
41
44 void Append(double aTime, double aPeriod) { mRateTable.push_back(Item(aTime, aPeriod)); }
45
46 double GetPeriod(double aSimTime) const;
47
48 void ProcessInputBlock(UtInputBlock& aInputBlock);
49
50private:
51 std::vector<Item> mRateTable;
52};
53
54} // namespace engage
55
56#endif
Defines a table of simulation output rate as a function of simulation time.
Definition OutputRate.hpp:28
void ProcessInputBlock(UtInputBlock &aInputBlock)
Definition OutputRate.cpp:56
double GetPeriod(double aSimTime) const
Definition OutputRate.cpp:27
void Append(double aTime, double aPeriod)
Definition OutputRate.hpp:44
Definition ApplicationExtension.cpp:26
Definition OutputRate.hpp:31
double mPeriod
Definition OutputRate.hpp:39
double mTime
Definition OutputRate.hpp:38
Item(double aTime, double aPeriod)
Definition OutputRate.hpp:32
Copyrights Multiple, All Rights Reserved