|
WSF
|
#include "script/WsfScriptCommClass.hpp"#include "UtLog.hpp"#include "WsfComm.hpp"#include "WsfCommAddress.hpp"#include "WsfCommComponentHW.hpp"#include "WsfCommGraph.hpp"#include "WsfCommMedium.hpp"#include "WsfCommMediumContainer.hpp"#include "WsfCommNetworkLayer.hpp"#include "WsfCommNetworkManager.hpp"#include "WsfCommProtocolInterface.hpp"#include "WsfCommRouter.hpp"#include "WsfCommTypes.hpp"#include "WsfCommUtil.hpp"#include "WsfCommandChain.hpp"#include "WsfEM_Rcvr.hpp"#include "WsfEM_Xmtr.hpp"#include "WsfPlatform.hpp"#include "WsfSimulation.hpp"#include "WsfStringId.hpp"#include "script/WsfScriptCommAddress.hpp"#include "script/WsfScriptContext.hpp"#include "script/WsfScriptDefs.hpp"
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| AddConnection_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
If both comms are members of the same network, we use the network API to enable the connection. This allows the network to either accept or reject the connection based off its implementation, topology, etc.
This is an inter-network connection. Simply add the connection between the members.
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| AddConnection_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
If both comms are members of the same network, we use the network API to enable the connection. This allows the network to either accept or reject the connection based off its implementation, topology, etc.
This is an inter-network connection. Simply add the connection between the members.
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| CanSendTo | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfComm" | ) |
References wsf::comm::Comm::CanSendTo(), and TIME_NOW.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| DisableConnection_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| DisableConnection_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| EnableConnection_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| EnableConnection_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| GetAddress | , | ||
| 0 | , | ||
| "WsfAddress" | , | ||
| "" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| GetMedium | , | ||
| 0 | , | ||
| "WsfCommMedium" | , | ||
| "" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| GetRouter | , | ||
| 0 | , | ||
| "WsfCommRouter" | , | ||
| "" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| IsConnectedTo_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| IsConnectedTo_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| IsConnectionEnabled_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| IsConnectionEnabled_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| NetworkName | , | ||
| 0 | , | ||
| "string" | , | ||
| "" | ) |
References WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| PathExistsTo_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| PathExistsTo_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| Rcvr | , | ||
| 1 | , | ||
| "WsfEM_Rcvr" | , | ||
| "int" | ) |
References wsf::comm::ComponentHW::Find().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| RcvrCount | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
References wsf::comm::ComponentHW::Find().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| RemoveConnection_1 | , | ||
| 1 | , | ||
| "bool" | , | ||
| "WsfAddress" | ) |
If both comms are members of the same network, we use the network API to enable the connection. This allows the network to either accept or reject the connection based off its implementation, topology, etc.
This is an inter-network connection. Simply remove the connection between the members.
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| RemoveConnection_2 | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | WsfAddress, | ||
| WsfAddress" | ) |
If both comms are members of the same network, we use the network API to enable the connection. This allows the network to either accept or reject the connection based off its implementation, topology, etc.
This is an inter-network connection. Simply add the connection between the members.
References SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessage_1 | , | ||
| 2 | , | ||
| "void" | , | ||
| " | WsfMessage, | ||
| WsfComm" | ) |
References WsfScriptContext::GetTIME_NOW(), simTime, and WSF_SCRIPT_WARN_INIT.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessage_2 | , | ||
| 3 | , | ||
| "void" | , | ||
| " | WsfMessage, | ||
| string | , | ||
| string" | ) |
References platformPtr, SIMULATION, TIME_NOW, and WSF_SCRIPT_WARN_INIT.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessage_3 | , | ||
| 2 | , | ||
| "void" | , | ||
| " | WsfMessage, | ||
| WsfAddress" | ) |
References TIME_NOW, and WSF_SCRIPT_WARN_INIT.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessageToCommander_1 | , | ||
| 2 | , | ||
| "void" | , | ||
| " | string, | ||
| WsfMessage" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessageToCommander_2 | , | ||
| 1 | , | ||
| "void" | , | ||
| "WsfMessage" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessageToPeers | , | ||
| 2 | , | ||
| "void" | , | ||
| " | string, | ||
| WsfMessage" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| SendMessageToSubordinates | , | ||
| 2 | , | ||
| "void" | , | ||
| " | string, | ||
| WsfMessage" | ) |
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| Xmtr | , | ||
| 1 | , | ||
| "WsfEM_Xmtr" | , | ||
| "int" | ) |
References wsf::comm::ComponentHW::Find(), and wsf::comm::ComponentHW::GetEM_Xmtr().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| XmtrCount | , | ||
| 0 | , | ||
| "int" | , | ||
| "" | ) |
References wsf::comm::ComponentHW::Find(), and wsf::comm::ComponentHW::GetEM_XmtrCount().
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| WsfScriptCommClass | , | ||
| GetComm | , | ||
| 1 | , | ||
| "WsfComm" | , | ||
| "WsfAddress" | ) |
References SIMULATION, and WSF_SCRIPT_WARN_INIT_NOT_INIT2.
| UT_DEFINE_SCRIPT_METHOD | ( | WsfScriptCommClass | , |
| WsfScriptCommClass | , | ||
| IsA_TypeOf | , | ||
| 2 | , | ||
| "bool" | , | ||
| " | string, | ||
| string" | ) |
References WsfObjectTypeList< T >::Find(), wsf::comm::Types::Get(), and WsfObject::IsA_TypeOf().
| UT_DEFINE_SCRIPT_METHOD_NOCHECK | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| TurnOff | , | ||
| 0 | , | ||
| "bool" | , | ||
| "" | ) |
References ok, SIMULATION, and TIME_NOW.
| UT_DEFINE_SCRIPT_METHOD_NOCHECK | ( | WsfScriptCommClass | , |
| wsf::comm::Comm | , | ||
| TurnOn | , | ||
| 0 | , | ||
| "bool" | , | ||
| "" | ) |
References ok, SIMULATION, and TIME_NOW.