WSF
ScenarioAnalyzerUtilities.cpp File Reference
#include <iostream>
#include <string>
#include <vector>
#include "UtMemory.hpp"
#include "UtPlugin.hpp"
#include "UtScriptClass.hpp"
#include "UtScriptClassDefine.hpp"
#include "UtScriptData.hpp"
#include "UtScriptTypes.hpp"
#include "WsfApplication.hpp"
#include "WsfComm.hpp"
#include "WsfCommAddress.hpp"
#include "WsfCommandChain.hpp"
#include "WsfExternalLinks.hpp"
#include "WsfInternalLinks.hpp"
#include "WsfGroupManager.hpp"
#include "WsfLinkedProcessor.hpp"
#include "WsfPlatform.hpp"
#include "WsfPlatformPart.hpp"
#include "script/WsfScriptContext.hpp"
#include "WsfSensor.hpp"
#include "WsfSimulation.hpp"
#include "WsfStringId.hpp"
#include "WsfTrackProcessor.hpp"
#include "ScenarioAnalyzerUtilities.hpp"
Include dependency graph for ScenarioAnalyzerUtilities.cpp:

Functions

WsfPlatformgetTopCommander (WsfStringId commandChainName, WsfPlatform *platform)
bool checkUpCommandChain (WsfPlatform *platform, PlatformCheck check)
bool checkUpCommandChain (WsfPlatform *platform, WsfScriptContext &context, UtScriptClass *platformClass, UtScript *check)
bool checkUpCommandChain (WsfPlatform *platform, PlatformCheck check, WsfStringId commandChainName)
bool checkUpCommandChain (WsfPlatform *platform, WsfScriptContext &context, UtScriptClass *platformClass, UtScript *check, WsfStringId commandChainName)
bool checkDownCommandChain (WsfPlatform *platform, PlatformCheck check)
bool checkDownCommandChain (WsfPlatform *platform, WsfScriptContext &context, UtScriptClass *platformClass, UtScript *check)
bool checkDownCommandChain (WsfPlatform *platform, PlatformCheck check, WsfStringId commandChainName)
bool checkDownCommandChain (WsfPlatform *platform, WsfScriptContext &context, UtScriptClass *platformClass, UtScript *check, WsfStringId commandChainName)
bool checkFullCommandChain (WsfPlatform *platform, PlatformCheck check)
bool checkFullCommandChain (WsfPlatform *platform, WsfScriptContext &context, UtScriptClass *platformClass, UtScript *check)
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, SendResultMessage, 4, "void", "string, string, string, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, SendPassMessage, 2, "void", "string, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, SendResultMessageWithLinks, 6, "void", "string, string, string, string, Array<string>, Array<string>")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, SendSessionNoteMessage, 2, "void", "string, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, GetTopCommander, 2, "WsfPlatform", "string, WsfPlatform")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, CheckPlatform, 2, "bool", "WsfPlatform, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, CheckUpOneCommandChain, 3, "bool", "WsfPlatform, string, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, CheckUpAllCommandChains, 2, "bool", "WsfPlatform, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, CheckDownOneCommandChain, 3, "bool", "WsfPlatform, string, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, CheckDownAllCommandChains, 2, "bool", "WsfPlatform, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, CheckFullCommandChain, 2, "bool", "WsfPlatform, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, GetPlatformPartsDownAllCommandChains, 2, "Array<WsfPlatformPart>", "WsfPlatform, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, GetPlatformPartsDownOneCommandChain, 3, "Array<WsfPlatformPart>", "WsfPlatform, string, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, InternallyLinkedPlatformParts, 2, "Array<WsfPlatformPart>", "WsfPlatformPart, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, LinkedAndReachablePlatformParts, 2, "Array<WsfPlatformPart>", "WsfPlatformPart, string")
 UT_DEFINE_SCRIPT_METHOD (ScenarioAnalyzerUtilsScriptClass, ScenarioAnalyzerUtils, LinkedAndReachablePlatformPartsChooseProcs, 4, "Array<WsfPlatformPart>", "WsfPlatformPart, string, Array<string>, bool")
void ConvertMessagesToScript (const Messages &aMessages, UtScriptData &aReturnVal, UtScriptContext &aContext, UtScriptClass *aReturnClassPtr)
void RegisterUtilsScriptTypes (WsfApplication &application)

Function Documentation

◆ checkDownCommandChain() [1/4]

◆ checkDownCommandChain() [2/4]

bool checkDownCommandChain ( WsfPlatform * platform,
PlatformCheck check,
WsfStringId commandChainName )

◆ checkDownCommandChain() [3/4]

bool checkDownCommandChain ( WsfPlatform * platform,
WsfScriptContext & context,
UtScriptClass * platformClass,
UtScript * check )

◆ checkDownCommandChain() [4/4]

bool checkDownCommandChain ( WsfPlatform * platform,
WsfScriptContext & context,
UtScriptClass * platformClass,
UtScript * check,
WsfStringId commandChainName )

◆ checkFullCommandChain() [1/2]

◆ checkFullCommandChain() [2/2]

bool checkFullCommandChain ( WsfPlatform * platform,
WsfScriptContext & context,
UtScriptClass * platformClass,
UtScript * check )

◆ checkUpCommandChain() [1/4]

◆ checkUpCommandChain() [2/4]

◆ checkUpCommandChain() [3/4]

◆ checkUpCommandChain() [4/4]

bool checkUpCommandChain ( WsfPlatform * platform,
WsfScriptContext & context,
UtScriptClass * platformClass,
UtScript * check,
WsfStringId commandChainName )

◆ ConvertMessagesToScript()

◆ getTopCommander()

◆ RegisterUtilsScriptTypes()

void RegisterUtilsScriptTypes ( WsfApplication & application)

◆ UT_DEFINE_SCRIPT_METHOD() [1/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
CheckDownAllCommandChains ,
2 ,
"bool" ,
" WsfPlatform,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [2/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
CheckDownOneCommandChain ,
3 ,
"bool" ,
" WsfPlatform,
string ,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [3/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
CheckFullCommandChain ,
2 ,
"bool" ,
" WsfPlatform,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [4/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
CheckPlatform ,
2 ,
"bool" ,
" WsfPlatform,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [5/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
CheckUpAllCommandChains ,
2 ,
"bool" ,
" WsfPlatform,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [6/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
CheckUpOneCommandChain ,
3 ,
"bool" ,
" WsfPlatform,
string ,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [7/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
GetPlatformPartsDownAllCommandChains ,
2 ,
"Array<WsfPlatformPart>" ,
" WsfPlatform,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [8/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
GetPlatformPartsDownOneCommandChain ,
3 ,
"Array<WsfPlatformPart>" ,
" WsfPlatform,
string ,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [9/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
GetTopCommander ,
2 ,
"WsfPlatform" ,
" string,
WsfPlatform"  )

◆ UT_DEFINE_SCRIPT_METHOD() [10/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
InternallyLinkedPlatformParts ,
2 ,
"Array<WsfPlatformPart>" ,
" WsfPlatformPart,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [11/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
LinkedAndReachablePlatformParts ,
2 ,
"Array<WsfPlatformPart>" ,
" WsfPlatformPart,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [12/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
LinkedAndReachablePlatformPartsChooseProcs ,
4 ,
"Array<WsfPlatformPart>" ,
" WsfPlatformPart,
string ,
Array< string > ,
bool"  )

◆ UT_DEFINE_SCRIPT_METHOD() [13/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
SendPassMessage ,
2 ,
"void" ,
" string,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [14/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
SendResultMessage ,
4 ,
"void" ,
" string,
string ,
string ,
string"  )

◆ UT_DEFINE_SCRIPT_METHOD() [15/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
SendResultMessageWithLinks ,
6 ,
"void" ,
" string,
string ,
string ,
string ,
Array< string > ,
Array< string >"  )

◆ UT_DEFINE_SCRIPT_METHOD() [16/16]

UT_DEFINE_SCRIPT_METHOD ( ScenarioAnalyzerUtilsScriptClass ,
ScenarioAnalyzerUtils ,
SendSessionNoteMessage ,
2 ,
"void" ,
" string,
string"  )
Copyrights Multiple, All Rights Reserved