sleyzerzon / soar

Automatically exported from code.google.com/p/soar
1 stars 0 forks source link

sml.Agent.getDecisionCycleCounter() returns wrong value #145

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
sml.Agent.getDecisionCycleCounter() appears to be linked to the decision phase 
counter, not the decision cycle counter.

Specifically, sml::Agent::getDecisionCycleCounter() (in sml_ClientAgent.cpp) 
calls (via an sml::Connection) KernelXML::HandleGetRunState with 
sml_Names::kParamDecision (in sml_KernelSMLHandlers.cpp), which calls 
AgentSML::GetNumDecisionsExecuted() (in sml_AgentSML.cpp) which does:

uint64_t AgentSML::GetNumDecisionsExecuted()
{
  return m_agent->decision_phases_count;
}

The correct field to return is d_cycle_count.

Original issue reported on code.google.com by bob.mari...@soartech.com on 25 Jul 2013 at 6:50