Changeset 3048 for trunk/sources/HeuristicLab.Optimization.Operators/3.3
- Timestamp:
- 03/15/10 23:49:54 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Operators/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Operators/3.3/ChildrenCreator.cs
r3021 r3048 43 43 get { return (ScopeParameter)Parameters["CurrentScope"]; } 44 44 } 45 public ValueLookupParameter<Int Data> ParentsPerChildParameter {46 get { return (ValueLookupParameter<Int Data>)Parameters["ParentsPerChild"]; }45 public ValueLookupParameter<IntValue> ParentsPerChildParameter { 46 get { return (ValueLookupParameter<IntValue>)Parameters["ParentsPerChild"]; } 47 47 } 48 48 public IScope CurrentScope { 49 49 get { return CurrentScopeParameter.ActualValue; } 50 50 } 51 public Int DataParentsPerChild {51 public IntValue ParentsPerChild { 52 52 get { return ParentsPerChildParameter.Value; } 53 53 set { ParentsPerChildParameter.Value = value; } … … 57 57 : base() { 58 58 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope whose sub-scopes represent the parents.")); 59 Parameters.Add(new ValueLookupParameter<Int Data>("ParentsPerChild", "The number of parents that should be crossed per child. Note that some of the typical crossover operators require exactly two parents.", new IntData(2)));59 Parameters.Add(new ValueLookupParameter<IntValue>("ParentsPerChild", "The number of parents that should be crossed per child. Note that some of the typical crossover operators require exactly two parents.", new IntValue(2))); 60 60 } 61 61 -
trunk/sources/HeuristicLab.Optimization.Operators/3.3/SolutionsCreator.cs
r3044 r3048 35 35 [Creatable("Test")] 36 36 public sealed class SolutionsCreator : SingleSuccessorOperator { 37 public ValueLookupParameter<Int Data> NumberOfSolutionsParameter {38 get { return (ValueLookupParameter<Int Data>)Parameters["NumberOfSolutions"]; }37 public ValueLookupParameter<IntValue> NumberOfSolutionsParameter { 38 get { return (ValueLookupParameter<IntValue>)Parameters["NumberOfSolutions"]; } 39 39 } 40 40 public ValueLookupParameter<IOperator> SolutionCreatorParameter { … … 50 50 get { return CurrentScopeParameter.ActualValue; } 51 51 } 52 public Int DataNumberOfSolutions {52 public IntValue NumberOfSolutions { 53 53 get { return NumberOfSolutionsParameter.Value; } 54 54 set { NumberOfSolutionsParameter.Value = value; } … … 57 57 public SolutionsCreator() 58 58 : base() { 59 Parameters.Add(new ValueLookupParameter<Int Data>("NumberOfSolutions", "The number of solutions that should be created."));59 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSolutions", "The number of solutions that should be created.")); 60 60 Parameters.Add(new ValueLookupParameter<IOperator>("SolutionCreator", "The operator which is used to create new solutions.")); 61 61 Parameters.Add(new ValueLookupParameter<IOperator>("Evaluator", "The operator which is used to evaluate new solutions."));
Note: See TracChangeset
for help on using the changeset viewer.