WSF
WsfScriptSimulationClass.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
12#ifndef WSFSCRIPTSIMULATIONCLASS_HPP
13#define WSFSCRIPTSIMULATIONCLASS_HPP
14
15#include "wsf_export.h"
16
17#include "UtScriptBasicTypes.hpp"
18
20class WSF_EXPORT WsfScriptSimulationClass : public UtScriptClass
21{
22public:
23 WsfScriptSimulationClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
24 ~WsfScriptSimulationClass() override = default;
25
26 // See the base class for a description of Create, Clone, and Destroy.
27
28 void* Create(const UtScriptContext& aInstance) override;
29 void Destroy(void* aObjectPtr) override;
30
31 // Simulation management methods
32
33 UT_DECLARE_SCRIPT_METHOD(ClockRate); // Get the simulation clock rate (for realtime)
34 UT_DECLARE_SCRIPT_METHOD(SetClockRate); // Set the simulation clock rate (for realtime)
35 UT_DECLARE_SCRIPT_METHOD(IsRealtime); // See if simulation is running in realtime mode
36 UT_DECLARE_SCRIPT_METHOD(PlatformCount); // Get the number of platforms in the platform list
37 UT_DECLARE_SCRIPT_METHOD(PlatformEntry); // Get the active platform entry
38 UT_DECLARE_SCRIPT_METHOD(FindPlatform_1); // FindPlatform(string)
39 UT_DECLARE_SCRIPT_METHOD(FindPlatform_2); // FindPlatform(index)
40 UT_DECLARE_SCRIPT_METHOD(AddPlatform); // AddPlatform(WsfPlatform)
41 UT_DECLARE_SCRIPT_METHOD(CreatePlatform); // CreatePlatform(string, string)
42 UT_DECLARE_SCRIPT_METHOD(DeletePlatform_1); // DeletePlatform(string)
43 UT_DECLARE_SCRIPT_METHOD(DeletePlatform_2); // DeletePlatform(index)
44 UT_DECLARE_SCRIPT_METHOD(PlatformName); // PlatformName(index)
45 UT_DECLARE_SCRIPT_METHOD(PlatformType); // PlatformType(index)
46 UT_DECLARE_SCRIPT_METHOD(SetStartDate); // SetStartDate(month, day, year)
47 UT_DECLARE_SCRIPT_METHOD(SetStartTime); // SetStartTime(seconds past midnight)
48 UT_DECLARE_SCRIPT_METHOD(SetStartEpoch); // SetStartEpoch(YYYYDDDD.F)
49 UT_DECLARE_SCRIPT_METHOD(RandomSeed); // Current random seed
50 UT_DECLARE_SCRIPT_METHOD(RunNumber); // Current run number
51 UT_DECLARE_SCRIPT_METHOD(GetAtmosphere); // Scenario-owned atmosphere
52 UT_DECLARE_SCRIPT_METHOD(Terminate); // End the simulation
56 UT_DECLARE_SCRIPT_METHOD(ExecuteAtTime_1);
57 UT_DECLARE_SCRIPT_METHOD(ExecuteAtTime_2);
58 UT_DECLARE_SCRIPT_METHOD(ExpandPathVariables);
61 UT_DECLARE_SCRIPT_METHOD(TestFeature); // NO_DOC | FOR_TEST_ONLY
62 UT_DECLARE_SCRIPT_METHOD(Zone); // NO_DOC | DEPRECATED - moved to WsfScriptZoneClass
63 UT_DECLARE_SCRIPT_METHOD(CreateGroup); // NO_DOC | DEPRECATED - moved to WsfScriptGroupClass
64 UT_DECLARE_SCRIPT_METHOD(Group); // NO_DOC | DEPRECATED - moved to WsfScriptGroupClass
65 UT_DECLARE_SCRIPT_METHOD(Groups); // NO_DOC | DEPRECATED - moved to WsfScriptGroupClass
66 UT_DECLARE_SCRIPT_METHOD(MainInputFiles);
67 UT_DECLARE_SCRIPT_METHOD(ClassificationString);
68 UT_DECLARE_SCRIPT_METHOD(ClassificationColor);
69 UT_DECLARE_SCRIPT_METHOD(Name); // Gets the name set by the simulation_name command
70};
71
72#endif
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
UT_DECLARE_SCRIPT_METHOD(DeletePlatform_1)
UT_DECLARE_SCRIPT_METHOD(SetClockRate)
UT_DECLARE_SCRIPT_METHOD(ExpandPathVariables)
UT_DECLARE_SCRIPT_METHOD(RunNumber)
UT_DECLARE_SCRIPT_METHOD(ClassificationColor)
UT_DECLARE_SCRIPT_METHOD(SetStartTime)
UT_DECLARE_SCRIPT_METHOD(Execute_1)
UT_DECLARE_SCRIPT_METHOD(SetEndTime)
UT_DECLARE_SCRIPT_METHOD(ExecuteAtTime_2)
UT_DECLARE_SCRIPT_METHOD(CreatePlatform)
UT_DECLARE_SCRIPT_METHOD(ClassificationString)
UT_DECLARE_SCRIPT_METHOD(DeletePlatform_2)
UT_DECLARE_SCRIPT_METHOD(RandomSeed)
UT_DECLARE_SCRIPT_METHOD(PlatformType)
UT_DECLARE_SCRIPT_METHOD(ClockRate)
UT_DECLARE_SCRIPT_METHOD(AddPlatform)
UT_DECLARE_SCRIPT_METHOD(TestFeature)
UT_DECLARE_SCRIPT_METHOD(SetStartEpoch)
UT_DECLARE_SCRIPT_METHOD(CreateGroup)
~WsfScriptSimulationClass() override=default
UT_DECLARE_SCRIPT_METHOD(GetAtmosphere)
UT_DECLARE_SCRIPT_METHOD(PlatformEntry)
UT_DECLARE_SCRIPT_METHOD(ScriptExists)
UT_DECLARE_SCRIPT_METHOD(ExecuteAtTime_1)
UT_DECLARE_SCRIPT_METHOD(MainInputFiles)
UT_DECLARE_SCRIPT_METHOD(IsRealtime)
UT_DECLARE_SCRIPT_METHOD(Terminate)
void Destroy(void *aObjectPtr) override
Definition WsfScriptSimulationClass.cpp:95
void * Create(const UtScriptContext &aInstance) override
Definition WsfScriptSimulationClass.cpp:88
UT_DECLARE_SCRIPT_METHOD(Execute_2)
UT_DECLARE_SCRIPT_METHOD(PlatformCount)
UT_DECLARE_SCRIPT_METHOD(SetStartDate)
UT_DECLARE_SCRIPT_METHOD(FindPlatform_2)
UT_DECLARE_SCRIPT_METHOD(PlatformName)
UT_DECLARE_SCRIPT_METHOD(FindPlatform_1)
WsfScriptSimulationClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfScriptSimulationClass.cpp:39
Copyrights Multiple, All Rights Reserved