- Timestamp:
- 11/27/14 11:23:37 (10 years ago)
- Location:
- branches/Breadcrumbs
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Breadcrumbs
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.Designer.cs
r9476 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBoxPlotView.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Linq; 25 26 using System.Windows.Forms; … … 92 93 protected virtual void RegisterRunEvents(IEnumerable<IRun> runs) { 93 94 foreach (IRun run in runs) 94 run. Changed += new EventHandler(run_Changed);95 run.PropertyChanged += run_PropertyChanged; 95 96 } 96 97 protected virtual void DeregisterRunEvents(IEnumerable<IRun> runs) { 97 98 foreach (IRun run in runs) 98 run. Changed -= new EventHandler(run_Changed);99 run.PropertyChanged -= run_PropertyChanged; 99 100 } 100 101 … … 122 123 Invoke(new EventHandler(Content_Reset), sender, e); 123 124 else { 124 this.categoricalMapping.Clear();125 125 UpdateDataPoints(); 126 126 UpdateAxisLabels(); … … 134 134 } 135 135 } 136 private void run_ Changed(object sender,EventArgs e) {136 private void run_PropertyChanged(object sender, PropertyChangedEventArgs e) { 137 137 if (InvokeRequired) 138 this.Invoke( new EventHandler(run_Changed), sender, e);138 this.Invoke((Action<object, PropertyChangedEventArgs>)run_PropertyChanged, sender, e); 139 139 else if (!suppressUpdates) { 140 UpdateDataPoints(); 140 if (e.PropertyName == "Visible") 141 UpdateDataPoints(); 141 142 } 142 143 } … … 189 190 190 191 private void UpdateDataPoints() { 192 this.categoricalMapping.Clear(); 191 193 this.chart.Series.Clear(); 192 194 this.seriesCache.Clear(); … … 216 218 if (datapoint != null) { 217 219 IRun run = (IRun)datapoint.Tag; 218 string selectedAxis = (string)xAxisComboBox.SelectedItem;220 string selectedAxis = xAxisValue; 219 221 IItem value = null; 220 222 … … 234 236 } 235 237 matrix.ColumnNames = columnNames; 236 matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", " Average", "Median", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" };238 matrix.RowNames = new string[] { "Count", "Minimum", "Maximum", "Median", "Average", "Standard Deviation", "Variance", "25th Percentile", "75th Percentile" }; 237 239 238 240 for (int i = 0; i < seriesCache.Count; i++) { … … 242 244 matrix[1, i] = seriesValues.Min(); 243 245 matrix[2, i] = seriesValues.Max(); 244 matrix[3, i] = seriesValues. Average();245 matrix[4, i] = seriesValues. Median();246 matrix[3, i] = seriesValues.Median(); 247 matrix[4, i] = seriesValues.Average(); 246 248 matrix[5, i] = seriesValues.StandardDeviation(); 247 249 matrix[6, i] = seriesValues.Variance(); … … 325 327 } 326 328 } 327 private double GetCategoricalValue(int dimension, string value) {329 private double? GetCategoricalValue(int dimension, string value) { 328 330 if (!this.categoricalMapping.ContainsKey(dimension)) { 329 331 this.categoricalMapping[dimension] = new Dictionary<object, double>(); … … 336 338 } 337 339 } 340 if (!this.categoricalMapping[dimension].ContainsKey(value)) return null; 338 341 return this.categoricalMapping[dimension][value]; 339 342 } 340 private double GetValue(IRun run, AxisDimension axisDimension) {341 double value = double.NaN;343 private double? GetValue(IRun run, AxisDimension axisDimension) { 344 double? value = double.NaN; 342 345 switch (axisDimension) { 343 346 case AxisDimension.Color: { … … 373 376 Axis yAxis = this.chart.ChartAreas[BoxPlotChartAreaName].AxisY; 374 377 int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count(); 375 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount); 376 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount); 377 if (xAxisComboBox.SelectedItem != null) 378 xAxis.Title = xAxisComboBox.SelectedItem.ToString(); 379 if (yAxisComboBox.SelectedItem != null) 380 yAxis.Title = yAxisComboBox.SelectedItem.ToString(); 378 //mkommend: combobox.SelectedIndex could not be used as this changes during hoovering over possible values 379 var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue); 380 var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue); 381 SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount); 382 SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount); 383 if (xAxisValue != null) 384 xAxis.Title = xAxisValue; 385 if (yAxisValue != null) 386 yAxis.Title = yAxisValue; 381 387 } 382 388 -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.Designer.cs
r9477 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionBubbleChartView.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Drawing; 25 26 using System.Linq; … … 56 57 private bool suppressUpdates = false; 57 58 58 private RunCollectionContentConstraint visibilityConstraint = new RunCollectionContentConstraint() { Active = true };59 private readonly RunCollectionContentConstraint visibilityConstraint = new RunCollectionContentConstraint() { Active = true }; 59 60 60 61 public RunCollectionBubbleChartView() { … … 116 117 protected virtual void RegisterRunEvents(IEnumerable<IRun> runs) { 117 118 foreach (IRun run in runs) 118 run. Changed += new EventHandler(run_Changed);119 run.PropertyChanged += run_PropertyChanged; 119 120 } 120 121 protected virtual void DeregisterRunEvents(IEnumerable<IRun> runs) { 121 122 foreach (IRun run in runs) 122 run. Changed -= new EventHandler(run_Changed);123 run.PropertyChanged -= run_PropertyChanged; 123 124 } 124 125 … … 133 134 RegisterRunEvents(e.Items); 134 135 } 135 private void run_ Changed(object sender,EventArgs e) {136 private void run_PropertyChanged(object sender, PropertyChangedEventArgs e) { 136 137 if (suppressUpdates) return; 137 138 if (InvokeRequired) 138 this.Invoke( new EventHandler(run_Changed), sender, e);139 this.Invoke((Action<object, PropertyChangedEventArgs>)run_PropertyChanged, sender, e); 139 140 else { 140 IRun run = (IRun)sender; 141 UpdateRun(run); 142 UpdateCursorInterval(); 143 chart.ChartAreas[0].RecalculateAxesScale(); 144 UpdateAxisLabels(); 141 if (e.PropertyName == "Color" || e.PropertyName == "Visible") { 142 IRun run = (IRun)sender; 143 UpdateRun(run); 144 UpdateCursorInterval(); 145 chart.ChartAreas[0].RecalculateAxesScale(); 146 UpdateAxisLabels(); 147 } 145 148 } 146 149 } … … 153 156 if (suppressUpdates) return; 154 157 155 foreach (var run in Content) UpdateRun(run); 156 UpdateMarkerSizes(); 157 UpdateCursorInterval(); 158 chart.ChartAreas[0].RecalculateAxesScale(); 158 UpdateDataPoints(); 159 159 UpdateAxisLabels(); 160 160 } … … 190 190 protected override void OnContentChanged() { 191 191 base.OnContentChanged(); 192 this.categoricalMapping.Clear();193 192 UpdateComboBoxes(); 194 193 UpdateDataPoints(); 195 194 UpdateCaption(); 196 RebuildInverseIndex();197 195 } 198 196 … … 267 265 Invoke(new EventHandler(Content_Reset), sender, e); 268 266 else { 269 this.categoricalMapping.Clear();270 RebuildInverseIndex();271 267 UpdateDataPoints(); 272 268 UpdateAxisLabels(); … … 278 274 series.Points.Clear(); 279 275 runToDataPointMapping.Clear(); 276 categoricalMapping.Clear(); 280 277 selectedRuns.Clear(); 278 RebuildInverseIndex(); 281 279 282 280 chart.ChartAreas[0].AxisX.IsMarginVisible = xAxisValue != AxisDimension.Index.ToString(); … … 438 436 } 439 437 } 440 private double GetCategoricalValue(int dimension, string value) {438 private double? GetCategoricalValue(int dimension, string value) { 441 439 if (!this.categoricalMapping.ContainsKey(dimension)) { 442 440 this.categoricalMapping[dimension] = new Dictionary<object, double>(); … … 449 447 } 450 448 } 449 if (!this.categoricalMapping[dimension].ContainsKey(value)) return null; 451 450 return this.categoricalMapping[dimension][value]; 452 451 } … … 667 666 Axis yAxis = this.chart.ChartAreas[0].AxisY; 668 667 int axisDimensionCount = Enum.GetNames(typeof(AxisDimension)).Count(); 669 SetCustomAxisLabels(xAxis, xAxisComboBox.SelectedIndex - axisDimensionCount); 670 SetCustomAxisLabels(yAxis, yAxisComboBox.SelectedIndex - axisDimensionCount); 671 if (xAxisComboBox.SelectedItem != null) 672 xAxis.Title = xAxisComboBox.SelectedItem.ToString(); 673 if (yAxisComboBox.SelectedItem != null) 674 yAxis.Title = yAxisComboBox.SelectedItem.ToString(); 668 //mkommend: combobox.SelectedIndex could not be used as this changes during hovering over possible values 669 var xSAxisSelectedIndex = xAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(xAxisValue); 670 var ySAxisSelectedIndex = yAxisValue == null ? 0 : xAxisComboBox.Items.IndexOf(yAxisValue); 671 SetCustomAxisLabels(xAxis, xSAxisSelectedIndex - axisDimensionCount); 672 SetCustomAxisLabels(yAxis, ySAxisSelectedIndex - axisDimensionCount); 673 if (xAxisValue != null) 674 xAxis.Title = xAxisValue; 675 if (yAxisValue != null) 676 yAxis.Title = yAxisValue; 675 677 } 676 678 … … 723 725 } 724 726 private void hideRunsToolStripMenuItem_Click(object sender, EventArgs e) { 725 HideRuns(selectedRuns); 727 //ToList is necessary to prevent lazy evaluation 728 HideRuns(selectedRuns.ToList()); 726 729 //could not use ClearSelectedRuns as the runs are not visible anymore 727 730 selectedRuns.Clear(); 728 731 } 729 732 private void hideRunsButton_Click(object sender, EventArgs e) { 730 HideRuns(selectedRuns); 733 //ToList is necessary to prevent lazy evaluation 734 HideRuns(selectedRuns.ToList()); 731 735 //could not use ClearSelectedRuns as the runs are not visible anymore 732 736 selectedRuns.Clear(); -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionChartAggregationView.Designer.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionChartAggregationView.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Linq; 25 26 using System.Windows.Forms; … … 111 112 112 113 private void RegisterRunEvents(IRun run) { 113 run. Changed += new System.EventHandler(run_Changed);114 run.PropertyChanged += run_PropertyChanged; 114 115 } 115 116 private void DeregisterRunEvents(IRun run) { 116 run. Changed -= new System.EventHandler(run_Changed);117 } 118 private void run_ Changed(object sender,EventArgs e) {117 run.PropertyChanged -= run_PropertyChanged; 118 } 119 private void run_PropertyChanged(object sender, PropertyChangedEventArgs e) { 119 120 if (suppressUpdates) return; 120 var run = (IRun)sender; 121 UpdateRuns(new IRun[] { run }); 121 if (InvokeRequired) { 122 Invoke((Action<object, PropertyChangedEventArgs>)run_PropertyChanged, sender, e); 123 } else { 124 var run = (IRun)sender; 125 if (e.PropertyName == "Color" || e.PropertyName == "Visible") 126 UpdateRuns(new IRun[] { run }); 127 } 122 128 } 123 129 #endregion -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.Designer.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Linq; 25 26 using System.Windows.Forms; … … 70 71 private void RegisterRunEvents(IEnumerable<IRun> runs) { 71 72 foreach (IRun run in runs) 72 run. Changed += new EventHandler(run_Changed);73 run.PropertyChanged += run_PropertyChanged; 73 74 } 74 75 protected override void DeregisterContentEvents() { … … 83 84 private void DeregisterRunEvents(IEnumerable<IRun> runs) { 84 85 foreach (IRun run in runs) 85 run. Changed -= new EventHandler(run_Changed);86 run.PropertyChanged -= run_PropertyChanged; 86 87 } 87 88 private void Content_CollectionReset(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { … … 100 101 else UpdateCaption(); 101 102 } 102 private void run_ Changed(object sender,EventArgs e) {103 private void run_PropertyChanged(object sender, PropertyChangedEventArgs e) { 103 104 if (suppressUpdates) return; 104 105 if (InvokeRequired) 105 this.Invoke( new EventHandler(run_Changed), sender, e);106 this.Invoke((Action<object, PropertyChangedEventArgs>)run_PropertyChanged, sender, e); 106 107 else { 107 108 IRun run = (IRun)sender; 108 UpdateRun(run); 109 if (e.PropertyName == "Color" || e.PropertyName == "Visible") 110 UpdateRun(run); 109 111 } 110 112 } -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.Designer.cs
r10106 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.cs
r11591 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections; 24 24 using System.Collections.Generic; 25 using System.ComponentModel; 25 26 using System.Drawing; 26 27 using System.Linq; … … 79 80 item.ItemImageChanged -= new EventHandler(Item_ItemImageChanged); 80 81 item.ToStringChanged -= new EventHandler(Item_ToStringChanged); 81 item. Changed -= new EventHandler(Item_Changed);82 item.PropertyChanged -= Item_PropertyChanged; 82 83 } 83 84 private void RegisterItemEvents(IRun item) { 84 85 item.ItemImageChanged += new EventHandler(Item_ItemImageChanged); 85 86 item.ToStringChanged += new EventHandler(Item_ToStringChanged); 86 item. Changed += new EventHandler(Item_Changed);87 item.PropertyChanged += Item_PropertyChanged; 87 88 } 88 89 … … 385 386 try { 386 387 RunCollection.Modify(); 387 } 388 finally { 388 } finally { 389 389 ReadOnly = false; 390 390 } … … 462 462 } 463 463 } 464 private void Item_ Changed(object sender,EventArgs e) {464 private void Item_PropertyChanged(object sender, PropertyChangedEventArgs e) { 465 465 if (InvokeRequired) 466 this.Invoke( new EventHandler(Item_Changed), sender, e);466 this.Invoke((Action<object, PropertyChangedEventArgs>)Item_PropertyChanged, sender, e); 467 467 else { 468 468 IRun run = (IRun)sender; 469 UpdateRun(run); 469 if (e.PropertyName == "Color" || e.PropertyName == "Visible") 470 UpdateRun(run); 470 471 } 471 472 }
Note: See TracChangeset
for help on using the changeset viewer.