Changeset 13388 for branches/ProblemRefactoring
- Timestamp:
- 11/24/15 18:43:08 (9 years ago)
- Location:
- branches/ProblemRefactoring
- Files:
-
- 3 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Optimization.Views/3.3/CreateNewSingleEncodingDialog.Designer.cs
r11963 r13388 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CreateNewSingleEncodingDialog));48 47 this.label1 = new System.Windows.Forms.Label(); 49 48 this.encodingTypeComboBox = new System.Windows.Forms.ComboBox(); … … 126 125 this.Controls.Add(this.encodingTypeComboBox); 127 126 this.Controls.Add(this.label1); 128 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));127 this.Icon = HeuristicLab.Common.Resources.HeuristicLab.Icon; 129 128 this.MaximizeBox = false; 130 129 this.MinimizeBox = false; -
branches/ProblemRefactoring/HeuristicLab.Optimization.Views/3.3/CreateNewSingleEncodingDialog.cs
r11963 r13388 23 23 using System.Collections.Generic; 24 24 using System.Windows.Forms; 25 using HeuristicLab.Optimization;26 25 using HeuristicLab.PluginInfrastructure; 27 26 … … 46 45 var encodings = ApplicationManager.Manager.GetTypes(typeof(IEncoding)); 47 46 foreach (var enc in encodings) { 48 if (enc != typeof( MultiEncoding))47 if (enc != typeof(CombinedEncoding)) 49 48 encodingTypeComboBox.Items.Add(enc); 50 49 } -
branches/ProblemRefactoring/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj
r13336 r13388 142 142 <DependentUpon>BatchRunView.cs</DependentUpon> 143 143 </Compile> 144 <Compile Include="CreateNewSingleEncodingDialog.cs"> 145 <SubType>Form</SubType> 146 </Compile> 147 <Compile Include="CreateNewSingleEncodingDialog.Designer.cs"> 148 <DependentUpon>CreateNewSingleEncodingDialog.cs</DependentUpon> 149 </Compile> 144 150 <Compile Include="ISolutionSimilarityCalculatorView.cs"> 145 151 <SubType>UserControl</SubType> … … 153 159 <Compile Include="ExperimentListView.Designer.cs"> 154 160 <DependentUpon>ExperimentListView.cs</DependentUpon> 161 </Compile> 162 <Compile Include="MultiEncodingView.cs"> 163 <SubType>UserControl</SubType> 164 </Compile> 165 <Compile Include="MultiEncodingView.Designer.cs"> 166 <DependentUpon>MultiEncodingView.cs</DependentUpon> 155 167 </Compile> 156 168 <Compile Include="Plugin.cs" /> -
branches/ProblemRefactoring/HeuristicLab.Optimization.Views/3.3/MultiEncodingView.cs
r11963 r13388 30 30 31 31 namespace HeuristicLab.Optimization.Views { 32 [View(" MultiEncoding View")]33 [Content(typeof( MultiEncoding), IsDefaultView = true)]32 [View("CombinedEncoding View")] 33 [Content(typeof(CombinedEncoding), IsDefaultView = true)] 34 34 public sealed partial class MultiEncodingView : ParameterizedNamedItemView { 35 35 36 public new MultiEncoding Content {37 get { return ( MultiEncoding)base.Content; }36 public new CombinedEncoding Content { 37 get { return (CombinedEncoding)base.Content; } 38 38 set { base.Content = value; } 39 39 } … … 49 49 protected override void DeregisterContentEvents() { 50 50 base.DeregisterContentEvents(); 51 Content.EncodingsChanged -= ContentOnEncodingsChanged; 51 Content.Encodings.ItemsAdded -= ContentOnEncodingsChanged; 52 Content.Encodings.ItemsRemoved -= ContentOnEncodingsChanged; 52 53 } 53 54 54 55 protected override void RegisterContentEvents() { 55 Content.EncodingsChanged += ContentOnEncodingsChanged; 56 Content.Encodings.ItemsAdded += ContentOnEncodingsChanged; 57 Content.Encodings.ItemsRemoved += ContentOnEncodingsChanged; 56 58 base.RegisterContentEvents(); 57 59 } -
branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/MultiObjectiveProblem.cs
r13361 r13388 63 63 public virtual void Analyze(TSolution[] individuals, double[][] qualities, ResultCollection results, IRandom random) { } 64 64 65 //TODO66 //protected override void OnOperatorsChanged() {67 // base.OnOperatorsChanged();68 // if (Encoding != null) {69 // PruneSingleObjectiveOperators(Encoding);70 // var multiEncoding = Encoding as MultiEncoding;71 // if (multiEncoding != null) {72 // foreach (var encoding in multiEncoding.Encodings.ToList()) {73 // PruneSingleObjectiveOperators(encoding);74 // }75 // }76 // }77 //}78 79 //private void PruneSingleObjectiveOperators(IEncoding encoding) {80 // if (encoding != null && encoding.Operators.Any(x => x is ISingleObjectiveOperator && !(x is IMultiObjectiveOperator)))81 // encoding.Operators = encoding.Operators.Where(x => !(x is ISingleObjectiveOperator) || x is IMultiObjectiveOperator).ToList();82 //}83 84 65 protected override void OnEvaluatorChanged() { 85 66 base.OnEvaluatorChanged(); -
branches/ProblemRefactoring/HeuristicLab.Optimization/3.3/BasicProblems/SingleObjectiveProblem.cs
r13361 r13388 91 91 } 92 92 93 //TODO94 //protected override void OnOperatorsChanged() {95 // base.OnOperatorsChanged();96 // if (Encoding != null) {97 // PruneMultiObjectiveOperators(Encoding);98 // var multiEncoding = Encoding as MultiEncoding;99 // if (multiEncoding != null) {100 // foreach (var encoding in multiEncoding.Encodings.ToList()) {101 // PruneMultiObjectiveOperators(encoding);102 // }103 // }104 // }105 //}106 107 //private void PruneMultiObjectiveOperators(IEncoding<TSolution> encoding) {108 // if (encoding.Operators.Any(x => x is IMultiObjectiveOperator && !(x is ISingleObjectiveOperator)))109 // encoding.Operators = encoding.Operators.Where(x => !(x is IMultiObjectiveOperator) || x is ISingleObjectiveOperator).ToList();110 //}111 112 93 protected override void OnEvaluatorChanged() { 113 94 base.OnEvaluatorChanged(); -
branches/ProblemRefactoring/HeuristicLab.Problems.Programmable/3.3/Plugin.cs.frame
r13385 r13388 35 35 [PluginDependency("HeuristicLab.Encodings.RealVectorEncoding", "3.3")] 36 36 [PluginDependency("HeuristicLab.Encodings.PermutationEncoding", "3.3")] 37 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3. 3")]37 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.4")] 38 38 [PluginDependency("HeuristicLab.Encodings.LinearLinkageEncoding", "3.3")] 39 39 [PluginDependency("HeuristicLab.Optimization", "3.3")]
Note: See TracChangeset
for help on using the changeset viewer.