Changeset 17517 for branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Algorithms/EngineAlgorithm.cs
- Timestamp:
- 04/20/20 17:31:31 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Optimization/3.3/Algorithms/EngineAlgorithm.cs
r17513 r17517 76 76 } 77 77 78 public override ResultCollection Results {79 get {80 return (ResultCollection)globalScope.Variables["Results"].Value;81 }82 }83 84 78 protected EngineAlgorithm() 85 79 : base() { 86 80 globalScope = new Scope("Global Scope"); 87 globalScope.Variables.Add(new Variable("Results", new ResultCollection()));81 globalScope.Variables.Add(new Variable("Results", Results)); 88 82 operatorGraph = new OperatorGraph(); 89 83 Initialize(); … … 92 86 : base(name) { 93 87 globalScope = new Scope("Global Scope"); 94 globalScope.Variables.Add(new Variable("Results", new ResultCollection()));88 globalScope.Variables.Add(new Variable("Results", Results)); 95 89 operatorGraph = new OperatorGraph(); 96 90 Initialize(); … … 99 93 : base(name, parameters) { 100 94 globalScope = new Scope("Global Scope"); 101 globalScope.Variables.Add(new Variable("Results", new ResultCollection()));95 globalScope.Variables.Add(new Variable("Results", Results)); 102 96 operatorGraph = new OperatorGraph(); 103 97 Initialize(); … … 106 100 : base(name, description) { 107 101 globalScope = new Scope("Global Scope"); 108 globalScope.Variables.Add(new Variable("Results", new ResultCollection()));102 globalScope.Variables.Add(new Variable("Results", Results)); 109 103 operatorGraph = new OperatorGraph(); 110 104 Initialize(); … … 113 107 : base(name, description, parameters) { 114 108 globalScope = new Scope("Global Scope"); 115 globalScope.Variables.Add(new Variable("Results", new ResultCollection()));109 globalScope.Variables.Add(new Variable("Results", Results)); 116 110 operatorGraph = new OperatorGraph(); 117 111 Initialize(); … … 160 154 base.Prepare(); 161 155 globalScope.Clear(); 162 globalScope.Variables.Add(new Variable("Results", new ResultCollection()));156 globalScope.Variables.Add(new Variable("Results", Results)); 163 157 164 158 if ((engine != null) && (operatorGraph.InitialOperator != null)) {
Note: See TracChangeset
for help on using the changeset viewer.