public FestivalController(IStage stage)
 {
     this.stage             = stage;
     this.performerFactory  = new PerformerFactory();
     this.instrumentFactory = new InstrumentFactory();
     this.setFactory        = new SetFactory();
 }
Exemplo n.º 2
0
 public FestivalController(IStage stage, IInstrumentFactory instrumentFactory, IPerformerFactory performerFactory, ISongFactory songFactory)
 {
     this.stage             = stage;
     this.instrumentFactory = instrumentFactory;
     this.performerFactory  = performerFactory;
     this.songFactory       = songFactory;
 }
 public FestivalController(IStage stage, ISetFactory setFactory,
                           IInstrumentFactory instrumentFactory)
 {
     this.stage             = stage;
     this.setFactory        = setFactory;
     this.instrumentFactory = instrumentFactory;
 }
Exemplo n.º 4
0
 private Extractor(
     IKeyboardWatcher keyboardWatcher = null,
     IClientSideIncomingMessageDispatcher clientSideIncomingMessageDispatcher = null,
     IServerSideIncomingMessageDispatcher serverSideIncomingMessageDispatcher = null,
     IInstrumentFactory instrumentFactory     = null,
     IFlightDataRetriever flightDataRetriever = null,
     IFlightDataUpdater flightDataUpdater     = null)
 {
     State = new ExtractorState();
     LoadSettings();
     _instrumentFactory = instrumentFactory ?? new InstrumentFactory();
     _ehsiStateTracker  = new EHSIStateTracker(_instruments);
     _inputEvents       = new InputEvents(_instruments, _ehsiStateTracker);
     _clientSideIncomingMessageDispatcher = clientSideIncomingMessageDispatcher ??
                                            new ClientSideIncomingMessageDispatcher(_inputEvents);
     if (!Settings.Default.DisableDirectInputMediator)
     {
         Mediator = new Mediator(Application.OpenForms.Count > 0 ? Application.OpenForms[0]:null);
         _mediatorEventHandler = new MediatorStateChangeHandler(new DIHotkeyDetection(Mediator), _inputEvents);
     }
     _keyboardWatcher = keyboardWatcher ?? new KeyboardWatcher(_inputEvents, Log);
     _serverSideIncomingMessageDispatcher = serverSideIncomingMessageDispatcher ??
                                            new ServerSideIncomingMessageDispatcher(_inputEvents);
     _flightDataRetriever         = flightDataRetriever ?? new FlightDataRetriever();
     _flightDataUpdater           = flightDataUpdater ?? new FlightDataUpdater();
     _performanceCounterInstaller = new PerformanceCounterInstaller();
 }
Exemplo n.º 5
0
 private Extractor(
     IKeyboardWatcher keyboardWatcher = null,
     IClientSideIncomingMessageDispatcher clientSideIncomingMessageDispatcher = null,
     IServerSideIncomingMessageDispatcher serverSideIncomingMessageDispatcher = null,
     IInstrumentFactory instrumentFactory = null,
     IThreeDeeCaptureCoordinateUpdater threeDeeCaptureCoordinateUpdater = null,
     IFlightDataRetriever flightDataRetriever = null,
     IFlightDataUpdater flightDataUpdater     = null)
 {
     State = new ExtractorState();
     LoadSettings();
     _instrumentFactory = instrumentFactory ?? new InstrumentFactory();
     _ehsiStateTracker  = new EHSIStateTracker(_instruments);
     _inputEvents       = new InputEvents(_instruments, _ehsiStateTracker);
     _clientSideIncomingMessageDispatcher = clientSideIncomingMessageDispatcher ??
                                            new ClientSideIncomingMessageDispatcher(_inputEvents);
     if (!Settings.Default.DisableDirectInputMediator)
     {
         Mediator = new Mediator(null);
         _mediatorEventHandler = new MediatorStateChangeHandler(new DIHotkeyDetection(Mediator), _inputEvents);
     }
     _keyboardWatcher = keyboardWatcher ?? new KeyboardWatcher(_inputEvents, Log);
     _serverSideIncomingMessageDispatcher = serverSideIncomingMessageDispatcher ??
                                            new ServerSideIncomingMessageDispatcher(_inputEvents);
     _flightDataRetriever = flightDataRetriever ?? new FlightDataRetriever();
     _threeDeeCaptureCoordinateUpdater = threeDeeCaptureCoordinateUpdater ??
                                         new ThreeDeeCaptureCoordinateUpdater(
         _texturesSharedMemoryImageCoordinates);
     _flightDataUpdater           = flightDataUpdater ?? new FlightDataUpdater(_texturesSharedMemoryImageCoordinates);
     _performanceCounterInstaller = new PerformanceCounterInstaller();
 }
 public PriceGenerator(IInstrumentFactory instrumentFactory, string name)
 {
     _sourceName  = name;
     _instruments = instrumentFactory.CreateInstruments().ToList();
     _observers   = new List <IObserver <InstrumentData> >();
     _timer       = new Timer(PublishPrices, null, -1, -1);
     _random      = new Random();
 }
 public FestivalController(IStage stage)
 {
     this.stage        = stage;
     setFactory        = new SetFactory();
     performerFactory  = new PerformerFactory();
     songFactory       = new SongFactory();
     instrumentFactory = new InstrumentFactory();
 }
 public FestivalController(IStage stage)               // CHEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
 {
     this.stage             = stage;                   // CHEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
     this.instrumentFactory = new InstrumentFactory(); // CHEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
     this.performerFactory  = new PerformerFactory();  // CHEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
     this.setFactory        = new SetFactory();        // CHEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
     this.songFactory       = new SongFactory();       // CHEKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
 }
        public CompositePriceSource(IInstrumentFactory instrumentFactory,
                                    IProvidePriceGenerator priceGeneratorProvider)
        {
            _instruments   = instrumentFactory.CreateInstruments().ToList();
            _subscriptions = new Dictionary <string, List <Subscription> >();

            // creating two price generator
            _arcaPriceGenerator = priceGeneratorProvider.CreatePriceGenerator("ARCA");
            _nsdqPriceGenerator = priceGeneratorProvider.CreatePriceGenerator("NSDQ");
        }
 public FestivalController(IStage stage,
                           ISetController setController,
                           ISetFactory setFactory,
                           IInstrumentFactory instrumentFactory,
                           IPerformerFactory performerFactory,
                           ISongFactory songFactory)
 {
     this.setController     = setController;
     this.setFactory        = setFactory;
     this.instrumentFactory = instrumentFactory;
     this.performerFactory  = performerFactory;
     this.songFactory       = songFactory;
     this.stage             = stage;
     this.setController     = setController;//= new SetController(stage);
 }
 public PriceGeneratorProvider(IInstrumentFactory instrumentFactory)
 {
     _instrumentFactory = instrumentFactory;
 }