WSF
WsfPlatformAvailability.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 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 WSFPLATFORMAVAILABILITY_HPP
12#define WSFPLATFORMAVAILABILITY_HPP
13
14#include "wsf_export.h"
15
16#include <map>
17#include <vector>
18
19#include "WsfStringId.hpp"
20class UtInput;
21class WsfPlatform;
22class WsfSimulation;
23
27{
28public:
30 bool PlatformIsAvailable(WsfPlatform* aPlatformPtr, WsfSimulation& aSimulation) const;
31
32 bool ProcessInput(UtInput& aInput);
33
34 void SetDefaultAvailability(double aProbability) { mDefaultAvailability = aProbability; }
35
36 void SetAvailabilityByName(WsfStringId aName, double aAvailability) { mAvailabilityByName[aName] = aAvailability; }
37
38private:
40
41
42 std::map<WsfStringId, double> mAvailabilityByName;
43
45 std::map<WsfStringId, double> mAvailabilityByType;
46
48 std::map<WsfStringId, double> mAvailabilityByCategory;
49
51 std::vector<WsfStringId> mExclusionZones;
52
54 std::vector<WsfStringId> mInclusionZones;
55
57 double mDefaultAvailability;
59};
60#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
void SetDefaultAvailability(double aProbability)
Definition WsfPlatformAvailability.hpp:34
bool ProcessInput(UtInput &aInput)
Definition WsfPlatformAvailability.cpp:47
bool PlatformIsAvailable(WsfPlatform *aPlatformPtr, WsfSimulation &aSimulation) const
Definition WsfPlatformAvailability.cpp:125
void SetAvailabilityByName(WsfStringId aName, double aAvailability)
Definition WsfPlatformAvailability.hpp:36
WsfPlatformAvailability()
Definition WsfPlatformAvailability.cpp:41
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved