Changeset 3534 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureAlteringOperators/SymbolicExpressionTreeArchitectureAlteringOperator.cs
- Timestamp:
- 04/26/10 15:47:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureAlteringOperators/SymbolicExpressionTreeArchitectureAlteringOperator.cs
r3462 r3534 33 33 using System.Text; 34 34 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Manipulators; 35 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Interfaces; 35 36 36 37 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.ArchitectureAlteringOperators { … … 39 40 /// </summary> 40 41 [StorableClass] 41 public abstract class SymbolicExpressionTreeArchitecture AlteringOperator : SymbolicExpressionTreeManipulator {42 public abstract class SymbolicExpressionTreeArchitectureManipulator : SymbolicExpressionTreeManipulator, ISymbolicExpressionTreeArchitectureManipulator { 42 43 private const string MaxFunctionArgumentsParameterName = "MaxFunctionArguments"; 43 44 private const string MaxFunctionDefiningBranchesParameterName = "MaxFunctionDefiningBranches"; … … 46 47 } 47 48 48 public IValueLookupParameter<IntValue> MaxFunctionDefini ngBranchesParameter {49 public IValueLookupParameter<IntValue> MaxFunctionDefinitionsParameter { 49 50 get { return (IValueLookupParameter<IntValue>)Parameters[MaxFunctionDefiningBranchesParameterName]; } 50 51 } … … 53 54 } 54 55 public IntValue MaxFunctionDefiningBranches { 55 get { return MaxFunctionDefini ngBranchesParameter.ActualValue; }56 get { return MaxFunctionDefinitionsParameter.ActualValue; } 56 57 } 57 58 public IntValue MaxFunctionArguments { 58 59 get { return MaxFunctionArgumentsParameter.ActualValue; } 59 60 } 60 public SymbolicExpressionTreeArchitecture AlteringOperator()61 public SymbolicExpressionTreeArchitectureManipulator() 61 62 : base() { 62 63 Parameters.Add(new ValueLookupParameter<IntValue>(MaxFunctionDefiningBranchesParameterName, "The maximal allowed number of function defining branches.")); … … 74 75 IntValue maxTreeSize, 75 76 IntValue maxTreeHeight, 76 IntValue maxFunctionDefini ngBranches,77 IntValue maxFunctionDefinitions, 77 78 IntValue maxFunctionArguments, 78 79 out bool success
Note: See TracChangeset
for help on using the changeset viewer.