|
WSF
|
#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"
Functions | |
| WsfPlatform * | getTopCommander (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) |
| bool checkDownCommandChain | ( | WsfPlatform * | platform, |
| PlatformCheck | check ) |
References checkDownCommandChain(), WsfComponentList::GetComponentCount(), and WsfComponentList::GetComponentEntry().
Referenced by checkDownCommandChain(), checkDownCommandChain(), checkDownCommandChain(), checkDownCommandChain(), checkFullCommandChain(), checkFullCommandChain(), UT_DEFINE_SCRIPT_METHOD(), and UT_DEFINE_SCRIPT_METHOD().
| bool checkDownCommandChain | ( | WsfPlatform * | platform, |
| PlatformCheck | check, | ||
| WsfStringId | commandChainName ) |
| bool checkDownCommandChain | ( | WsfPlatform * | platform, |
| WsfScriptContext & | context, | ||
| UtScriptClass * | platformClass, | ||
| UtScript * | check ) |
| 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 ) |
| bool checkUpCommandChain | ( | WsfPlatform * | platform, |
| PlatformCheck | check ) |
References checkUpCommandChain(), WsfCommandChain::GetCommander(), WsfComponentList::GetComponentCount(), WsfComponentList::GetComponentEntry(), and WsfObject::GetNameId().
Referenced by checkUpCommandChain(), checkUpCommandChain(), checkUpCommandChain(), checkUpCommandChain(), UT_DEFINE_SCRIPT_METHOD(), and UT_DEFINE_SCRIPT_METHOD().
| bool checkUpCommandChain | ( | WsfPlatform * | platform, |
| PlatformCheck | check, | ||
| WsfStringId | commandChainName ) |
| bool checkUpCommandChain | ( | WsfPlatform * | platform, |
| WsfScriptContext & | context, | ||
| UtScriptClass * | platformClass, | ||
| UtScript * | check ) |
| bool checkUpCommandChain | ( | WsfPlatform * | platform, |
| WsfScriptContext & | context, | ||
| UtScriptClass * | platformClass, | ||
| UtScript * | check, | ||
| WsfStringId | commandChainName ) |
| void ConvertMessagesToScript | ( | const Messages & | aMessages, |
| UtScriptData & | aReturnVal, | ||
| UtScriptContext & | aContext, | ||
| UtScriptClass * | aReturnClassPtr ) |
References ScenarioAnalyzerMessage::cSCRIPT_CLASS_NAME.
Referenced by UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), UT_DEFINE_SCRIPT_METHOD(), and UT_DEFINE_SCRIPT_METHOD().
| WsfPlatform * getTopCommander | ( | WsfStringId | commandChainName, |
| WsfPlatform * | platform ) |
References WsfComponentList::GetComponent(), and WsfObject::GetNameId().
Referenced by checkFullCommandChain(), checkFullCommandChain(), and UT_DEFINE_SCRIPT_METHOD().
| void RegisterUtilsScriptTypes | ( | WsfApplication & | application | ) |
References WsfApplication::GetScriptTypes().
Referenced by ScenarioAnalyzerRegisterScriptTypes().
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| CheckDownAllCommandChains | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| CheckDownOneCommandChain | , | ||
| 3 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string | , | ||
| string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| CheckFullCommandChain | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| CheckPlatform | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| CheckUpAllCommandChains | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| CheckUpOneCommandChain | , | ||
| 3 | , | ||
| "bool" | , | ||
| " | WsfPlatform, | ||
| string | , | ||
| string" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| GetPlatformPartsDownAllCommandChains | , | ||
| 2 | , | ||
| "Array<WsfPlatformPart>" | , | ||
| " | WsfPlatform, | ||
| string" | ) |
References classPtr, getAllPartsDownCommandChain(), WsfObject::IsA_TypeOf(), and platformPtr.
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| GetPlatformPartsDownOneCommandChain | , | ||
| 3 | , | ||
| "Array<WsfPlatformPart>" | , | ||
| " | WsfPlatform, | ||
| string | , | ||
| string" | ) |
References classPtr, getAllPartsDownCommandChain(), WsfNamed::GetName(), WsfObject::IsA_TypeOf(), and platformPtr.
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| GetTopCommander | , | ||
| 2 | , | ||
| "WsfPlatform" | , | ||
| " | string, | ||
| WsfPlatform" | ) |
References WsfNamed::GetName(), WsfNamed::GetNameId(), getTopCommander(), and platformPtr.
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| InternallyLinkedPlatformParts | , | ||
| 2 | , | ||
| "Array<WsfPlatformPart>" | , | ||
| " | WsfPlatformPart, | ||
| string" | ) |
References classPtr, getInternallyLinkedPlatformParts(), and WsfObject::IsA_TypeOf().
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| LinkedAndReachablePlatformParts | , | ||
| 2 | , | ||
| "Array<WsfPlatformPart>" | , | ||
| " | WsfPlatformPart, | ||
| string" | ) |
References classPtr, getLinkedAndReachablePlatformParts(), and WsfObject::IsA_TypeOf().
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| LinkedAndReachablePlatformPartsChooseProcs | , | ||
| 4 | , | ||
| "Array<WsfPlatformPart>" | , | ||
| " | WsfPlatformPart, | ||
| string | , | ||
| Array< string > | , | ||
| bool" | ) |
References classPtr, getLinkedAndReachablePlatformParts(), and WsfObject::IsA_TypeOf().
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| SendPassMessage | , | ||
| 2 | , | ||
| "void" | , | ||
| " | string, | ||
| string" | ) |
References ScenarioAnalyzerMessage::SetSuccessful(), and ScenarioAnalyzerMessage::Write().
| UT_DEFINE_SCRIPT_METHOD | ( | ScenarioAnalyzerUtilsScriptClass | , |
| ScenarioAnalyzerUtils | , | ||
| SendResultMessage | , | ||
| 4 | , | ||
| "void" | , | ||
| " | string, | ||
| string | , | ||
| 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" | ) |
References ScenarioAnalyzerMessage::Write().