public string Get_Record_Row( PD_Game game, PD_AI_PathFinder pathFinder, PD_AI_Agent_Base agent, int repetitionIndex ) { string record_Row; List <PD_Report_Part> report_Parts = new List <PD_Report_Part>(); // game state report is included in all cases... GameState_Report.Update(game, pathFinder, repetitionIndex); report_Parts.Add(GameState_Report); // include game stats report? if (Keep_GameStats_Report == true) { GameStats_Report.Update(game, pathFinder); report_Parts.Add(GameStats_Report); } record_Row = PD_Report_Part.Get_Joined_CSV_Row(report_Parts); return(record_Row); }
public string Get_Record_Row( PD_Game game, PD_AI_PathFinder pathFinder, PD_AI_Agent_Base agent, int repetitionIndex ) { string record_Row = ""; List <PD_Report_Part> report_Parts = new List <PD_Report_Part>(); // game state report is included in all cases... GameState_Report.Update(game, pathFinder, repetitionIndex); report_Parts.Add(GameState_Report); // include game stats report? if (Keep_GameStats_Report == true) { GameStats_Report.Update(game, pathFinder); report_Parts.Add(GameStats_Report); } // include macro actions report? if (Keep_MacroActions_Report == true) { MacroActions_Report.Update(game, pathFinder); report_Parts.Add(MacroActions_Report); } // include rolling horizon agent report? bool agentIsRollingHorizon = agent.GetType() == typeof(PolicyBased_RHE_Agent); if (agentIsRollingHorizon) { report_Parts.Add(RollingHorizonAgent_Report); } record_Row = PD_Report_Part.Get_Joined_CSV_Row(report_Parts); return(record_Row); }