|
WSF
|
#include "script/WsfScriptSimulationClass.hpp"#include "UtInput.hpp"#include "UtLog.hpp"#include "UtMath.hpp"#include "UtMemory.hpp"#include "UtRandom.hpp"#include "UtScriptAtmosphere.hpp"#include "UtScriptColor.hpp"#include "WsfApplication.hpp"#include "WsfCommandChain.hpp"#include "WsfDateTime.hpp"#include "WsfGeoPoint.hpp"#include "WsfGroup.hpp"#include "WsfGroupManager.hpp"#include "WsfPlatform.hpp"#include "WsfScenario.hpp"#include "WsfSimulation.hpp"#include "WsfWaypoint.hpp"#include "WsfWaypointMover.hpp"#include "WsfZoneDefinition.hpp"#include "WsfZoneTypes.hpp"#include "script/WsfScriptContext.hpp"#include "script/WsfScriptDefs.hpp"#include "script/WsfScriptEvent.hpp"#include "script/WsfScriptManager.hpp"
Functions | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ClockRate, 0, "double", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, SetClockRate, 1, "void", "double") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, IsRealtime, 0, "bool", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, PlatformCount, 0, "int", "") | |
| int count = PlatformCount(); | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, PlatformEntry, 1, "WsfPlatform", "int") | |
| WsfPlatform platform = PlatformEntry(int aPlatformIndex);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, FindPlatform_1, 1, "WsfPlatform", "string") | |
| WsfPlatform platform = FindPlatform(string aPlatformName);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, FindPlatform_2, 1, "WsfPlatform", "int") | |
| WsfPlatform platform = FindPlatform(int aPlatformIndex);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, AddPlatform, 2, "WsfPlatform", "WsfPlatform, string") | |
| bool AddPlatform(WsfPlatform aPlatform) | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, CreatePlatform, 1, "WsfPlatform", "string") | |
| CreatePlatform(string aPlatformName, string aPlatformType);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, DeletePlatform_1, 1, "void", "string") | |
| DeletePlatform(string aPlatformName);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, DeletePlatform_2, 1, "void", "int") | |
| DeletePlatform(int aPlatformIndex);. | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, PlatformName, 1, "string", "int") | |
| string platformName = PlatformName(int aPlatformIndex); | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, PlatformType, 1, "string", "int") | |
| string platformType = PlatformType(int aPlatformIndex); | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, RandomSeed, 0, "int", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, RunNumber, 0, "int", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, SetStartDate, 3, "void", "int, int, int") | |
| SetStartDate(int aYear, int aMonth, int aDay). | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, SetStartTime, 3, "void", "int, int, int") | |
| SetStartTime(int aHour, int aMinute, int aSecond). | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, SetStartEpoch, 1, "void", "double") | |
| SetStartEpoch(double aYYYYDDD.F). | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, GetAtmosphere, 0, "Atmosphere", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, Terminate, 0, "void", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ScriptExists, 1, "bool", "string") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, Execute_1, 1, "Object", "string") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, Execute_2, 2, "Object", "string,Array<Object>") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ExecuteAtTime_1, 2, "bool", "double, string") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ExecuteAtTime_2, 3, "bool", "double, string, Array<Object>") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ExpandPathVariables, 1, "string", "string") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, EndTime, 0, "double", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, SetEndTime, 1, "void", "double") | |
| std::string | tstFeature (aVarArgs[0].GetString()) |
| for (const auto &feature :features) | |
| aReturnVal | SetPointer (new UtScriptRef(zonePtr, aReturnClassPtr, UtScriptRef::cDONT_MANAGE)) |
| aReturnVal | SetPointer (new UtScriptRef(groupPtr, aReturnClassPtr)) |
| for (const auto &i :groupsList) | |
| aReturnVal | SetPointer (new UtScriptRef(resultVecPtr, aReturnClassPtr, UtScriptRef::cMANAGE)) |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, MainInputFiles, 0, "Array<string>", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ClassificationString, 0, "string", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, ClassificationColor, 0, "Color", "") | |
| UT_DEFINE_SCRIPT_METHOD (WsfScriptSimulationClass, WsfSimulation, Name, 0, "string", "") | |
Variables | |
| const std::vector< WsfApplication::Feature > & | features = SCENARIO->GetApplication().GetRegisteredFeatures() |
| const WsfGroupManager::GroupMap & | groupsList = SIMULATION->GetGroupManager().GetGroups() |
| for | ( | const auto &feature :features | ) |
References features, and tstFeature().
Referenced by WsfL16::Messages::InitialBase::InitialBase(), wsf::comm::Message::Message(), wsf::six_dof::Mover::Mover(), P6DofPropulsionSystem::P6DofPropulsionSystem(), wsf::six_dof::PropulsionSystem::PropulsionSystem(), wsf::six_dof::RigidBodyFlightControlSystem::RigidBodyFlightControlSystem(), wsf::six_dof::Sequencer::Sequencer(), WsfScriptStateMachine::State::State(), WsfAdvancedBehaviorTreeCompositeNode::WsfAdvancedBehaviorTreeCompositeNode(), WsfEventPipeInterface::WsfEventPipeInterface(), WsfSensorModeList::WsfSensorModeList(), WsfSignatureList::WsfSignatureList(), and WsfZoneSet::WsfZoneSet().
| for | ( | const auto &i :groupsList | ) |
References groupsList.
| aReturnVal SetPointer | ( | new | UtScriptRefgroupPtr, aReturnClassPtr | ) |
References groupPtr.
| aReturnVal SetPointer | ( | new | UtScriptRefresultVecPtr, aReturnClassPtr, UtScriptRef::cMANAGE | ) |
| aReturnVal SetPointer | ( | new | UtScriptRefzonePtr, aReturnClassPtr, UtScriptRef::cDONT_MANAGE | ) |
| std::string tstFeature | ( | aVarArgs. | GetString()[0] | ) |
Referenced by for().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| AddPlatform | , | ||
| 2 | , | ||
| "WsfPlatform" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
bool AddPlatform(WsfPlatform aPlatform)
References WsfScriptContext::GetTIME_NOW(), platformPtr, simTime, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ClassificationColor | , | ||
| 0 | , | ||
| "Color" | , | ||
| "" | ) |
References SCENARIO.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ClassificationString | , | ||
| 0 | , | ||
| "string" | , | ||
| "" | ) |
References SCENARIO.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ClockRate | , | ||
| 0 | , | ||
| "double" | , | ||
| "" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| CreatePlatform | , | ||
| 1 | , | ||
| "WsfPlatform" | , | ||
| "string" | ) |
CreatePlatform(string aPlatformName, string aPlatformType);.
References WsfScriptContext::GetSCENARIO(), platformPtr, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| DeletePlatform_1 | , | ||
| 1 | , | ||
| "void" | , | ||
| "string" | ) |
DeletePlatform(string aPlatformName);.
References WsfSimulation::DeletePlatform(), WsfSimulation::GetPlatformByName(), WsfScriptContext::GetTIME_NOW(), platformPtr, simTime, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| DeletePlatform_2 | , | ||
| 1 | , | ||
| "void" | , | ||
| "int" | ) |
DeletePlatform(int aPlatformIndex);.
References WsfScriptContext::GetTIME_NOW(), platformPtr, simTime, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| EndTime | , | ||
| 0 | , | ||
| "double" | , | ||
| "" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| Execute_1 | , | ||
| 1 | , | ||
| "Object" | , | ||
| "string" | ) |
References WsfScriptContext::ExecuteScript(), WsfScriptContext::GetTIME_NOW(), simTime, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| Execute_2 | , | ||
| 2 | , | ||
| "Object" | , | ||
| " | string, | ||
| Array< Object >" | ) |
References WsfScriptContext::ExecuteScript(), WsfScriptContext::GetTIME_NOW(), simTime, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ExecuteAtTime_1 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " double | , | ||
| string" | ) |
References WsfScriptContext::GetSIMULATION().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ExecuteAtTime_2 | , | ||
| 3 | , | ||
| "bool" | , | ||
| " double | , | ||
| string | , | ||
| Array< Object >" | ) |
References WsfScriptContext::GetSIMULATION().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ExpandPathVariables | , | ||
| 1 | , | ||
| "string" | , | ||
| "string" | ) |
References SCENARIO.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| FindPlatform_1 | , | ||
| 1 | , | ||
| "WsfPlatform" | , | ||
| "string" | ) |
WsfPlatform platform = FindPlatform(string aPlatformName);.
References platformPtr, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| FindPlatform_2 | , | ||
| 1 | , | ||
| "WsfPlatform" | , | ||
| "int" | ) |
WsfPlatform platform = FindPlatform(int aPlatformIndex);.
References platformPtr, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| GetAtmosphere | , | ||
| 0 | , | ||
| "Atmosphere" | , | ||
| "" | ) |
References SCENARIO.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| IsRealtime | , | ||
| 0 | , | ||
| "bool" | , | ||
| "" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| MainInputFiles | , | ||
| 0 | , | ||
| "Array<string>" | , | ||
| "" | ) |
References SCENARIO.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| Name | , | ||
| 0 | , | ||
| "string" | , | ||
| "" | ) |
References SCENARIO.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| PlatformCount | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
int count = PlatformCount();
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| PlatformEntry | , | ||
| 1 | , | ||
| "WsfPlatform" | , | ||
| "int" | ) |
WsfPlatform platform = PlatformEntry(int aPlatformIndex);.
References WsfSimulation::GetPlatformCount(), WsfSimulation::GetPlatformEntry(), platformPtr, and SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| PlatformName | , | ||
| 1 | , | ||
| "string" | , | ||
| "int" | ) |
string platformName = PlatformName(int aPlatformIndex);
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| PlatformType | , | ||
| 1 | , | ||
| "string" | , | ||
| "int" | ) |
string platformType = PlatformType(int aPlatformIndex);
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| RandomSeed | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| RunNumber | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| ScriptExists | , | ||
| 1 | , | ||
| "bool" | , | ||
| "string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| SetClockRate | , | ||
| 1 | , | ||
| "void" | , | ||
| "double" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| SetEndTime | , | ||
| 1 | , | ||
| "void" | , | ||
| "double" | ) |
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| SetStartDate | , | ||
| 3 | , | ||
| "void" | , | ||
| " int | , | ||
| int | , | ||
| int" | ) |
SetStartDate(int aYear, int aMonth, int aDay).
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| SetStartEpoch | , | ||
| 1 | , | ||
| "void" | , | ||
| "double" | ) |
SetStartEpoch(double aYYYYDDD.F).
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| SetStartTime | , | ||
| 3 | , | ||
| "void" | , | ||
| " int | , | ||
| int | , | ||
| int" | ) |
SetStartTime(int aHour, int aMinute, int aSecond).
References SIMULATION.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptSimulationClass | , |
| WsfSimulation | , | ||
| Terminate | , | ||
| 0 | , | ||
| "void" | , | ||
| "" | ) |
References SIMULATION.
| const std::vector<WsfApplication::Feature>& features = SCENARIO->GetApplication().GetRegisteredFeatures() |
Referenced by for().
| const WsfGroupManager::GroupMap& groupsList = SIMULATION->GetGroupManager().GetGroups() |
Referenced by for(), and UT_DEFINE_SCRIPT_METHOD().