Changeset 15771 for branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding
- Timestamp:
- 02/13/18 16:56:35 (7 years ago)
- Location:
- branches/2895_PushGP_GenealogyAnalysis
- Files:
-
- 1 added
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/IPlushOperator.cs
r15273 r15771 1 namespace HeuristicLab.Problems.ProgramSynthesis .Push.Encoding{1 namespace HeuristicLab.Problems.ProgramSynthesis { 2 2 using HeuristicLab.Core; 3 3 -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEncoding.cs
r15341 r15771 1 1 using System.Collections.Generic; 2 2 3 namespace HeuristicLab.Problems.ProgramSynthesis .Push.Encoding{3 namespace HeuristicLab.Problems.ProgramSynthesis { 4 4 using System; 5 5 using System.Linq; … … 12 12 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 13 13 using HeuristicLab.PluginInfrastructure; 14 using HeuristicLab.Problems.ProgramSynthesis.Base.Erc;15 using HeuristicLab.Problems.ProgramSynthesis.Push.Configuration;16 using HeuristicLab.Problems.ProgramSynthesis.Push.Crossover;17 using HeuristicLab.Problems.ProgramSynthesis.Push.Manipulator;18 using HeuristicLab.Problems.ProgramSynthesis.Push.SolutionCreator;19 14 20 15 [Item("PlushEncoding", "Describes an linear push (Plush) encoding.")] … … 177 172 [Storable] 178 173 private IValueParameter<IntValue> minLengthParameter; 179 public IValueParameter<IntValue> MinLengthParameter 180 { 174 public IValueParameter<IntValue> MinLengthParameter { 181 175 get { return minLengthParameter; } 182 set 183 { 176 set { 184 177 if (value == null) throw new ArgumentNullException("Min length parameter must not be null."); 185 178 if (value.Value == null) throw new ArgumentNullException("Min length parameter value must not be null."); … … 195 188 [Storable] 196 189 private IValueParameter<IntValue> maxLengthParameter; 197 public IValueParameter<IntValue> MaxLengthParameter 198 { 190 public IValueParameter<IntValue> MaxLengthParameter { 199 191 get { return maxLengthParameter; } 200 set 201 { 192 set { 202 193 if (value == null) throw new ArgumentNullException("Max length parameter must not be null."); 203 194 if (value.Value == null) throw new ArgumentNullException("Max length parameter value must not be null."); … … 213 204 [Storable] 214 205 private IValueParameter<IntValue> maxCloseParameter; 215 public IValueParameter<IntValue> MaxCloseParameter 216 { 206 public IValueParameter<IntValue> MaxCloseParameter { 217 207 get { return maxCloseParameter; } 218 set 219 { 208 set { 220 209 if (value == null) throw new ArgumentNullException("Max close parameter must not be null."); 221 210 if (value.Value == null) throw new ArgumentNullException("Max close parameter value must not be null."); … … 231 220 [Storable] 232 221 private IValueParameter<DoubleValue> closeBiasLevelParameter; 233 public IValueParameter<DoubleValue> CloseBiasLevelParameter 234 { 222 public IValueParameter<DoubleValue> CloseBiasLevelParameter { 235 223 get { return closeBiasLevelParameter; } 236 set 237 { 224 set { 238 225 if (value == null) throw new ArgumentNullException("Close bias level parameter must not be null."); 239 226 if (value.Value == null) throw new ArgumentNullException("Close bias level parameter value must not be null."); … … 249 236 [Storable] 250 237 private IValueParameter<PercentValue> inInstructionProbabilityParameter; 251 public IValueParameter<PercentValue> InInstructionProbabilityParameter 252 { 238 public IValueParameter<PercentValue> InInstructionProbabilityParameter { 253 239 get { return inInstructionProbabilityParameter; } 254 set 255 { 240 set { 256 241 if (value == null) throw new ArgumentNullException("In instruciton probability parameter must not be null."); 257 242 if (value.Value == null) throw new ArgumentNullException("In instruciton probability parameter value must not be null."); … … 267 252 [Storable] 268 253 private IValueParameter<IExpressionsConfiguration> instructionsParameter; 269 public IValueParameter<IExpressionsConfiguration> InstructionsParameter 270 { 254 public IValueParameter<IExpressionsConfiguration> InstructionsParameter { 271 255 get { return instructionsParameter; } 272 set 273 { 256 set { 274 257 if (value == null) throw new ArgumentNullException("Instructions paramter must not be null"); 275 258 if (instructionsParameter == value) return; … … 284 267 [Storable] 285 268 private IValueParameter<ErcOptions> ercOptionsParameter; 286 public IValueParameter<ErcOptions> ErcOptionsParameter 287 { 269 public IValueParameter<ErcOptions> ErcOptionsParameter { 288 270 get { return ercOptionsParameter; } 289 set 290 { 271 set { 291 272 if (value == null) throw new ArgumentNullException("ErcOptions paramter must not be null"); 292 273 if (ercOptionsParameter == value) return; … … 299 280 } 300 281 301 public IExpressionsConfiguration Instructions 302 { 282 public IExpressionsConfiguration Instructions { 303 283 get { return InstructionsParameter.Value; } 304 284 set { InstructionsParameter.Value = value; } 305 285 } 306 286 307 public ErcOptions ErcOptions 308 { 287 public ErcOptions ErcOptions { 309 288 get { return ErcOptionsParameter.Value; } 310 289 set { ErcOptionsParameter.Value = value; } 311 290 } 312 291 313 public int MinLength 314 { 292 public int MinLength { 315 293 get { return MinLengthParameter.Value.Value; } 316 294 set { MinLengthParameter.Value.Value = value; } 317 295 } 318 296 319 public int MaxLength 320 { 297 public int MaxLength { 321 298 get { return MaxLengthParameter.Value.Value; } 322 299 set { MaxLengthParameter.Value.Value = value; } 323 300 } 324 301 325 public int MaxClose 326 { 302 public int MaxClose { 327 303 get { return MaxCloseParameter.Value.Value; } 328 304 set { MaxCloseParameter.Value.Value = value; } 329 305 } 330 306 331 public double InInstructionProbability 332 { 307 public double InInstructionProbability { 333 308 get { return InInstructionProbabilityParameter.Value.Value; } 334 309 set { InInstructionProbabilityParameter.Value.Value = value; } -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushEntry.cs
r15334 r15771 1 namespace HeuristicLab.Problems.ProgramSynthesis .Push.Encoding{1 namespace HeuristicLab.Problems.ProgramSynthesis { 2 2 using HeuristicLab.Common; 3 3 using HeuristicLab.Core; 4 4 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 5 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;6 5 7 6 [StorableClass] -
branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Encoding/PlushVector.cs
r15334 r15771 1 namespace HeuristicLab.Problems.ProgramSynthesis .Push.Encoding{1 namespace HeuristicLab.Problems.ProgramSynthesis { 2 2 using System.Collections.Generic; 3 3 using HeuristicLab.Common; 4 4 using HeuristicLab.Core; 5 5 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 6 using HeuristicLab.Problems.ProgramSynthesis.Push.Attributes;7 using HeuristicLab.Problems.ProgramSynthesis.Push.Expressions;8 6 9 7 [StorableClass] … … 39 37 private PushProgram pushProgram; 40 38 41 public PushProgram PushProgram 42 { 43 get 44 { 39 public PushProgram PushProgram { 40 get { 45 41 if (pushProgram == null) CreatePushProgram(); 46 42 return pushProgram; … … 112 108 } 113 109 114 public PlushEntry this[int key] 115 { 116 get 117 { 110 public PlushEntry this[int key] { 111 get { 118 112 return entries[key]; 119 113 }
Note: See TracChangeset
for help on using the changeset viewer.