Exemplo n.º 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;
        }
Exemplo n.º 2
0
        public NcaabbGame(IDataAccessNcaabb dataAccessNcaabb, IRadarNcaabb radarNcaabb, IAnalyticaNcaabb analyticaNcaabb, IDatastore datastore, IDistributorNcaabb distributorNcaabb, IPubSubUtil pubSubUtil, IPusherUtil pusherUtil)
        {
            PeriodList = new List <string> {
                "CG", "H1", "H2", "Q1", "Q2", "Q3", "Q4"
            };
            InitializePeriodScoring(PeriodList);
            GameTimeSeconds = 2400;
            ModelData[NcaabbModelDataKeys.InMlf]    = new Dictionary <string, double>();
            ModelData[NcaabbModelDataKeys.InLMlf]   = new Dictionary <string, double>();
            ModelData[NcaabbModelDataKeys.Evs]      = new Dictionary <string, double>();
            ModelData[NcaabbModelDataKeys.InTsf]    = new Dictionary <string, double>();
            ModelData[NcaabbModelDataKeys.Egt]      = new Dictionary <string, double>();
            ModelData[NcaabbModelDataKeys.InLsF]    = new Dictionary <string, double>();
            ModelData[NcaabbModelDataKeys.Settings] = new Dictionary <string, double>();

            NcaabbGameState = new NcaabbGameState();

            _dataAccessNcaabb  = dataAccessNcaabb;
            _analyticaNcaabb   = analyticaNcaabb;
            _datastore         = datastore;
            _distributorNcaabb = distributorNcaabb;
            _radarNcaabb       = radarNcaabb;
            _pubSubUtil        = pubSubUtil;
            _pusherUtil        = pusherUtil;
            _marketList        = dataAccessNcaabb.GetMarketsDescriptions();
        }
Exemplo n.º 3
0
        public MlbGame(IDataAccessMlb dataAccessMlb, IRadarMlb radarMlb, IAnalyticaMlb analyticaMlb, IDatastore datastore, IDistributorMlb distributorMlb, IPubSubUtil pubSubUtil, IPusherUtil pusherUtil)
        {
            string isSimulationString = ConfigurationManager.AppSettings["isSimulation"];

            IsSimulation = ToBoolean(isSimulationString);

            PeriodList = new List <string> {
                "F3", "F5", "F7", "CG", "I1", "I2", "I3", "I4", "I5", "I6", "I7", "I8", "I9"
            };
            InitializePeriodScoring(PeriodList);

            ModelData[MlbModelDataKeys.InMlf]  = new Dictionary <string, double>();
            ModelData[MlbModelDataKeys.InLMlf] = new Dictionary <string, double>();
            ModelData[MlbModelDataKeys.Evs]    = new Dictionary <string, double>();
            ModelData[MlbModelDataKeys.InTsf]  = new Dictionary <string, double>();
            ModelData[MlbModelDataKeys.Egt]    = new Dictionary <string, double>();

            MlbGameState = new MlbGameState();

            _dataAccessMlb  = dataAccessMlb;
            _radarMlb       = radarMlb;
            _analyticaMlb   = analyticaMlb;
            _datastore      = datastore;
            _distributorMlb = distributorMlb;
            _pubSubUtil     = pubSubUtil;
            _pusherUtil     = pusherUtil;
        }
Exemplo n.º 4
0
        public WnbaGame(IDataAccessWnba dataAccessWnba, IRadarWnba radarWnba, IAnalyticaWnba analyticaWnba, IDatastore datastore, IDistributorWnba distributorWnba, IPubSubUtil pubSubUtil, IPusherUtil pusherUtil)
        {
            PeriodList = new List <string> {
                "CG", "H1", "H2", "Q1", "Q2", "Q3", "Q4"
            };
            InitializePeriodScoring(PeriodList);
            GameTimeSeconds = 2400;
            ModelData[WnbaModelDataKeys.InMlf]    = new Dictionary <string, double>();
            ModelData[WnbaModelDataKeys.InLMlf]   = new Dictionary <string, double>();
            ModelData[WnbaModelDataKeys.Evs]      = new Dictionary <string, double>();
            ModelData[WnbaModelDataKeys.InTsf]    = new Dictionary <string, double>();
            ModelData[WnbaModelDataKeys.Egt]      = new Dictionary <string, double>();
            ModelData[WnbaModelDataKeys.InLsF]    = new Dictionary <string, double>();
            ModelData[WnbaModelDataKeys.Settings] = new Dictionary <string, double>();

            WnbaGameState = new WnbaGameState();

            _dataAccessWnba  = dataAccessWnba;
            _analyticaWnba   = analyticaWnba;
            _datastore       = datastore;
            _distributorWnba = distributorWnba;
            _radarWnba       = radarWnba;
            _pubSubUtil      = pubSubUtil;
            _pusherUtil      = pusherUtil;
            _marketList      = dataAccessWnba.GetMarketsDescriptions();
        }
Exemplo n.º 5
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();
        }
Exemplo n.º 6
0
        public NbaGame(IDataAccessNba dataAccessNba, IRadarNba radarNba, IAnalyticaNba analyticaNba, IDatastore datastore, IDistributorNba distributorNba, IPubSubUtil pubSubUtil, IPusherUtil pusherUtil)
        {
            string isSimulationString = ConfigurationManager.AppSettings["isSimulation"];

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

            ModelData[NbaModelDataKeys.InMlf] = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.Evs]   = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.Egt]   = new Dictionary <string, double>();

            if (!IsTeamMode)
            {
                ModelData[NbaModelDataKeys.EgtP] = new Dictionary <string, double>();
                //player
                ModelData[NbaModelDataKeys.Ttm]   = new Dictionary <string, double>();
                ModelData[NbaModelDataKeys.Posc]  = new Dictionary <string, double>();
                ModelData[NbaModelDataKeys.Potm]  = new Dictionary <string, double>();
                ModelData[NbaModelDataKeys.Pop]   = new Dictionary <string, double>();
                ModelData[NbaModelDataKeys.Psco]  = new Dictionary <string, double>();
                ModelData[NbaModelDataKeys.Sdvtm] = new Dictionary <string, double>();
                ModelData[NbaModelDataKeys.Sdom]  = new Dictionary <string, double>();
            }

            ModelData[NbaModelDataKeys.InLMlf]   = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.InTsf]    = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.InLsF]    = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.Settings] = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.Adjust]   = new Dictionary <string, double>();
            ModelData[NbaModelDataKeys.Gsc]      = new Dictionary <string, double>();
            NbaGameState = new NbaGameState();

            _dataAccessNba  = dataAccessNba;
            _analyticaNba   = analyticaNba;
            _datastore      = datastore;
            _distributorNba = distributorNba;
            _radarNba       = radarNba;
            _pubSubUtil     = pubSubUtil;
            _pusherUtil     = pusherUtil;
            _marketList     = dataAccessNba.GetMarketsDescriptions();
        }
Exemplo n.º 7
0
        public MainConsole(TDataAccess dataAccess, TRadar radar, IPubSubUtil pubSubUtil)
        {
            _subscriptionId = ConfigurationManager.AppSettings["subscriptionId"];
            string isTeamModeString = ConfigurationManager.AppSettings["isTeamMode"];

            _isTeamMode = Convert.ToBoolean(isTeamModeString);
            string isSimulationString = ConfigurationManager.AppSettings["isSimulation"];

            _isSimulation = Convert.ToBoolean(isSimulationString);
            string numberGameDaysString = ConfigurationManager.AppSettings["numberGameDays"];

            _numberGameDays          = Convert.ToInt32(numberGameDaysString);
            _dataAccess              = dataAccess;
            _radar                   = radar;
            _pubSubUtil              = pubSubUtil;
            _cancellationTokenSource = new CancellationTokenSource();
            _cancellationToken       = _cancellationTokenSource.Token;
            _gamesConcurrentBag      = new ConcurrentBag <TGame>();
        }
Exemplo n.º 8
0
 public NhlMainConsole(IDataAccessBaseNhl dataAccess, IRadarNhl radar, IPubSubUtil pubSubUtil) :
     base(dataAccess, radar, pubSubUtil)
 {
 }
Exemplo n.º 9
0
 public NbaMainConsole(IDataAccessBaseNba dataAccess, IRadarNba radar, IPubSubUtil pubSubUtil) :
     base(dataAccess, radar, pubSubUtil)
 {
 }
Exemplo n.º 10
0
 public NcaafbMainConsole(IDataAccessBaseNcaafb dataAccess, IRadarNcaafb radar, IPubSubUtil pubSubUtil) :
     base(dataAccess, radar, pubSubUtil)
 {
 }
Exemplo n.º 11
0
 public MlbMainConsole(IDataAccessBaseMlb dataAccess, IRadarMlb radar, IPubSubUtil pubSubUtil) :
     base(dataAccess, radar, pubSubUtil)
 {
 }