private string SeasonOut(string metric, DateTime projectionDate) { IPrognosticate predictor; if (metric.Equals("Spread")) { //predictor = new NibblePredictor(Utility.CurrentSeason()); // which is more accurate?? predictor = new UnitPredictor { TakeActuals = true, AuditTrail = true, WriteProjection = true, StorePrediction = true, RatingsService = new UnitRatingsService() } } ; else { predictor = new WizPredictor(); } var s = HtmlLib.TableOpen("border=1 cellpadding='0' cellspacing='0'"); if (Nfc != null) { s += Nfc.SeasonProjection(metric, predictor, projectionDate); } if (Afc != null) { s += Afc.SeasonProjection(metric, predictor, projectionDate); } return(s); }
private string SeasonOut(string metric, DateTime projectionDate) { IPrognosticate predictor; if (metric.Equals("Spread")) //predictor = new NibblePredictor(Utility.CurrentSeason()); // which is more accurate?? predictor = new UnitPredictor { TakeActuals = true, AuditTrail = false, WriteProjection = true, StorePrediction = true, RatingsService = new UnitRatingsService() }; else predictor = new WizPredictor(); var s = HtmlLib.TableOpen("border=1 cellpadding='0' cellspacing='0'"); if (Nfc != null) s += Nfc.SeasonProjection(metric, predictor, projectionDate); if (Afc != null) s += Afc.SeasonProjection(metric, predictor, projectionDate); return s; }
public void Render(bool writeProjection) { if (_game == null) { Utility.Announce("Game Off"); return; } var s = GameBlock() + "<br>\n\n"; if (ShowPrediction) { //SimplePredictor predictor = new SimplePredictor(); var predictor = new UnitPredictor { RatingsService = new UnitRatingsService(), WriteProjection = writeProjection }; //WizPredictor predictor = new WizPredictor(); Predictions(predictor, ref s); } if (ShowRecent) { RecentMeetings(ref s); } if (ShowBets) { Bets(ref s); } if (ShowFreeAgents) { FreeAgents(ref s, _game.HomeTeamName, _game.AwayTeamName, _game.HomeNflTeam, _game.AwayNflTeam); } if (ShowTeamCards) { HomeOffenceMatchup(ref s); } if (ShowInjuries) { Injuries(ref s, _game.HomeNflTeam, _game.AwayNflTeam, _game.HomeTeamName, _game.AwayTeamName); } if (ShowMatrix) { HomeMatrix(ref s); } if (ShowUnits) { HomeOffUnits(ref s); } if (ShowTeamCards) { AwayOffenceMatchup(ref s); } if (ShowInjuries) { Injuries(ref s, _game.AwayNflTeam, _game.HomeNflTeam, _game.AwayTeamName, _game.HomeTeamName); } if (ShowMatrix) { AwayMatrix(ref s); } if (ShowUnits) { AwayOffUnits(ref s); } if (ShowLineups) { LineupCards(ref s); } RenderMatchup(s); }
public void Render( bool writeProjection ) { if (_game == null) { Utility.Announce( "Game Off" ); return; } var s = GameBlock() + "<br>\n\n"; if ( ShowPrediction ) { //SimplePredictor predictor = new SimplePredictor(); var predictor = new UnitPredictor { RatingsService = new UnitRatingsService(), WriteProjection = writeProjection }; //WizPredictor predictor = new WizPredictor(); Predictions( predictor, ref s ); } if ( ShowRecent ) RecentMeetings( ref s ); if ( ShowBets ) Bets( ref s ); if ( ShowFreeAgents ) FreeAgents( ref s, _game.HomeTeamName, _game.AwayTeamName, _game.HomeNflTeam, _game.AwayNflTeam ); if ( ShowTeamCards ) HomeOffenceMatchup( ref s ); if ( ShowInjuries ) Injuries( ref s, _game.HomeNflTeam, _game.AwayNflTeam, _game.HomeTeamName, _game.AwayTeamName ); if ( ShowMatrix ) HomeMatrix( ref s ); if ( ShowUnits ) HomeOffUnits( ref s ); if ( ShowTeamCards ) AwayOffenceMatchup( ref s ); if ( ShowInjuries ) Injuries( ref s, _game.AwayNflTeam, _game.HomeNflTeam, _game.AwayTeamName, _game.HomeTeamName ); if ( ShowMatrix ) AwayMatrix( ref s ); if ( ShowUnits ) AwayOffUnits( ref s ); if ( ShowLineups ) LineupCards( ref s ); RenderMatchup( s ); }