Changeset 14613 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3
- Timestamp:
- 01/26/17 15:44:04 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.TravelingThief/3.3/TtpNetwork.cs
r14610 r14613 55 55 RegisterEvents(); 56 56 } 57 protected TtpNetwork() : base("TtpNetwork") { }57 protected TtpNetwork() : this("TtpNetwork") { } 58 58 protected TtpNetwork(string name) : base(name) { 59 59 Nodes.Add(new TtpOrchestratorNode1("Orchestrator")); … … 72 72 protected virtual void RegisterEvents() { 73 73 MetaSolver.AlgorithmChanged += MetaSolver_AlgorithmChanged; 74 RegisterAlgorithmEvents(); 74 75 } 75 76 76 protected virtual void MetaSolver_AlgorithmChanged(object sender, EventArgs e) {77 protected virtual void RegisterAlgorithmEvents() { 77 78 var algorithm = MetaSolver.Algorithm; 78 79 if (algorithm == null) return; … … 85 86 algorithm.Stopped += OnStopped; 86 87 algorithm.ExceptionOccurred += OnExceptionOccurred; 88 } 89 90 protected virtual void MetaSolver_AlgorithmChanged(object sender, EventArgs e) { 91 RegisterAlgorithmEvents(); 87 92 } 88 93
Note: See TracChangeset
for help on using the changeset viewer.