Changeset 17687 for branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols
- Timestamp:
- 07/19/20 19:07:40 (4 years ago)
- Location:
- branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
-
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/ConstantView.Designer.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/ConstantView.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/LaggedVariableView.Designer.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 63 63 // weightInitializationMuTextBox 64 64 // 65 this.weightInitializationMuTextBox.Size = new System.Drawing.Size(293, 20); 65 66 this.toolTip.SetToolTip(this.weightInitializationMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" + 66 67 "al weights."); … … 69 70 // 70 71 this.initializationGroupBox.Location = new System.Drawing.Point(6, 7); 71 this.initializationGroupBox.Size = new System.Drawing.Size(3 79, 73);72 this.initializationGroupBox.Size = new System.Drawing.Size(391, 73); 72 73 // 73 74 // weightSigmaLabel … … 77 78 // weightInitializationSigmaTextBox 78 79 // 80 this.weightInitializationSigmaTextBox.Size = new System.Drawing.Size(293, 20); 79 81 this.toolTip.SetToolTip(this.weightInitializationSigmaTextBox, "The sigma parameter for the normal distribution from which to sample the initial " + 80 82 "weights."); … … 83 85 // 84 86 this.mutationGroupBox.Location = new System.Drawing.Point(6, 86); 85 this.mutationGroupBox.Size = new System.Drawing.Size(3 79, 73);87 this.mutationGroupBox.Size = new System.Drawing.Size(391, 95); 86 88 // 87 89 // multiplicativeWeightChangeLabel 88 90 // 91 this.multiplicativeWeightChangeLabel.TabIndex = 4; 89 92 this.toolTip.SetToolTip(this.multiplicativeWeightChangeLabel, "The sigma parameter for the normal distribution to use to sample a multiplicative" + 90 93 " change in weight."); … … 92 95 // multiplicativeWeightChangeSigmaTextBox 93 96 // 97 this.multiplicativeWeightChangeSigmaTextBox.TabIndex = 5; 94 98 this.toolTip.SetToolTip(this.multiplicativeWeightChangeSigmaTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample a multiplica" + 95 99 "tive change in weight."); … … 97 101 // additiveWeightChangeLabel 98 102 // 103 this.additiveWeightChangeLabel.TabIndex = 2; 99 104 this.toolTip.SetToolTip(this.additiveWeightChangeLabel, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + 100 105 "change in weight."); … … 102 107 // additiveWeightChangeSigmaTextBox 103 108 // 109 this.additiveWeightChangeSigmaTextBox.TabIndex = 3; 104 110 this.toolTip.SetToolTip(this.additiveWeightChangeSigmaTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + 105 111 "change in weight."); … … 111 117 // parametersTabPage 112 118 // 113 this.parametersTabPage.Size = new System.Drawing.Size(4 00, 149);119 this.parametersTabPage.Size = new System.Drawing.Size(412, 208); 114 120 // 115 121 // tabControl 116 122 // 117 123 this.tabControl.Location = new System.Drawing.Point(0, 179); 118 this.tabControl.Size = new System.Drawing.Size(408, 175); 119 this.tabControl.TabIndex = 9; 124 this.tabControl.Size = new System.Drawing.Size(420, 234); 125 this.tabControl.TabIndex = 13; 126 // 127 // varChangeProbTextBox 128 // 129 this.varChangeProbTextBox.TabIndex = 1; 130 this.toolTip.SetToolTip(this.varChangeProbTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + 131 "change in weight."); 132 // 133 // varChangeProbLabel 134 // 135 this.varChangeProbLabel.TabIndex = 0; 136 this.toolTip.SetToolTip(this.varChangeProbLabel, "The probability of changing the referenced variable in [0..1]. Variable reference" + 137 "s are sampled uniformly."); 120 138 // 121 139 // initialFrequencyLabel 122 140 // 141 this.initialFrequencyLabel.TabIndex = 2; 123 142 this.toolTip.SetToolTip(this.initialFrequencyLabel, "Relative frequency of the symbol in randomly created trees"); 124 143 // … … 126 145 // 127 146 this.errorProvider.SetIconAlignment(this.initialFrequencyTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 147 this.initialFrequencyTextBox.Size = new System.Drawing.Size(323, 20); 148 this.initialFrequencyTextBox.TabIndex = 3; 149 // 150 // enabledCheckBox 151 // 152 this.enabledCheckBox.TabIndex = 8; 153 // 154 // minimumArityLabel 155 // 156 this.minimumArityLabel.TabIndex = 4; 157 this.toolTip.SetToolTip(this.minimumArityLabel, "The minimum arity of the symbol"); 158 // 159 // maximumArityLabel 160 // 161 this.toolTip.SetToolTip(this.maximumArityLabel, "The maximum arity of the symbol"); 128 162 // 129 163 // minimumArityTextBox 130 164 // 131 165 this.errorProvider.SetIconAlignment(this.minimumArityTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 132 this.minimumArityTextBox.Size = new System.Drawing.Size(315, 20); 166 this.minimumArityTextBox.Size = new System.Drawing.Size(327, 20); 167 this.minimumArityTextBox.TabIndex = 5; 133 168 // 134 169 // maximumArityTextBox 135 170 // 136 171 this.errorProvider.SetIconAlignment(this.maximumArityTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 137 this.maximumArityTextBox.Size = new System.Drawing.Size(3 15, 20);172 this.maximumArityTextBox.Size = new System.Drawing.Size(327, 20); 138 173 // 139 174 // nameTextBox … … 141 176 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 142 177 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 178 this.nameTextBox.Size = new System.Drawing.Size(302, 20); 179 // 180 // infoLabel 181 // 182 this.infoLabel.Location = new System.Drawing.Point(401, 3); 143 183 // 144 184 // minTimeOffsetLabel … … 148 188 this.minTimeOffsetLabel.Name = "minTimeOffsetLabel"; 149 189 this.minTimeOffsetLabel.Size = new System.Drawing.Size(81, 13); 150 this.minTimeOffsetLabel.TabIndex = 5;190 this.minTimeOffsetLabel.TabIndex = 9; 151 191 this.minTimeOffsetLabel.Text = "Min. time offset:"; 152 192 // … … 157 197 this.maxTimeOffsetLabel.Name = "maxTimeOffsetLabel"; 158 198 this.maxTimeOffsetLabel.Size = new System.Drawing.Size(84, 13); 159 this.maxTimeOffsetLabel.TabIndex = 7;199 this.maxTimeOffsetLabel.TabIndex = 11; 160 200 this.maxTimeOffsetLabel.Text = "Max. time offset:"; 161 201 // 162 202 // minTimeOffsetTextBox 163 203 // 164 this.minTimeOffsetTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 204 this.minTimeOffsetTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 165 205 | System.Windows.Forms.AnchorStyles.Right))); 166 206 this.minTimeOffsetTextBox.Location = new System.Drawing.Point(93, 127); 167 207 this.minTimeOffsetTextBox.Name = "minTimeOffsetTextBox"; 168 this.minTimeOffsetTextBox.Size = new System.Drawing.Size(3 15, 20);169 this.minTimeOffsetTextBox.TabIndex = 6;208 this.minTimeOffsetTextBox.Size = new System.Drawing.Size(327, 20); 209 this.minTimeOffsetTextBox.TabIndex = 10; 170 210 this.minTimeOffsetTextBox.TextChanged += new System.EventHandler(this.minTimeOffsetTextBox_TextChanged); 171 211 // 172 212 // maxTimeOffsetTextBox 173 213 // 174 this.maxTimeOffsetTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 214 this.maxTimeOffsetTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 175 215 | System.Windows.Forms.AnchorStyles.Right))); 176 216 this.maxTimeOffsetTextBox.Location = new System.Drawing.Point(93, 153); 177 217 this.maxTimeOffsetTextBox.Name = "maxTimeOffsetTextBox"; 178 this.maxTimeOffsetTextBox.Size = new System.Drawing.Size(3 15, 20);179 this.maxTimeOffsetTextBox.TabIndex = 8;218 this.maxTimeOffsetTextBox.Size = new System.Drawing.Size(327, 20); 219 this.maxTimeOffsetTextBox.TabIndex = 12; 180 220 this.maxTimeOffsetTextBox.TextChanged += new System.EventHandler(this.maxTimeOffsetTextBox_TextChanged); 181 221 // 182 222 // LaggedVariableView 183 223 // 184 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);185 224 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 186 225 this.Controls.Add(this.minTimeOffsetTextBox); … … 189 228 this.Controls.Add(this.maxTimeOffsetTextBox); 190 229 this.Name = "LaggedVariableView"; 191 this.Size = new System.Drawing.Size(408, 352); 230 this.Size = new System.Drawing.Size(420, 411); 231 this.Controls.SetChildIndex(this.enabledCheckBox, 0); 192 232 this.Controls.SetChildIndex(this.maxTimeOffsetTextBox, 0); 193 233 this.Controls.SetChildIndex(this.minTimeOffsetLabel, 0); -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/LaggedVariableView.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/TimeLagView.Designer.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/TimeLagView.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableConditionView.Designer.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 237 237 // variableNamesTabPage 238 238 // 239 this.variableNamesTabPage.BackColor = System.Drawing.SystemColors.Window; 239 240 this.variableNamesTabPage.Location = new System.Drawing.Point(4, 22); 240 241 this.variableNamesTabPage.Name = "variableNamesTabPage"; … … 243 244 this.variableNamesTabPage.TabIndex = 0; 244 245 this.variableNamesTabPage.Text = "Variable Names"; 245 this.variableNamesTabPage.UseVisualStyleBackColor = true;246 246 // 247 247 // parametersTabPage 248 248 // 249 this.parametersTabPage.BackColor = System.Drawing.SystemColors.Window; 249 250 this.parametersTabPage.Controls.Add(this.initializationGroupBox); 250 251 this.parametersTabPage.Controls.Add(this.mutationGroupBox); … … 255 256 this.parametersTabPage.TabIndex = 1; 256 257 this.parametersTabPage.Text = "Parameters"; 257 this.parametersTabPage.UseVisualStyleBackColor = true;258 258 // 259 259 // initializationGroupBox -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableConditionView.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 54 54 private void RegisterVariableNamesViewContentEvents() { 55 55 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 57 57 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 58 58 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 64 64 private void DeregisterVariableNamesViewContentEvents() { 65 65 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 66 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);66 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 67 67 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 68 68 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 153 153 } 154 154 155 private void VariableNames_Removed(object sender, CollectionItemsChangedEventArgs<StringValue> e) { 156 foreach (var newVar in e.Items) 157 newVar.ValueChanged -= new EventHandler(Variable_ValueChanged); 158 UpdateContent(); 159 } 160 155 161 private void Variable_ValueChanged(object sender, EventArgs e) { 156 162 UpdateContent(); -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.Designer.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 51 51 this.weightInitializationSigmaTextBox = new System.Windows.Forms.TextBox(); 52 52 this.mutationGroupBox = new System.Windows.Forms.GroupBox(); 53 this.varChangeProbTextBox = new System.Windows.Forms.TextBox(); 54 this.varChangeProbLabel = new System.Windows.Forms.Label(); 53 55 this.multiplicativeWeightChangeLabel = new System.Windows.Forms.Label(); 54 56 this.multiplicativeWeightChangeSigmaTextBox = new System.Windows.Forms.TextBox(); … … 67 69 // initialFrequencyLabel 68 70 // 71 this.initialFrequencyLabel.TabIndex = 2; 69 72 this.toolTip.SetToolTip(this.initialFrequencyLabel, "Relative frequency of the symbol in randomly created trees"); 70 73 // … … 73 76 this.errorProvider.SetIconAlignment(this.initialFrequencyTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 74 77 this.initialFrequencyTextBox.Size = new System.Drawing.Size(311, 20); 78 this.initialFrequencyTextBox.TabIndex = 3; 79 // 80 // enabledCheckBox 81 // 82 this.enabledCheckBox.TabIndex = 8; 75 83 // 76 84 // minimumArityLabel 77 85 // 86 this.minimumArityLabel.TabIndex = 4; 78 87 this.toolTip.SetToolTip(this.minimumArityLabel, "The minimum arity of the symbol"); 79 88 // … … 86 95 this.errorProvider.SetIconAlignment(this.minimumArityTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 87 96 this.minimumArityTextBox.Size = new System.Drawing.Size(311, 20); 97 this.minimumArityTextBox.TabIndex = 5; 88 98 // 89 99 // maximumArityTextBox … … 114 124 // weightInitializationMuTextBox 115 125 // 116 this.weightInitializationMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 126 this.weightInitializationMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 117 127 | System.Windows.Forms.AnchorStyles.Right))); 118 128 this.weightInitializationMuTextBox.Location = new System.Drawing.Point(92, 19); … … 126 136 // initializationGroupBox 127 137 // 128 this.initializationGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 138 this.initializationGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 129 139 | System.Windows.Forms.AnchorStyles.Right))); 130 140 this.initializationGroupBox.Controls.Add(this.weightSigmaLabel); … … 151 161 // weightInitializationSigmaTextBox 152 162 // 153 this.weightInitializationSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 163 this.weightInitializationSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 154 164 | System.Windows.Forms.AnchorStyles.Right))); 155 165 this.weightInitializationSigmaTextBox.Location = new System.Drawing.Point(92, 45); … … 163 173 // mutationGroupBox 164 174 // 165 this.mutationGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 166 | System.Windows.Forms.AnchorStyles.Right))); 175 this.mutationGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 176 | System.Windows.Forms.AnchorStyles.Right))); 177 this.mutationGroupBox.Controls.Add(this.varChangeProbTextBox); 178 this.mutationGroupBox.Controls.Add(this.varChangeProbLabel); 167 179 this.mutationGroupBox.Controls.Add(this.multiplicativeWeightChangeLabel); 168 180 this.mutationGroupBox.Controls.Add(this.multiplicativeWeightChangeSigmaTextBox); … … 171 183 this.mutationGroupBox.Location = new System.Drawing.Point(6, 85); 172 184 this.mutationGroupBox.Name = "mutationGroupBox"; 173 this.mutationGroupBox.Size = new System.Drawing.Size(391, 73);185 this.mutationGroupBox.Size = new System.Drawing.Size(391, 97); 174 186 this.mutationGroupBox.TabIndex = 1; 175 187 this.mutationGroupBox.TabStop = false; 176 188 this.mutationGroupBox.Text = "Mutation"; 177 189 // 190 // varChangeProbTextBox 191 // 192 this.varChangeProbTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 193 | System.Windows.Forms.AnchorStyles.Right))); 194 this.varChangeProbTextBox.Location = new System.Drawing.Point(201, 13); 195 this.varChangeProbTextBox.Name = "varChangeProbTextBox"; 196 this.varChangeProbTextBox.Size = new System.Drawing.Size(184, 20); 197 this.varChangeProbTextBox.TabIndex = 1; 198 this.toolTip.SetToolTip(this.varChangeProbTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + 199 "change in weight."); 200 this.varChangeProbTextBox.TextChanged += new System.EventHandler(this.VarProbTextBox_TextChanged); 201 // 202 // varChangeProbLabel 203 // 204 this.varChangeProbLabel.AutoSize = true; 205 this.varChangeProbLabel.Location = new System.Drawing.Point(6, 16); 206 this.varChangeProbLabel.Name = "varChangeProbLabel"; 207 this.varChangeProbLabel.Size = new System.Drawing.Size(134, 13); 208 this.varChangeProbLabel.TabIndex = 0; 209 this.varChangeProbLabel.Text = "Variable change probability"; 210 this.toolTip.SetToolTip(this.varChangeProbLabel, "The probability of changing the referenced variable in [0..1]. Variable reference" + 211 "s are sampled uniformly."); 212 // 178 213 // multiplicativeWeightChangeLabel 179 214 // 180 215 this.multiplicativeWeightChangeLabel.AutoSize = true; 181 this.multiplicativeWeightChangeLabel.Location = new System.Drawing.Point(6, 48);216 this.multiplicativeWeightChangeLabel.Location = new System.Drawing.Point(6, 68); 182 217 this.multiplicativeWeightChangeLabel.Name = "multiplicativeWeightChangeLabel"; 183 218 this.multiplicativeWeightChangeLabel.Size = new System.Drawing.Size(180, 13); 184 this.multiplicativeWeightChangeLabel.TabIndex = 2;219 this.multiplicativeWeightChangeLabel.TabIndex = 4; 185 220 this.multiplicativeWeightChangeLabel.Text = "Multiplicative weight change (sigma):"; 186 221 this.toolTip.SetToolTip(this.multiplicativeWeightChangeLabel, "The sigma parameter for the normal distribution to use to sample a multiplicative" + … … 189 224 // multiplicativeWeightChangeSigmaTextBox 190 225 // 191 this.multiplicativeWeightChangeSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 192 | System.Windows.Forms.AnchorStyles.Right))); 193 this.multiplicativeWeightChangeSigmaTextBox.Location = new System.Drawing.Point(201, 45);226 this.multiplicativeWeightChangeSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 227 | System.Windows.Forms.AnchorStyles.Right))); 228 this.multiplicativeWeightChangeSigmaTextBox.Location = new System.Drawing.Point(201, 65); 194 229 this.multiplicativeWeightChangeSigmaTextBox.Name = "multiplicativeWeightChangeSigmaTextBox"; 195 230 this.multiplicativeWeightChangeSigmaTextBox.Size = new System.Drawing.Size(184, 20); 196 this.multiplicativeWeightChangeSigmaTextBox.TabIndex = 3;231 this.multiplicativeWeightChangeSigmaTextBox.TabIndex = 5; 197 232 this.toolTip.SetToolTip(this.multiplicativeWeightChangeSigmaTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample a multiplica" + 198 233 "tive change in weight."); … … 202 237 // 203 238 this.additiveWeightChangeLabel.AutoSize = true; 204 this.additiveWeightChangeLabel.Location = new System.Drawing.Point(6, 22);239 this.additiveWeightChangeLabel.Location = new System.Drawing.Point(6, 42); 205 240 this.additiveWeightChangeLabel.Name = "additiveWeightChangeLabel"; 206 241 this.additiveWeightChangeLabel.Size = new System.Drawing.Size(157, 13); 207 this.additiveWeightChangeLabel.TabIndex = 0;242 this.additiveWeightChangeLabel.TabIndex = 2; 208 243 this.additiveWeightChangeLabel.Text = "Additive weight change (sigma):"; 209 244 this.toolTip.SetToolTip(this.additiveWeightChangeLabel, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + … … 212 247 // additiveWeightChangeSigmaTextBox 213 248 // 214 this.additiveWeightChangeSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 215 | System.Windows.Forms.AnchorStyles.Right))); 216 this.additiveWeightChangeSigmaTextBox.Location = new System.Drawing.Point(201, 19);249 this.additiveWeightChangeSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 250 | System.Windows.Forms.AnchorStyles.Right))); 251 this.additiveWeightChangeSigmaTextBox.Location = new System.Drawing.Point(201, 39); 217 252 this.additiveWeightChangeSigmaTextBox.Name = "additiveWeightChangeSigmaTextBox"; 218 253 this.additiveWeightChangeSigmaTextBox.Size = new System.Drawing.Size(184, 20); 219 this.additiveWeightChangeSigmaTextBox.TabIndex = 1;254 this.additiveWeightChangeSigmaTextBox.TabIndex = 3; 220 255 this.toolTip.SetToolTip(this.additiveWeightChangeSigmaTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + 221 256 "change in weight."); … … 224 259 // tabControl 225 260 // 226 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 227 | System.Windows.Forms.AnchorStyles.Left) 261 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 262 | System.Windows.Forms.AnchorStyles.Left) 228 263 | System.Windows.Forms.AnchorStyles.Right))); 229 264 this.tabControl.Controls.Add(this.variableNamesTabPage); … … 232 267 this.tabControl.Name = "tabControl"; 233 268 this.tabControl.SelectedIndex = 0; 234 this.tabControl.Size = new System.Drawing.Size(408, 190);235 this.tabControl.TabIndex = 5;269 this.tabControl.Size = new System.Drawing.Size(408, 216); 270 this.tabControl.TabIndex = 9; 236 271 // 237 272 // variableNamesTabPage 238 273 // 274 this.variableNamesTabPage.BackColor = System.Drawing.SystemColors.Window; 239 275 this.variableNamesTabPage.Location = new System.Drawing.Point(4, 22); 240 276 this.variableNamesTabPage.Name = "variableNamesTabPage"; 241 277 this.variableNamesTabPage.Padding = new System.Windows.Forms.Padding(3); 242 this.variableNamesTabPage.Size = new System.Drawing.Size(400, 1 64);278 this.variableNamesTabPage.Size = new System.Drawing.Size(400, 190); 243 279 this.variableNamesTabPage.TabIndex = 0; 244 280 this.variableNamesTabPage.Text = "Variable Names"; 245 this.variableNamesTabPage.UseVisualStyleBackColor = true;246 281 // 247 282 // parametersTabPage 248 283 // 284 this.parametersTabPage.BackColor = System.Drawing.SystemColors.Window; 249 285 this.parametersTabPage.Controls.Add(this.mutationGroupBox); 250 286 this.parametersTabPage.Controls.Add(this.initializationGroupBox); … … 252 288 this.parametersTabPage.Name = "parametersTabPage"; 253 289 this.parametersTabPage.Padding = new System.Windows.Forms.Padding(3); 254 this.parametersTabPage.Size = new System.Drawing.Size(400, 1 64);290 this.parametersTabPage.Size = new System.Drawing.Size(400, 190); 255 291 this.parametersTabPage.TabIndex = 1; 256 292 this.parametersTabPage.Text = "Parameters"; 257 this.parametersTabPage.UseVisualStyleBackColor = true;258 293 // 259 294 // VariableView 260 295 // 261 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);262 296 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 263 297 this.Controls.Add(this.tabControl); 264 298 this.Name = "VariableView"; 265 this.Size = new System.Drawing.Size(408, 317); 299 this.Size = new System.Drawing.Size(408, 346); 300 this.Controls.SetChildIndex(this.enabledCheckBox, 0); 266 301 this.Controls.SetChildIndex(this.maximumArityLabel, 0); 267 302 this.Controls.SetChildIndex(this.maximumArityTextBox, 0); … … 301 336 protected System.Windows.Forms.TabPage parametersTabPage; 302 337 protected System.Windows.Forms.TabControl tabControl; 338 protected System.Windows.Forms.TextBox varChangeProbTextBox; 339 protected System.Windows.Forms.Label varChangeProbLabel; 303 340 } 304 341 } -
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs
r9708 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 29 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views; 30 30 using HeuristicLab.MainForm; 31 using HeuristicLab.MainForm.WindowsForms;32 31 33 32 34 33 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 35 34 [View("Variable View")] 36 [Content(typeof(Variable ), true)]35 [Content(typeof(VariableBase), true)] 37 36 public partial class VariableView : SymbolView { 38 37 private CheckedItemCollectionView<StringValue> variableNamesView; 39 38 40 public new Variable Content {41 get { return (Variable )base.Content; }39 public new VariableBase Content { 40 get { return (VariableBase)base.Content; } 42 41 set { base.Content = value; } 43 42 } … … 55 54 private void RegisterVariableNamesViewContentEvents() { 56 55 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 57 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 58 57 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 59 58 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 66 65 private void DeregisterVariableNamesViewContentEvents() { 67 66 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 68 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_ Changed);67 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Removed); 69 68 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 70 69 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); … … 101 100 multiplicativeWeightChangeSigmaTextBox.Enabled = Content != null; 102 101 multiplicativeWeightChangeSigmaTextBox.ReadOnly = ReadOnly; 102 varChangeProbTextBox.Enabled = Content != null; 103 varChangeProbTextBox.ReadOnly = ReadOnly; 103 104 } 104 105 … … 118 119 } 119 120 121 private void VariableNames_Removed(object sender, CollectionItemsChangedEventArgs<StringValue> e) { 122 foreach (var newVar in e.Items) 123 newVar.ValueChanged -= new EventHandler(Variable_ValueChanged); 124 UpdateContent(); 125 } 126 120 127 private void Variable_ValueChanged(object sender, EventArgs e) { 121 128 UpdateContent(); … … 126 133 Content.Fixed = true; 127 134 DeregisterContentEvents(); 128 Content.VariableNames = variableNamesView.Content.CheckedItems.Select(x => x.Value).ToList(); 135 Content.VariableNames = variableNamesView.Content.CheckedItems.Select(x => x.Value); 136 Content.AllVariableNames = variableNamesView.Content.Select(x => x.Value); 129 137 RegisterContentEvents(); 130 138 } … … 166 174 } else { 167 175 errorProvider.SetError(multiplicativeWeightChangeSigmaTextBox, "Invalid value"); 176 } 177 } 178 179 private void VarProbTextBox_TextChanged(object sender, EventArgs e) { 180 double prob; 181 if (double.TryParse(varChangeProbTextBox.Text, out prob) && prob >= 0.0 && prob <= 1.0) { 182 Content.VariableChangeProbability = prob; 183 errorProvider.SetError(varChangeProbTextBox, string.Empty); 184 } else { 185 errorProvider.SetError(varChangeProbTextBox, "Invalid value"); 168 186 } 169 187 } … … 177 195 additiveWeightChangeSigmaTextBox.Text = string.Empty; 178 196 multiplicativeWeightChangeSigmaTextBox.Text = string.Empty; 197 varChangeProbTextBox.Text = string.Empty; 179 198 // temporarily deregister to prevent circular calling of events 180 199 DeregisterVariableNamesViewContentEvents(); … … 194 213 additiveWeightChangeSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString(); 195 214 multiplicativeWeightChangeSigmaTextBox.Text = Content.MultiplicativeWeightManipulatorSigma.ToString(); 215 varChangeProbTextBox.Text = Content.VariableChangeProbability.ToString(); 196 216 } 197 217 SetEnabledStateOfControls(); 198 218 } 199 219 #endregion 220 200 221 } 201 222 }
Note: See TracChangeset
for help on using the changeset viewer.