Changeset 10027
- Timestamp:
- 10/04/13 22:00:01 (11 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ConvexHullView.Designer.cs
r10007 r10027 1 1 namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views { 2 partial class ConvexHullView {2 partial class ConvexHullView<TKey, TValue> { 3 3 /// <summary> 4 4 /// Required designer variable. … … 40 40 // resultsTextBox 41 41 // 42 this.resultsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 43 | System.Windows.Forms.AnchorStyles.Left) 42 this.resultsTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 43 | System.Windows.Forms.AnchorStyles.Left) 44 44 | System.Windows.Forms.AnchorStyles.Right))); 45 45 this.resultsTextBox.Location = new System.Drawing.Point(3, 33); -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/ConvexHullView.cs
r10026 r10027 22 22 using System; 23 23 using System.Linq; 24 using HeuristicLab.Analysis.SolutionCaching.PermutationEncoding; 24 using HeuristicLab.Analysis.SolutionCaching; 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Core.Views; 26 using HeuristicLab.Encodings.PermutationEncoding;27 27 using HeuristicLab.MainForm; 28 28 29 29 namespace HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views { 30 30 [View("ConvexHull View")] 31 [Content(typeof(PermutationSolutionCache), false)] 32 public partial class ConvexHullView : ItemView { 31 [Content(typeof(SolutionCache<,>), false)] 32 public abstract partial class ConvexHullView<TKey, TValue> : ItemView 33 where TKey : Item 34 where TValue : SolutionInformation<TKey> { 33 35 public ConvexHullView() { 34 36 InitializeComponent(); 35 37 } 36 38 37 public new PermutationSolutionCacheContent {38 get { return ( PermutationSolutionCache)base.Content; }39 public new SolutionCache<TKey, TValue> Content { 40 get { return (SolutionCache<TKey, TValue>)base.Content; } 39 41 set { base.Content = value; } 40 42 } 41 43 42 protected override void OnContentChanged() { 43 base.OnContentChanged(); 44 45 if (Content != null) { } 46 } 47 48 private void testConvexHullButton_Click(object sender, System.EventArgs e) { 44 protected void testConvexHullButton_Click(object sender, System.EventArgs e) { 49 45 for (int i = 0; i < 20; i++) { 50 46 var sols = Content.GetSolutionsFromGeneration(i); … … 58 54 } 59 55 60 private double[] ConvertPermutationToVertex(Permutation p) { 61 double[] vertex = p.Select(x => (double)x).ToArray(); 62 return vertex; 63 } 56 protected abstract double[] ConvertPermutationToVertex(TKey key); 64 57 } 65 58 } -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views/3.3/HeuristicLab.Analysis.AlgorithmBehavior.Analyzers.Views-3.3.csproj
r10026 r10027 74 74 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Encodings.PermutationEncoding-3.3.dll</HintPath> 75 75 </Reference> 76 <Reference Include="HeuristicLab.Encodings.RealVectorEncoding-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 77 <SpecificVersion>False</SpecificVersion> 78 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Encodings.RealVectorEncoding-3.3.dll</HintPath> 79 <Private>False</Private> 80 </Reference> 76 81 <Reference Include="HeuristicLab.MainForm-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 77 82 <Private>False</Private> … … 131 136 <DependentUpon>ConvexHullView.cs</DependentUpon> 132 137 </Compile> 138 <Compile Include="RealVectorConvexHullView.cs"> 139 <SubType>UserControl</SubType> 140 </Compile> 133 141 <Compile Include="CreateExperimentDialog.cs"> 134 142 <SubType>Form</SubType> … … 144 152 <Compile Include="ParameterInfluenceView.designer.cs"> 145 153 <DependentUpon>ParameterInfluenceView.cs</DependentUpon> 154 </Compile> 155 <Compile Include="PermutationConvexHullView.cs"> 156 <SubType>UserControl</SubType> 146 157 </Compile> 147 158 <Compile Include="Plugin.cs" />
Note: See TracChangeset
for help on using the changeset viewer.