Changeset 8865 for branches/HeuristicLab.Analysis.AlgorithmBehavior
- Timestamp:
- 10/31/12 10:11:56 (12 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/CrossoverPerformanceAnalyzer.cs
r8864 r8865 180 180 } 181 181 successHelper.InitializeChart(Results, "Successfull Crossovers", successfullCXRowNames.ToArray()); 182 Reset(); 182 183 } 183 184 … … 252 253 parentDiversityHelper.AddPoint(curGenStr, diversityPointParent); 253 254 parentQualityHelper.AddPoint(curGenStr, qualityPointParent); 254 } else { 255 Reset(); 256 } 255 } 257 256 258 257 return base.Apply(); -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers/3.3/InitializableOperator.cs
r8797 r8865 59 59 protected void Initialize() { 60 60 if (Initialized.ActualValue == null) { 61 Initialized.ActualValue = new BoolValue(true);61 AddVariableToGlobalScope(guid.ToString(), "Indicates if the operator is initialized.", new BoolValue(true)); 62 62 InitializeAction(); 63 63 } else if (!Initialized.ActualValue.Value) { … … 67 67 } 68 68 69 private void AddVariableToGlobalScope(string name, string description, BoolValue value) { 70 var globalScope = ExecutionContext; 71 while (globalScope.Parent != null) { 72 globalScope = globalScope.Parent; 73 } 74 75 globalScope.Scope.Variables.Add(new Variable(name, description, value)); 76 } 77 69 78 protected virtual void InitializeAction() { } 70 79 }
Note: See TracChangeset
for help on using the changeset viewer.