Exemplo n.º 1
0
        public string Get_Record_Header(
            PD_Game game,
            PD_AI_PathFinder pathFinder,
            PD_AI_Agent_Base agent
            )
        {
            string record_Header;

            List <PD_Report_Part> report_Parts = new List <PD_Report_Part>();

            // game state report is included in all cases...
            GameState_Report.Update(game, pathFinder, 0);
            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_Header = PD_Report_Part.Get_Joined_CSV_Header(report_Parts);

            return(record_Header);
        }
        public string Get_Record_Header(
            PD_Game game,
            PD_AI_PathFinder pathFinder,
            PD_AI_Agent_Base agent
            )
        {
            string record_Header = "";

            List <PD_Report_Part> report_Parts = new List <PD_Report_Part>();

            // game state report is included in all cases...
            GameState_Report.Update(game, pathFinder, 0);
            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_Header = PD_Report_Part.Get_Joined_CSV_Header(report_Parts);

            return(record_Header);
        }