Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/10 03:01:01 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on algorithms, problems and parameters
Location:
trunk/sources/HeuristicLab.Selection/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Selection/3.3/ProportionalSelector.cs

    r2830 r2890  
    3636  [Creatable("Test")]
    3737  public sealed class ProportionalSelector : StochasticSingleObjectiveSelector {
    38     private ValueParameter<BoolData> WindowingParameter {
    39       get { return (ValueParameter<BoolData>)Parameters["Windowing"]; }
     38    private OptionalValueParameter<BoolData> WindowingParameter {
     39      get { return (OptionalValueParameter<BoolData>)Parameters["Windowing"]; }
    4040    }
    4141
     
    4747    public ProportionalSelector()
    4848      : base() {
    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)));
     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)));
    5050      CopySelected.Value = true;
    5151    }
  • trunk/sources/HeuristicLab.Selection/3.3/Selector.cs

    r2882 r2890  
    3535  [EmptyStorableClass]
    3636  public abstract class Selector : SingleSuccessorOperator, ISelector {
    37     protected ValueParameter<BoolData> CopySelectedParameter {
    38       get { return (ValueParameter<BoolData>)Parameters["CopySelected"]; }
     37    protected OptionalValueParameter<BoolData> CopySelectedParameter {
     38      get { return (OptionalValueParameter<BoolData>)Parameters["CopySelected"]; }
    3939    }
    4040    public IValueLookupParameter<IntData> NumberOfSelectedSubScopesParameter {
     
    5555    protected Selector()
    5656      : base() {
    57       Parameters.Add(new ValueParameter<BoolData>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolData(false)));
     57      Parameters.Add(new OptionalValueParameter<BoolData>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolData(false)));
    5858      Parameters.Add(new ValueLookupParameter<IntData>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected."));
    5959      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.