- Timestamp:
- 11/28/12 11:16:11 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/BenchmarkAlgorithm.cs
r8930 r8962 159 159 name = value == null ? string.Empty : value; 160 160 OnNameChanged(); 161 runs. AlgorithmName = name;161 runs.OptimizerName = name; 162 162 } 163 163 } … … 239 239 storeAlgorithmInEachRun = false; 240 240 runsCounter = 0; 241 Runs = new RunCollection() { AlgorithmName = name };241 Runs = new RunCollection() { OptimizerName = name }; 242 242 results = new ResultCollection(); 243 243 CreateParameters(); -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/CrossValidation.cs
r8836 r8962 45 45 46 46 executionState = ExecutionState.Stopped; 47 runs = new RunCollection { AlgorithmName = name };47 runs = new RunCollection { OptimizerName = name }; 48 48 runsCounter = 0; 49 49 … … 249 249 protected override void OnNameChanged() { 250 250 base.OnNameChanged(); 251 Runs. AlgorithmName = Name;251 Runs.OptimizerName = Name; 252 252 } 253 253 -
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r8939 r8962 539 539 private RunCollection GetAllRunsFromJob(RefreshableJob job) { 540 540 if (job != null) { 541 RunCollection runs = new RunCollection() { AlgorithmName = job.ItemName };541 RunCollection runs = new RunCollection() { OptimizerName = job.ItemName }; 542 542 543 543 foreach (HiveTask subTask in job.HiveTasks) { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r8738 r8962 75 75 Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 76 76 Content.UpdateOfRunsInProgressChanged += new EventHandler(Content_UpdateOfRunsInProgressChanged); 77 Content. AlgorithmNameChanged += new EventHandler(Content_AlgorithmNameChanged);77 Content.OptimizerNameChanged += new EventHandler(Content_AlgorithmNameChanged); 78 78 RegisterRunEvents(Content); 79 79 } … … 86 86 Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 87 87 Content.UpdateOfRunsInProgressChanged -= new EventHandler(Content_UpdateOfRunsInProgressChanged); 88 Content. AlgorithmNameChanged -= new EventHandler(Content_AlgorithmNameChanged);88 Content.OptimizerNameChanged -= new EventHandler(Content_AlgorithmNameChanged); 89 89 DeregisterRunEvents(Content); 90 90 } … … 159 159 160 160 private void UpdateCaption() { 161 Caption = Content != null ? Content. AlgorithmName + "Box Plots" : ViewAttribute.GetViewName(GetType());161 Caption = Content != null ? Content.OptimizerName + " Box Plots" : ViewAttribute.GetViewName(GetType()); 162 162 } 163 163 -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs
r8876 r8962 93 93 Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 94 94 Content.UpdateOfRunsInProgressChanged += new EventHandler(Content_UpdateOfRunsInProgressChanged); 95 Content. AlgorithmNameChanged += new EventHandler(Content_AlgorithmNameChanged);95 Content.OptimizerNameChanged += new EventHandler(Content_AlgorithmNameChanged); 96 96 RegisterRunEvents(Content); 97 97 } … … 104 104 Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 105 105 Content.UpdateOfRunsInProgressChanged -= new EventHandler(Content_UpdateOfRunsInProgressChanged); 106 Content. AlgorithmNameChanged -= new EventHandler(Content_AlgorithmNameChanged);106 Content.OptimizerNameChanged -= new EventHandler(Content_AlgorithmNameChanged); 107 107 DeregisterRunEvents(Content); 108 108 } … … 175 175 176 176 private void UpdateCaption() { 177 Caption = Content != null ? Content. AlgorithmName + "Bubble Chart" : ViewAttribute.GetViewName(GetType());177 Caption = Content != null ? Content.OptimizerName + " Bubble Chart" : ViewAttribute.GetViewName(GetType()); 178 178 } 179 179 -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionDataTableView.cs
r8925 r8962 63 63 Content.CollectionReset += new CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 64 64 Content.UpdateOfRunsInProgressChanged += new EventHandler(Content_UpdateOfRunsInProgressChanged); 65 Content. AlgorithmNameChanged += new EventHandler(Content_AlgorithmNameChanged);65 Content.OptimizerNameChanged += new EventHandler(Content_AlgorithmNameChanged); 66 66 } 67 67 protected override void DeregisterContentEvents() { … … 70 70 Content.CollectionReset -= new CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 71 71 Content.UpdateOfRunsInProgressChanged -= new EventHandler(Content_UpdateOfRunsInProgressChanged); 72 Content. AlgorithmNameChanged -= new EventHandler(Content_AlgorithmNameChanged);72 Content.OptimizerNameChanged -= new EventHandler(Content_AlgorithmNameChanged); 73 73 base.DeregisterContentEvents(); 74 74 } … … 204 204 205 205 private void UpdateCaption() { 206 Caption = Content != null ? Content. AlgorithmName + "Data Table" : ViewAttribute.GetViewName(GetType());206 Caption = Content != null ? Content.OptimizerName + " Data Table" : ViewAttribute.GetViewName(GetType()); 207 207 } 208 208 -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTabularView.cs
r8738 r8962 65 65 Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 66 66 Content.UpdateOfRunsInProgressChanged += new EventHandler(Content_UpdateOfRunsInProgressChanged); 67 Content. AlgorithmNameChanged += new EventHandler(Content_AlgorithmNameChanged);67 Content.OptimizerNameChanged += new EventHandler(Content_AlgorithmNameChanged); 68 68 RegisterRunEvents(Content); 69 69 } … … 78 78 Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 79 79 Content.UpdateOfRunsInProgressChanged -= new EventHandler(Content_UpdateOfRunsInProgressChanged); 80 Content. AlgorithmNameChanged -= new EventHandler(Content_AlgorithmNameChanged);80 Content.OptimizerNameChanged -= new EventHandler(Content_AlgorithmNameChanged); 81 81 DeregisterRunEvents(Content); 82 82 } … … 111 111 112 112 private void UpdateCaption() { 113 Caption = Content != null ? Content. AlgorithmName + "Tabular View" : ViewAttribute.GetViewName(GetType());113 Caption = Content != null ? Content.OptimizerName + " Tabular View" : ViewAttribute.GetViewName(GetType()); 114 114 } 115 115 -
trunk/sources/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs
r8738 r8962 134 134 storeAlgorithmInEachRun = false; 135 135 runsCounter = 0; 136 Runs = new RunCollection { AlgorithmName = Name };136 Runs = new RunCollection { OptimizerName = Name }; 137 137 } 138 138 protected Algorithm(string name) … … 142 142 storeAlgorithmInEachRun = false; 143 143 runsCounter = 0; 144 Runs = new RunCollection { AlgorithmName = Name };144 Runs = new RunCollection { OptimizerName = Name }; 145 145 } 146 146 protected Algorithm(string name, ParameterCollection parameters) … … 150 150 storeAlgorithmInEachRun = false; 151 151 runsCounter = 0; 152 Runs = new RunCollection { AlgorithmName = Name };152 Runs = new RunCollection { OptimizerName = Name }; 153 153 } 154 154 protected Algorithm(string name, string description) … … 158 158 storeAlgorithmInEachRun = false; 159 159 runsCounter = 0; 160 Runs = new RunCollection { AlgorithmName = Name };160 Runs = new RunCollection { OptimizerName = Name }; 161 161 } 162 162 protected Algorithm(string name, string description, ParameterCollection parameters) … … 166 166 storeAlgorithmInEachRun = false; 167 167 runsCounter = 0; 168 Runs = new RunCollection { AlgorithmName = Name };168 Runs = new RunCollection { OptimizerName = Name }; 169 169 } 170 170 [StorableConstructor] … … 252 252 protected override void OnNameChanged() { 253 253 base.OnNameChanged(); 254 Runs. AlgorithmName = Name;254 Runs.OptimizerName = Name; 255 255 } 256 256 -
trunk/sources/HeuristicLab.Optimization/3.3/BatchRun.cs
r8738 r8962 175 175 repetitions = 10; 176 176 repetitionsCounter = 0; 177 Runs = new RunCollection { AlgorithmName = Name };177 Runs = new RunCollection { OptimizerName = Name }; 178 178 } 179 179 public BatchRun(string name) … … 185 185 repetitions = 10; 186 186 repetitionsCounter = 0; 187 Runs = new RunCollection { AlgorithmName = Name };187 Runs = new RunCollection { OptimizerName = Name }; 188 188 } 189 189 public BatchRun(string name, string description) … … 194 194 repetitions = 10; 195 195 repetitionsCounter = 0; 196 Runs = new RunCollection { AlgorithmName = Name };196 Runs = new RunCollection { OptimizerName = Name }; 197 197 } 198 198 [StorableConstructor] … … 280 280 protected override void OnNameChanged() { 281 281 base.OnNameChanged(); 282 runs. AlgorithmName = Name;282 runs.OptimizerName = Name; 283 283 } 284 284 -
trunk/sources/HeuristicLab.Optimization/3.3/Experiment.cs
r8738 r8962 117 117 executionTime = TimeSpan.Zero; 118 118 optimizers = new OptimizerList(); 119 Runs = new RunCollection { AlgorithmName = Name };119 Runs = new RunCollection { OptimizerName = Name }; 120 120 Initialize(); 121 121 } … … 126 126 executionTime = TimeSpan.Zero; 127 127 optimizers = new OptimizerList(); 128 Runs = new RunCollection { AlgorithmName = Name };128 Runs = new RunCollection { OptimizerName = Name }; 129 129 Initialize(); 130 130 } … … 134 134 executionTime = TimeSpan.Zero; 135 135 optimizers = new OptimizerList(); 136 Runs = new RunCollection { AlgorithmName = Name };136 Runs = new RunCollection { OptimizerName = Name }; 137 137 Initialize(); 138 138 } … … 232 232 protected override void OnNameChanged() { 233 233 base.OnNameChanged(); 234 Runs. AlgorithmName = Name;234 Runs.OptimizerName = Name; 235 235 } 236 236 -
trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs
r8738 r8962 44 44 : base(original, cloner) { 45 45 updateOfRunsInProgress = false; 46 algorithmName = original.algorithmName;46 optimizerName = original.optimizerName; 47 47 48 48 resultNames = new List<string>(original.resultNames); … … 106 106 } 107 107 108 private string algorithmName = string.Empty;109 [Storable] 110 public string AlgorithmName {111 get { return algorithmName; }108 private string optimizerName = string.Empty; 109 [Storable] 110 public string OptimizerName { 111 get { return optimizerName; } 112 112 set { 113 if (value != algorithmName && !string.IsNullOrEmpty(value)) {114 algorithmName = value;115 On AlgorithmNameChanged();113 if (value != optimizerName && !string.IsNullOrEmpty(value)) { 114 optimizerName = value; 115 OnOptimizerNameChanged(); 116 116 } 117 117 } 118 } 119 120 [Storable(AllowOneWay = true)] 121 private string AlgorithmName { 122 set { optimizerName = value; } 118 123 } 119 124 … … 137 142 } 138 143 139 public event EventHandler AlgorithmNameChanged;140 protected virtual void On AlgorithmNameChanged() {141 var handler = AlgorithmNameChanged;144 public event EventHandler OptimizerNameChanged; 145 protected virtual void OnOptimizerNameChanged() { 146 var handler = OptimizerNameChanged; 142 147 if (handler != null) handler(this, EventArgs.Empty); 143 148 }
Note: See TracChangeset
for help on using the changeset viewer.