public SolutionsMessageHandler(IProblemManager manager, IMessagesSender sender, IBackupServerManager backups,
                                IBackupSender backupSender, ICsDataStore nodeStore)
     : base(manager, sender, backupSender)
 {
     this.backups   = backups;
     this.nodeStore = nodeStore;
 }
示例#2
0
 public SendServerStateToBackup(IMessagesSender sender, Func <ITcpClient> clientFactory, ICsDataStore dataStore,
                                IMediator mediator, IProblemManager problemManager, CommunicationServerStorage communicationServerStorage)
 {
     this.sender                     = sender;
     this.clientFactory              = clientFactory;
     this.dataStore                  = dataStore;
     this.mediator                   = mediator;
     this.problemManager             = problemManager;
     this.communicationServerStorage = communicationServerStorage;
 }
示例#3
0
        public SendServerStateToBackupTests()
        {
            sender                     = A.Fake <IMessagesSender>();
            dataStore                  = A.Fake <ICsDataStore>();
            tcpClient                  = A.Fake <ITcpClient>();
            mediator                   = A.Fake <IMediator>();
            problemManager             = A.Fake <IProblemManager>();
            communicationServerStorage = A.Fake <CommunicationServerStorage>();


            A.CallTo(() => dataStore.ConnectedNodes).Returns(new[] { new NodeInfo(123, "test", new string[0]) });

            handler = new SendServerStateToBackup(sender, () => tcpClient, dataStore, mediator, problemManager, communicationServerStorage);
        }
示例#4
0
 public ReactToDeadNode(IProblemManager manager)
 {
     this.manager = manager;
 }
示例#5
0
 public ProblemDispatcher(ICsDataStore nodeStore, IProblemManager manager)
 {
     this.nodeStore = nodeStore;
     this.manager   = manager;
 }
 public SolveRequestHandler(IProblemManager manager, IMessagesSender sender, IBackupSender backupSender)
     : base(manager, sender, backupSender)
 {
 }
 public SolutionRequestHandler(IProblemManager manager, IMessagesSender sender)
 {
     this.manager = manager;
     this.sender  = sender;
 }
 public BaseProblemHandler(IProblemManager manager, IMessagesSender sender, IBackupSender backupSender)
 {
     this.manager      = manager;
     this.sender       = sender;
     this.backupSender = backupSender;
 }
示例#9
0
文件: Brkga.cs 项目: Aleitox/TopBrkga
 public Brkga(IProblemManager problemManager)
 {
     ProblemManager = problemManager;
     SolutionRepository = new SolutionRepository(TopEntitiesManager.GetContext());
 }
示例#10
0
 public BackupProblemSync(IProblemManager manager)
 {
     this.manager = manager;
 }
示例#11
0
 public BackupSolvePartialProblemsHandler(IProblemManager manager)
 {
     this.manager = manager;
 }
 public BackupDivideProblemHandler(IProblemManager manager)
 {
     this.manager = manager;
 }