MCPcopy Create free account
hub / github.com/SoarGroup/Soar / IsSoarRunning

Method IsSoarRunning

Core/ClientSML/src/sml_ClientKernel.cpp:1530–1542  ·  view source on GitHub ↗

* @brief Returns true if one or more agents are currently running. * * Can be used in conjunction with StopAllAgents() to make sure * all agents have actually terminated their runs. *************************************************************/

Source from the content-addressed store, hash-verified

1528* all agents have actually terminated their runs.
1529*************************************************************/
1530bool Kernel::IsSoarRunning()
1531{
1532 AnalyzeXML response ;
1533
1534 bool ok = (GetConnection()->SendAgentCommand(&response, sml_Names::kCommand_IsSoarRunning)) ;
1535
1536 if (ok)
1537 {
1538 return response.GetResultBool(false) ;
1539 }
1540
1541 return ok ;
1542}
1543
1544/*************************************************************
1545* @brief Causes the kernel to issue a SYSTEM_START event.

Callers

nothing calls this directly

Calls 3

SendAgentCommandMethod · 0.80
GetConnectionFunction · 0.70
GetResultBoolMethod · 0.45

Tested by

no test coverage detected