public PlayerCareerReport( IKeepTheTime timekeeper, int numberOfReportsTodo = 20) : base(timekeeper) { Season = timekeeper.CurrentSeason(DateTime.Now); ReportsToDo = numberOfReportsTodo; }
public RoleAssignmentReport( string singleTeamCode, IKeepTheTime timeKeeper) : base(timeKeeper) { SingleTeam = singleTeamCode; Initialise(timeKeeper); }
public GoallineReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Goalline Report"; Season = timekeeper.Season; Week = timekeeper.Week; }
public FantasyProjectionReporter( IKeepTheTime timekeeper) { Name = "Fantasy Point Projections"; TimeKeeper = timekeeper; var dao = new DbfPlayerGameMetricsDao(); var scorer = new YahooProjectionScorer(); var theWeek = TimeKeeper.CurrentWeek( DateTime.Now ); if (theWeek.Equals( 0 )) theWeek = 1; Configs = new List<FantasyProjectionReportConfig> { new FantasyProjectionReportConfig { Season = TimeKeeper.CurrentSeason( DateTime.Now ), Week = theWeek.ToString( CultureInfo.InvariantCulture ), Dao = dao, Scorer = scorer } }; Leagues = new List<RosterGridLeague>(); //Leagues.Add(new RosterGridLeague { // Id = Constants.K_LEAGUE_Gridstats_NFL1, Name = "Gridstats GS1" //}); Leagues.Add( new RosterGridLeague { Id = Constants.K_LEAGUE_Yahoo, Name = "Spitzys" } ); //Leagues.Add( new RosterGridLeague //{ // Id = Constants.K_LEAGUE_Rants_n_Raves, // Name = "NFL.com" //} ); }
public DepthChartReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Depth Charts"; TeamCode = "SF"; Errors = new List <String>(); Season = timekeeper.CurrentSeason(); }
public SeasonProjectionReport( IKeepTheTime timekeeper) : base(timekeeper) { Season = timekeeper.CurrentSeason( DateTime.Now); Week = $"{timekeeper.CurrentWeek( DateTime.Now ):00}"; }
public Rookies(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Rookies"; SetLastRunDate(); Configs = new List <RookieConfig> { new RookieConfig { Category = Constants.K_QUARTERBACK_CAT, Position = "QB" }, new RookieConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB" }, new RookieConfig { Category = Constants.K_RECEIVER_CAT, Position = "WR" }, new RookieConfig { Category = Constants.K_RECEIVER_CAT, Position = "TE" }, new RookieConfig { Category = Constants.K_KICKER_CAT, Position = "K" } }; Leagues = new List <RosterGridLeague> { new RosterGridLeague { Id = Constants.K_LEAGUE_Gridstats_NFL1, Name = "Gridstats GS1" } }; Generator = new RookieReportGenerator(); }
public PlayerCsv(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Players CSV"; SetLastRunDate(); Lister = new PlayerLister(); Configs = new List <StarterConfig> { new StarterConfig { Category = Constants.K_QUARTERBACK_CAT, Position = "QB" }, #if !DEBUG2 new StarterConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB" }, new StarterConfig { Category = Constants.K_RECEIVER_CAT, Position = "WR" }, new StarterConfig { Category = Constants.K_RECEIVER_CAT, Position = "TE" }, new StarterConfig { Category = Constants.K_KICKER_CAT, Position = "K" } #endif }; }
public ScoreTally(IKeepTheTime timekeeper, string scope, bool usingPredictions) : base(timekeeper) { Year = timekeeper.Season; ScopeInFocus = scope; UsingPredictions = usingPredictions; ForceRefresh = false; }
public HotListReporter(IKeepTheTime timekeeper) : base(timekeeper) { WeekMaster = new WeekMaster(); Name = "Hot Lists"; Configs = new List <HotListConfig>(); Configs.Add(new HotListConfig { Category = Constants.K_QUARTERBACK_CAT, Position = "QB", FreeAgents = true, Starters = true }); #if !DEBUG Configs.Add(new HotListConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB", FreeAgents = false, Starters = false }); Configs.Add(new HotListConfig { Category = Constants.K_RECEIVER_CAT, Position = "WR", FreeAgents = true, Starters = true }); Configs.Add(new HotListConfig { Category = Constants.K_RECEIVER_CAT, Position = "TE", FreeAgents = true, Starters = true }); Configs.Add(new HotListConfig { Category = Constants.K_KICKER_CAT, Position = "PK", FreeAgents = true, Starters = true }); #endif Leagues = new List <RosterGridLeague>(); Leagues.Add(new RosterGridLeague { Id = Constants.K_LEAGUE_Gridstats_NFL1, Name = "Gridstats GS1" }); #if !DEBUG Leagues.Add(new RosterGridLeague { Id = Constants.K_LEAGUE_Yahoo, Name = "Spitzys League" }); Leagues.Add(new RosterGridLeague { Id = Constants.K_LEAGUE_Rants_n_Raves, Name = "NFL.COM" }); #endif }
public ReportJob( IKeepTheTime timekeeper, RosterGridReport report ) { Report = report; TimeKeeper = timekeeper; Logger = LogManager.GetCurrentClassLogger(); CheckLastRun = true; }
public BalanceReportJob(IKeepTheTime timeKeeper) { Name = "Balance Report"; _timeKeeper = timeKeeper; IsNflRelated = true; Logger = LogManager.GetCurrentClassLogger(); }
public Starters(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Starters"; SetLastRunDate(); Lister = new PlayerLister(); Configs = new List <StarterConfig>(); Configs.Add(new StarterConfig { Category = Constants.K_QUARTERBACK_CAT, Position = "QB" }); #if !DEBUG Configs.Add(new StarterConfig { Category = Constants.K_RUNNINGBACK_CAT, Position = "RB" }); Configs.Add(new StarterConfig { Category = Constants.K_RECEIVER_CAT, Position = "WR" }); Configs.Add(new StarterConfig { Category = Constants.K_RECEIVER_CAT, Position = "TE" }); Configs.Add(new StarterConfig { Category = Constants.K_KICKER_CAT, Position = "K" }); #endif Leagues = new List <RosterGridLeague> { new RosterGridLeague { Id = Constants.K_LEAGUE_Gridstats_NFL1, Name = "GS1" } }; }
public SuggestedLineupsJob(IKeepTheTime timekeeper) { Name = "Suggested Lineups"; Report = new SuggestedLineup(); TimeKeeper = timekeeper; Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public GameProjectionReportsJob( IKeepTheTime timeKeeper ) { Name = "Game Projection Reports"; Report = new GameProjectionsReport( timeKeeper ); TimeKeeper = timeKeeper; Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public YahooMasterGenerator( bool fullSeason, IKeepTheTime timeKeeper ) { Name = "Yahoo Master Generator"; YahooMaster = new YahooMaster("Yahoo", "YahooOutput.xml"); Logger = LogManager.GetCurrentClassLogger(); FullSeason = fullSeason; TimeKeeper = timeKeeper; }
public FantasyReportJob( IKeepTheTime timekeeper ) { Name = "Fantasy Report"; Report = new FantasyReport( timekeeper ); TimeKeeper = timekeeper; Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public RecordOfActualMetricsReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Recording Actual Player Metrics Log"; Season = timekeeper.CurrentSeason(DateTime.Now); Week = string.Format("{0:00}", timekeeper.CurrentWeek(DateTime.Now)); Dao = new DbfPlayerGameMetricsDao(); }
public FpProjections(IKeepTheTime timekeeper) : base(timekeeper) { Name = "FP Projections"; Fpr = new FantasyProjectionReport(); Dao = new DbfPlayerGameMetricsDao(); // for fetching the metrics (but they need generation) Scorer = new YahooProjectionScorer(); Configure(); }
public FantasyProjectionJob(IKeepTheTime timeKeeper) { TimeKeeper = timeKeeper; Name = "Fantasy Point Projections"; Report = new FantasyProjectionReporter( TimeKeeper ); Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public DefensiveReportsJob( IKeepTheTime timekeeper ) { Name = "Defensive Reports"; Report = new DefensiveScorer(); TimeKeeper = timekeeper; Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public YahooXmlFullJob(IKeepTheTime timekeeper) { Name = "Yahoo Xml job"; Report = new YahooMasterGenerator(fullSeason: true, timeKeeper: timekeeper); TimeKeeper = timekeeper; IsNflRelated = true; Logger = LogManager.GetCurrentClassLogger(); }
public FreeAgentMarketJob(IKeepTheTime timeKeeper) { Name = "Free Agent Report"; Report = new FaMarket { Name = Name, Season = timeKeeper.Season }; TimeKeeper = timeKeeper; IsNflRelated = true; Logger = LogManager.GetCurrentClassLogger(); }
public MetricsUpdateReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Metrics Update Report"; Season = timekeeper.CurrentSeason(); Week = new NFLWeek(Season, timekeeper.PreviousWeek()); Scorer = new YahooScorer(Week); Dao = new DbfPlayerGameMetricsDao(); }
public DepthChartJob( IKeepTheTime timekeeper ) { Name = "Depth Charts"; Report = new DepthChartReport(timekeeper.CurrentSeason()); TimeKeeper = timekeeper; Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public AssignRolesJob( IKeepTheTime timeKeeper ) { Name = "Assign Roles"; Report = new RoleAssignmentReport(timeKeeper); TimeKeeper = timeKeeper; Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public DepthChartReport( IKeepTheTime timekeeper, string teamCode) : base(timekeeper) { Season = timekeeper.CurrentSeason(); TeamCode = teamCode; Errors = new List <String>(); }
public TeamCardsJob(IKeepTheTime keeper) { Name = "Team Cards"; TimeKeeper = keeper; Report = new TeamCards(false); Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public PlayerReportsJob( IKeepTheTime timeKeeper ) { Name = "Player Reports"; Report = new PlayerCareerReport( TimeKeeper.CurrentSeason( DateTime.Now ) ); TimeKeeper = timeKeeper; Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
private void SetWeek(IKeepTheTime timekeeper) { Week = timekeeper.Week; if (timekeeper.IsItPostSeason()) { Week = Constants.K_GAMES_IN_REGULAR_SEASON.ToString(); } }
public HotListsJob(IKeepTheTime timekeeper) { Name = "Hot Lists"; Report = new HotListReporter(); TimeKeeper = timekeeper; Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public StrengthOfScheduleJob(IKeepTheTime timeKeeper) { Name = "Strength of Schedule Report"; TimeKeeper = timeKeeper; IsNflRelated = true; Logger = LogManager.GetCurrentClassLogger(); SeasonScheduler = new SeasonScheduler(); }
public MetricsUpdateReport( IKeepTheTime timekeeper) { Name = "Metrics Update Report"; Season = timekeeper.CurrentSeason(); Week = new NFLWeek( Season, timekeeper.PreviousWeek()); Scorer = new YahooScorer(Week); Dao = new DbfPlayerGameMetricsDao(); }
public RookiesJob(IKeepTheTime timeKeeper) : base() { Name = "Rookies"; TimeKeeper = timeKeeper; Report = new Rookies(); Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public PlayerCsvJob(IKeepTheTime timeKeeper) { Name = "Players CSV"; TimeKeeper = timeKeeper; var rpt = new PlayerCsv {DoProjections = true}; Report = rpt; IsNflRelated = true; Logger = LogManager.GetCurrentClassLogger(); }
public StatGridJob(IKeepTheTime timeKeeper) { Name = "Stat Grids"; Console.WriteLine("Constructing {0} ...", Name); Report = new StatGrids(); TimeKeeper = timeKeeper; Logger = NLog.LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public UpdateActualsJob( IKeepTheTime timeKeeper ) { Name = "Update Actual Player Game Metrics"; Report = new MetricsUpdateReport(timeKeeper); // do this TimeKeeper = timeKeeper; Report.TimeKeeper = timeKeeper; Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; }
public GeneratePlayerProjectionsJob( IKeepTheTime timeKeeper ) { Name = "Generate Player Projections"; TimeKeeper = timeKeeper; Logger = LogManager.GetCurrentClassLogger(); IsNflRelated = true; Report = new PlayerProjectionGenerator( playerCache: null ) {Name = Name}; SeasonScheduler = new SeasonScheduler(); }
public PositionReport( IKeepTheTime timekeeper ) : base(timekeeper) { Options = new List <PositionReportOptions>(); LoadAllTheOptions(); PlayerBreakdowns = new PreStyleBreakdown(); SetWeek(timekeeper); }
public PlayerLister( string catCode, bool faOnly, [Optional] string fantasyLeague, [Optional] bool startersOnly, [Optional] IKeepTheTime timekeeper ) { if (timekeeper != null) { TimeKeeper = timekeeper; } PrimariesOnly = true; ActivesOnly = true; FreeAgentsOnly = false; StartersOnly = startersOnly; PlayerList = new ArrayList(); Folder = string.Empty; var ds = Utility.TflWs.GetPlayers(catCode); var dt = ds.Tables[0]; foreach (DataRow dr in dt.Rows) { var p = new NFLPlayer(dr, fantasyLeague); var bAdd = !faOnly || p.IsFreeAgent(); if (ActivesOnly) { bAdd = bAdd && p.IsActive(); } if (StartersOnly) { bAdd = bAdd && p.IsStarter(); } if (PlayoffsOnly) { bAdd = bAdd && p.IsPlayoffBound(); } if (PrimariesOnly) { bAdd = bAdd && !p.IsItalic(); // dont want FB, TE or punters } if (OnesAndTwosOnly) { bAdd = bAdd && p.IsOneOrTwo(); } if (catCode.Equals("2")) // there is a lack of RBs { bAdd = bAdd && p.IsOneOrTwo(); } if (bAdd) { PlayerList.Add(p); } } WeeksToGoBack = Constants.K_WEEKS_IN_A_SEASON; // default }
public RankingsJob( IKeepTheTime timekeeper, bool force = false ) { Name = "Rankings Job"; TimeKeeper = timekeeper; Logger = LogManager.GetCurrentClassLogger(); TeamRanker = new TeamRanker( TimeKeeper ) { ForceReRank = force }; RankDate = TimeKeeper.CurrentDateTime(); IsNflRelated = true; }
public RenderStatsToWeekly( IRatePlayers scorerIn, IWeekMaster weekMasterIn, IKeepTheTime timekeeper) { _scorer = scorerIn; WeekMaster = weekMasterIn; TimeKeeper = timekeeper; }
public RunReportJob( IKeepTheTime timekeeper ) { Name = "Run Report job"; Report = new RunReport(); CheckLastRun = false; // dont restrict running to only when data updates TimeKeeper = timekeeper; Report.Season = TimeKeeper.CurrentSeason( DateTime.Now ); Logger = LogManager.GetCurrentClassLogger(); }
public ScoreTally(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Team Output Projections"; LastRun = Utility.TflWs.GetLastRun(Name); Year = timekeeper.CurrentSeason(); ScopeInFocus = "All Teams"; UsingPredictions = true; ForceRefresh = false; }
public DropBoxCopyTflToVesuviusJob(IKeepTheTime timeKeeper) { Name = "Reload Vesuvius TFL Data"; Console.WriteLine("Constructing {0} ...", Name); SourceDir = "d:\\shares\\public\\dropbox\\tfl"; DestDir = "d:\\shares\\tfl"; TimeKeeper = timeKeeper; Logger = NLog.LogManager.GetCurrentClassLogger(); }
public UnitRatingsService(IKeepTheTime timekeeper) { TimeKeeper = timekeeper; RatingsHt = new Hashtable(); LastDateRanked = new DateTime(1, 1, 1); if (Utility.CurrentNFLWeek().WeekNo > 4) { ThisSeasonOnly = true; } }
// "\\\\Regina\\web\\medialists\\dropbox\\gridstat\\{0}" public DropboxCopyToReginaJob(IKeepTheTime timeKeeper, string sourceDir, // "d:\\shares\\public\\dropbox\\gridstat\\{0}" string destDir ) { var theSeason = timeKeeper.Season; Name = "Publish Dropbox to Regina"; SourceDir = string.Format( sourceDir, theSeason); DestDir = string.Format(destDir, theSeason); Logger = NLog.LogManager.GetCurrentClassLogger(); }
public PlayerLister(IKeepTheTime timekeeper) { PrimariesOnly = true; ActivesOnly = true; FreeAgentsOnly = false; Tc = new TeamCheckList(); PlayerList = new ArrayList(); TimeKeeper = timekeeper; WeeksToGoBack = Constants.K_WEEKS_IN_A_SEASON; // default }
public YahooMasterGenerator( bool fullSeason, IKeepTheTime timekeeper) : base(timekeeper) { Name = "Yahoo Master Generator"; YahooMaster = new YahooMaster("Yahoo", "YahooOutput.xml"); Logger = LogManager.GetCurrentClassLogger(); FullSeason = fullSeason; TimeKeeper = timekeeper; }
public PlayoffTeamsReport(IKeepTheTime timekeeper) : base(timekeeper) { Report = new SimplePreReport { ReportType = "Playoff Teams", Folder = "Playoffs", Season = timekeeper.Season, InstanceName = string.Format("Playoff-Week-{0:0#}", timekeeper.Week) }; }
public PlayoffTeamsReport( IKeepTheTime timekeeper ) { Report = new SimplePreReport { ReportType = "Playoff Teams", Folder = "Playoffs", Season = timekeeper.Season, InstanceName = string.Format( "Playoff-Week-{0:0#}", timekeeper.Week ) }; }
public PlayerLister(IKeepTheTime timekeeper) { PrimariesOnly = true; ActivesOnly = true; FreeAgentsOnly = false; Tc = new TeamCheckList(); PlayerList = new ArrayList(); TimeKeeper = timekeeper; WeeksToGoBack = Constants.K_WEEKS_IN_A_SEASON; // default }
public FantasyReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Fantasy Report"; Week = timekeeper.PreviousWeek(); Heading = Name; FileOut = string.Format("{0}{1}//Scores//FantasyScores-{2}.htm", Utility.OutputDirectory(), Season, Week); }
public RenderStatsToWeekly( IRatePlayers scorerIn, IWeekMaster weekMasterIn, IKeepTheTime timekeeper ) { _scorer = scorerIn; WeekMaster = weekMasterIn; TimeKeeper = timekeeper; }
public void PlayerReports( int reportsToDo, IKeepTheTime timekeeper) { var reportsDone = 0; var totalReports = 0; var totalPlayers = 0; // All the players foreach (NflConference c in _confList) { foreach (NFLDivision d in c.DivList) { foreach (NflTeam t in d.TeamList) { t.LoadPlayerUnits(); Announce($" Team {t} has {t.PlayerList.Count} current players"); totalPlayers += t.PlayerList.Count; var reportsAvailable = 0; foreach (NFLPlayer p in t.PlayerList) { if (p.RookieYear.Equals(timekeeper.Season)) { Logger.Trace($" Skipping rookie {p}"); continue; } if (p.PlayerCat.Equals("7")) { Logger.Trace($" Skipping OL {p}"); continue; } if (p.IsPlayerReport()) { reportsAvailable++; } else { if (reportsToDo > 0 && reportsDone >= reportsToDo) { Announce($"Quota of {reportsToDo} met"); return; } p.PlayerReport(); reportsDone++; } } Announce($" Team {t} has {reportsAvailable} player reports"); totalReports += reportsAvailable; } } } Announce($" League has {totalPlayers} current players"); Announce($" League has {totalReports} current player reports"); }
public TeamRanker(IKeepTheTime timeKeeper) { TimeKeeper = timeKeeper; RatingsHt = new Hashtable(); Week = TimeKeeper.PreviousWeek(); FileOut = $@"{Utility.OutputDirectory()}\\{ TimeKeeper.CurrentSeason() }\\Metrics\\MetricTable-{Week:0#}.htm" ; Logger = LogManager.GetCurrentClassLogger(); Breakdowns = new PreStyleBreakdown(); }
public RetirePlayersReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Retire-Player-Reports"; Season = timekeeper.CurrentSeason(DateTime.Now); PreReport = new SimplePreReport { ReportType = Name, Folder = "Players", Season = Season, InstanceName = $"PlayersProbablyRetired-{Season}" }; }
public DeletePlayerReportsReport(IKeepTheTime timekeeper) : base(timekeeper) { Name = "Delete-Stale-Player-Reports"; Season = timekeeper.CurrentSeason(DateTime.Now); PreReport = new SimplePreReport { ReportType = Name, Folder = "Players", Season = Season, InstanceName = $"PlayerReportsDeleted-{Season}" }; }
public PositionReport( IKeepTheTime timekeeper, PositionReportOptions config ) : base(timekeeper) { Options = new List <PositionReportOptions> { config }; PlayerBreakdowns = new PreStyleBreakdown(); SetWeek(timekeeper); }
public FantasyScorecardReport( IKeepTheTime timekeeper, IPlayerGameMetricsDao pgmDao) : base(timekeeper) { Name = "Fantasy Scorecard"; Season = timekeeper.CurrentSeason(); Week = timekeeper.Week; PlayerIds = new List <string>(); PgmDao = pgmDao; ScoreCards = new List <ScoreCard>(); TotalScoreCard = new ScoreCard(); }