Beispiel #1
0
        public void initialize(ISOMReportFile teamReportFile)
        {
            Console.WriteLine("    Building Under Usage...");
            if (teamComparisonReport == null)
            {
                teamComparisonReport = (ComparisonReport)teamReportFile.FindReport("LEAGUE", "Comparison Report");

                teamComparisonReport.processReport(Program.LEAGUES[0].Length);
            }
        }
        public void initialize(ISOMReportFile teamReportFile)
        {
            Console.WriteLine("    Building Primary Player Statistics...");
            Dictionary <string, List <Report> > allReports = teamReportFile.getAllReports();

            foreach (string team in allReports.Keys)
            {
                PrimaryReport teamPrimaryReport = (PrimaryReport)teamReportFile.FindReport(team, "Primary Player Statistics For");
                if (teamPrimaryReport == null)
                {
                    System.Console.WriteLine("Are you sure you selected 'ALL REPORTS' for the Team Reports?");
                    throw new Exception("Unable to find Primary Player Statistics Report in the Team Report File");
                }
                teamPrimaryReport.processReport(3);
                allPrimaryReport.Add(teamPrimaryReport);
            }
        }
Beispiel #3
0
        public void initialize(ISOMReportFile file)
        {
            List <String> lines = file.readFileLinesOnly(false);

            ScheduleDay day    = null;
            String      header = "";
            String      games  = "";

            foreach (String line in lines)
            {
                if (line.StartsWith("["))
                {
                    continue;
                }
                else
                {
                    header = line.Substring(0, 15).Trim();
                    if (header.StartsWith("Schedule for "))
                    {
                        continue;
                    }
                    if (header.Length == 0)
                    {
                        //This is a continuation of the previous day
                        games = line.Substring(16).Trim();
                        day.addGames(games);
                    }
                    else
                    {
                        if (day != null)
                        {
                            schedule.Add(day);
                        }
                        // New Day.
                        day           = new ScheduleDay();
                        day.dayNumber = getDayNumber(line);
                        // Store the previous day
                        games = line.Substring(15).Trim();
                        day.addGames(games);
                    }
                }
            }
        }
        public void initialize(ISOMReportFile teamReportFile)
        {
            Console.WriteLine("    Building Comparison...");
            Console.WriteLine("      Showing Moral=" + Config.SHOW_MORAL + ", Showing Warnings=" + Config.SHOW_WARNING);

            teamPrimaryStatsReport = (PrimaryStatsReport)teamReportFile.FindReport("LEAGUE", "Primary Player Statistics For");
            teamPrimaryStatsReport.processReport(Program.LEAGUES[0].Length);
            List <Player> replayPlayers = teamPrimaryStatsReport.getPlayers();


            teamComparisonReport = (ComparisonReport)teamReportFile.FindReport("LEAGUE", "Comparison Report");
            if (teamComparisonReport == null)
            {
                System.Console.WriteLine("Are you sure you selected 'ALL REPORTS' for the Team Reports?");
                throw new Exception("Unable to find Comparison Report in the Team Report File");
            }
            teamComparisonReport.setPlayerActualData(replayPlayers);
            teamComparisonReport.processReport(Program.LEAGUES[0].Length);
        }
Beispiel #5
0
 public void initialize(ISOMReportFile leagueReportFile)
 {
     recordBookReport = (RecordBookReport)leagueReportFile.FindReport("LEAGUE", "RECORD BOOK FOR FOR");
     recordBookReport.processReport(Program.LEAGUES[0].Length);
 }
 public void initialize(ISOMReportFile file)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public void initialize(ISOMReportFile leagueReportFile)
 {
     Console.WriteLine("    Building Standings...");
     leagueStandingsReport = (LeagueStandingsReport)leagueReportFile.FindReport("LEAGUE", "LEAGUE STANDINGS FOR");
     leagueStandingsReport.processReport(Program.LEAGUES[0].Length);
 }
 public abstract void initialize(ISOMReportFile file);