예제 #1
0
        public NcaafbGame(IDataAccessNcaafb dataAccessNcaafb, IRadarNcaafb radarNcaafb, IAnalyticaNcaafb analyticaNcaafb, IDatastore datastore, IDistributorNcaafb distributorNcaafb, IPubSubUtil pubSubUtil, IPusherUtil pusherUtil)
        {
            Logger.Info("Starting");
            string isSimulationString = ConfigurationManager.AppSettings["isSimulation"];

            IsSimulation = ToBoolean(isSimulationString);

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

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

            NcaafbGameState = new NcaafbGameState();

            _dataAccessNcaafb  = dataAccessNcaafb;
            _analyticaNcaafb   = analyticaNcaafb;
            _datastore         = datastore;
            _distributorNcaafb = distributorNcaafb;
            _radarNcaafb       = radarNcaafb;
            _pubSubUtil        = pubSubUtil;
            _pusherUtil        = pusherUtil;
        }
예제 #2
0
 public DistributorNcaafb(IDataAccessNcaafb dataAccessNcaafb, IDatastore datastore, IPusherUtil pusherUtil)
 {
     _datastore  = datastore;
     _pusherUtil = pusherUtil;
     _marketList = dataAccessNcaafb.GetMarkets();
     InitializeLists();
 }