Esempio n. 1
0
        public NflGame(IDataAccessNfl dataAccessNfl, IRadarNfl radarNfl, IAnalyticaNfl analyticaNfl, IDatastore datastore, IDistributorNfl distributorNfl, IPubSubUtil pubSubUtil, IPusherUtil pusherUtil)
        {
            string isSimulationString = ConfigurationManager.AppSettings["isSimulation"];

            IsSimulation = ToBoolean(isSimulationString);

            PeriodList = new List <string> {
                "CG", "H1", "H2", "Q1", "Q2", "Q3", "Q4"
            };
            InitializePeriodScoring(PeriodList);

            ModelData[NflModelDataKeys.InMlf]    = new Dictionary <string, double>();       // PRE MATCH MARKET LINES
            ModelData[NflModelDataKeys.InLMlf]   = new Dictionary <string, double>();       // IN RUNNING MARKET LINES
            ModelData[NflModelDataKeys.Egt]      = new Dictionary <string, double>();       // EVENT GAME TIME
            ModelData[NflModelDataKeys.Evs]      = new Dictionary <string, double>();       // EVENT STATE
            ModelData[NflModelDataKeys.InTsf]    = new Dictionary <string, double>();       // TEAM STATS
            ModelData[NflModelDataKeys.InSc]     = new Dictionary <string, double>();       // SCORING CURVE
            ModelData[NflModelDataKeys.Xs]       = new Dictionary <string, double>();       // EXTRA STATS
            ModelData[NflModelDataKeys.Settings] = new Dictionary <string, double>();       //model settings
            ModelData[NflModelDataKeys.Adjust]   = new Dictionary <string, double>();       //market Adjustment settings

            NflGameState = new NflGameState();

            _dataAccessNfl  = dataAccessNfl;
            _analyticaNfl   = analyticaNfl;
            _datastore      = datastore;
            _distributorNfl = distributorNfl;
            _radarNfl       = radarNfl;
            _pubSubUtil     = pubSubUtil;
            _pusherUtil     = pusherUtil;
            _marketList     = dataAccessNfl.GetMarketsDescriptions();
        }
Esempio n. 2
0
 public DistributorNfl(IDataAccessNfl dataAccessNfl, IDatastore datastore, IPusherUtil pusherUtil)
 {
     _datastore  = datastore;
     _pusherUtil = pusherUtil;
     _marketList = dataAccessNfl.GetMarkets();
     InitializeLists();
 }