예제 #1
0
파일: ComputingCore.cs 프로젝트: dha01/DF2
 public ComputingCore(IFunctionRepository function_repository, IDataCellRepository data_cell_repository, ICommandRepository command_repository /*, ICommandManager command_manager*/, IDataFlowLogicsService data_flow_logics_service)
 {
     _functionRepository = function_repository;
     _dataCellRepository = data_cell_repository;
     _commandRepository  = command_repository;
     //_commandManager = command_manager;
     _dataFlowLogicsService = data_flow_logics_service;
 }
예제 #2
0
        public CommandManager(IFunctionRepository function_repository, IDataCellRepository data_cell_repository, IJobManager job_manager, ICommandRepository command_repository, ICommandService command_service)
        {
            _dataCellRepository     = data_cell_repository;
            _functionRepository     = function_repository;
            _jobManager             = job_manager;
            _jobManager.OnReliseJob = OnReliseJob;
            _commandRepository      = command_repository;
            _commandService         = command_service;

            _commandHeaders = new ConcurrentQueue <CommandHeader>();
            _readyCommands  = new ConcurrentQueue <Command>();

            _commandRepository.Subscribe(null, OnNewCommand);
        }
예제 #3
0
        /// <summary>
        /// Конструктор.
        /// </summary>
        /// <param name="job_manager">Управлеяющий пулом исполнителей.</param>
        /// <param name="preparation_command_service">Сервис подготовки команд к исполнению.</param>
        public DataFlowLogicsService(IJobManager job_manager, IPreparationCommandService preparation_command_service, IDataCellRepository data_cell_repository)
        {
            _jobManager = job_manager;
            _preparationCommandService = preparation_command_service;
            _dataCellRepository        = data_cell_repository;

            _preparationCommandService.OnPreparedCommand = OnPreparedCommand;

            _jobManager.OnReliseJob = (command) =>
            {
                OnExecutedCommand(command);
                OnFreeJob();
            };
        }
예제 #4
0
 public PreparationCommandService(IDataCellRepository data_cell_repository, IFunctionRepository function_repository)
 {
     _preparingCommands  = new ConcurrentDictionary <string, Command>();
     _dataCellRepository = data_cell_repository;
     _functionRepository = function_repository;
 }
예제 #5
0
파일: CommandService.cs 프로젝트: dha01/DF2
 public CommandService(IFunctionRepository function_repository, IDataCellRepository data_cell_repository, ICommandRepository command_repository)
 {
     _dataCellRepository = data_cell_repository;
     _functionRepository = function_repository;
     _commandRepository  = command_repository;
 }
예제 #6
0
 public FunctionRepository(IDataCellRepository data_cell_repository)
 {
     _dataCellRepository = data_cell_repository;
 }