Changeset 2891 for trunk/sources/HeuristicLab.Selection
- Timestamp:
- 03/01/10 04:46:06 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Selection/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection/3.3/ProportionalSelector.cs
r2890 r2891 36 36 [Creatable("Test")] 37 37 public sealed class ProportionalSelector : StochasticSingleObjectiveSelector { 38 private OptionalValueParameter<BoolData> WindowingParameter {39 get { return ( OptionalValueParameter<BoolData>)Parameters["Windowing"]; }38 private ValueParameter<BoolData> WindowingParameter { 39 get { return (ValueParameter<BoolData>)Parameters["Windowing"]; } 40 40 } 41 41 … … 47 47 public ProportionalSelector() 48 48 : base() { 49 Parameters.Add(new OptionalValueParameter<BoolData>("Windowing", "Apply windowing strategy (selection probability is proportional to the quality differences and not to the total quality).", new BoolData(true)));49 Parameters.Add(new ValueParameter<BoolData>("Windowing", "Apply windowing strategy (selection probability is proportional to the quality differences and not to the total quality).", new BoolData(true))); 50 50 CopySelected.Value = true; 51 51 } -
trunk/sources/HeuristicLab.Selection/3.3/Selector.cs
r2890 r2891 35 35 [EmptyStorableClass] 36 36 public abstract class Selector : SingleSuccessorOperator, ISelector { 37 protected OptionalValueParameter<BoolData> CopySelectedParameter {38 get { return ( OptionalValueParameter<BoolData>)Parameters["CopySelected"]; }37 protected ValueParameter<BoolData> CopySelectedParameter { 38 get { return (ValueParameter<BoolData>)Parameters["CopySelected"]; } 39 39 } 40 40 public IValueLookupParameter<IntData> NumberOfSelectedSubScopesParameter { … … 55 55 protected Selector() 56 56 : base() { 57 Parameters.Add(new OptionalValueParameter<BoolData>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolData(false)));57 Parameters.Add(new ValueParameter<BoolData>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolData(false))); 58 58 Parameters.Add(new ValueLookupParameter<IntData>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected.")); 59 59 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope from which sub-scopes should be selected."));
Note: See TracChangeset
for help on using the changeset viewer.