Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/10 23:49:54 (14 years ago)
Author:
swagner
Message:

Renamed classes of HeuristicLab.Data (#909)

Location:
trunk/sources/HeuristicLab.Selection/3.3
Files:
5 edited

Legend:

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

    r3017 r3048  
    4444      IRandom random = RandomParameter.ActualValue;
    4545      bool maximization = MaximizationParameter.ActualValue.Value;
    46       ItemArray<DoubleData> qualities = QualityParameter.ActualValue;
     46      ItemArray<DoubleValue> qualities = QualityParameter.ActualValue;
    4747      IScope[] selected = new IScope[count];
    4848
  • trunk/sources/HeuristicLab.Selection/3.3/ProportionalSelector.cs

    r3017 r3048  
    3636  [Creatable("Test")]
    3737  public sealed class ProportionalSelector : StochasticSingleObjectiveSelector {
    38     private ValueParameter<BoolData> WindowingParameter {
    39       get { return (ValueParameter<BoolData>)Parameters["Windowing"]; }
     38    private ValueParameter<BoolValue> WindowingParameter {
     39      get { return (ValueParameter<BoolValue>)Parameters["Windowing"]; }
    4040    }
    4141
    42     public BoolData Windowing {
     42    public BoolValue Windowing {
    4343      get { return WindowingParameter.Value; }
    4444      set { WindowingParameter.Value = value; }
     
    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 ValueParameter<BoolValue>("Windowing", "Apply windowing strategy (selection probability is proportional to the quality differences and not to the total quality).", new BoolValue(true)));
    5050      CopySelected.Value = true;
    5151    }
  • trunk/sources/HeuristicLab.Selection/3.3/Selector.cs

    r3034 r3048  
    3939    }
    4040
    41     protected ValueParameter<BoolData> CopySelectedParameter {
    42       get { return (ValueParameter<BoolData>)Parameters["CopySelected"]; }
     41    protected ValueParameter<BoolValue> CopySelectedParameter {
     42      get { return (ValueParameter<BoolValue>)Parameters["CopySelected"]; }
    4343    }
    44     public IValueLookupParameter<IntData> NumberOfSelectedSubScopesParameter {
    45       get { return (ValueLookupParameter<IntData>)Parameters["NumberOfSelectedSubScopes"]; }
     44    public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter {
     45      get { return (ValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; }
    4646    }
    4747    protected ScopeParameter CurrentScopeParameter {
     
    4949    }
    5050
    51     public BoolData CopySelected {
     51    public BoolValue CopySelected {
    5252      get { return CopySelectedParameter.Value; }
    5353      set { CopySelectedParameter.Value = value; }
     
    5959    protected Selector()
    6060      : base() {
    61       Parameters.Add(new ValueParameter<BoolData>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolData(false)));
    62       Parameters.Add(new ValueLookupParameter<IntData>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected."));
     61      Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(false)));
     62      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected."));
    6363      Parameters.Add(new ScopeParameter("CurrentScope", "The current scope from which sub-scopes should be selected."));
    6464    }
  • trunk/sources/HeuristicLab.Selection/3.3/StochasticSingleObjectiveSelector.cs

    r3017 r3048  
    3333  [StorableClass]
    3434  public abstract class StochasticSingleObjectiveSelector : StochasticSelector, ISingleObjectiveSelector {
    35     public IValueLookupParameter<BoolData> MaximizationParameter {
    36       get { return (IValueLookupParameter<BoolData>)Parameters["Maximization"]; }
     35    public IValueLookupParameter<BoolValue> MaximizationParameter {
     36      get { return (IValueLookupParameter<BoolValue>)Parameters["Maximization"]; }
    3737    }
    38     public ILookupParameter<ItemArray<DoubleData>> QualityParameter {
    39       get { return (ILookupParameter<ItemArray<DoubleData>>)Parameters["Quality"]; }
     38    public ILookupParameter<ItemArray<DoubleValue>> QualityParameter {
     39      get { return (ILookupParameter<ItemArray<DoubleValue>>)Parameters["Quality"]; }
    4040    }
    4141
    4242    protected StochasticSingleObjectiveSelector()
    4343      : base() {
    44       Parameters.Add(new ValueLookupParameter<BoolData>("Maximization", "True if the current problem is a maximization problem, otherwise false."));
    45       Parameters.Add(new SubScopesLookupParameter<DoubleData>("Quality", "The quality value contained in each sub-scope which is used for selection."));
     44      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false."));
     45      Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Quality", "The quality value contained in each sub-scope which is used for selection."));
    4646    }
    4747  }
  • trunk/sources/HeuristicLab.Selection/3.3/TournamentSelector.cs

    r3017 r3048  
    3535  [Creatable("Test")]
    3636  public sealed class TournamentSelector : StochasticSingleObjectiveSelector {
    37     public ValueLookupParameter<IntData> GroupSizeParameter {
    38       get { return (ValueLookupParameter<IntData>)Parameters["GroupSize"]; }
     37    public ValueLookupParameter<IntValue> GroupSizeParameter {
     38      get { return (ValueLookupParameter<IntValue>)Parameters["GroupSize"]; }
    3939    }
    4040
    4141    public TournamentSelector() : base() {
    42       Parameters.Add(new ValueLookupParameter<IntData>("GroupSize", "The size of the tournament group.", new IntData(2)));
     42      Parameters.Add(new ValueLookupParameter<IntValue>("GroupSize", "The size of the tournament group.", new IntValue(2)));
    4343      CopySelected.Value = true;
    4444    }
Note: See TracChangeset for help on using the changeset viewer.