Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/11 09:22:20 (14 years ago)
Author:
abeham
Message:

#1465

  • updated branch from trunk
Location:
branches/histogram
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram

  • branches/histogram/HeuristicLab.Selection/3.3/ConditionalSelector.cs

    r5445 r6055  
    3434      get { return (ScopeTreeLookupParameter<BoolValue>)Parameters["Condition"]; }
    3535    }
    36     public ValueParameter<BoolValue> CopySelectedParameter {
    37       get { return (ValueParameter<BoolValue>)Parameters["CopySelected"]; }
     36    protected IValueParameter<BoolValue> CopySelectedParameter {
     37      get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; }
    3838    }
    3939
     
    5555      Parameters.Add(new ScopeTreeLookupParameter<BoolValue>("Condition", "The boolean variable based on which the scopes are selected into a true scope-branch and a false scope-branch."));
    5656      Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "The parameter that decides whether the selected scopes should be copied or moved.", new BoolValue(true)));
     57      CopySelectedParameter.Hidden = true;
    5758    }
    5859
  • branches/histogram/HeuristicLab.Selection/3.3/CrowdedTournamentSelector.cs

    r5445 r6055  
    3939      get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; }
    4040    }
    41     public IValueParameter<BoolValue> CopySelectedParameter {
     41    protected IValueParameter<BoolValue> CopySelectedParameter {
    4242      get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; }
    4343    }
     
    7676      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("CrowdingDistance", "The solutions' crowding distance values."));
    7777      Parameters.Add(new ValueLookupParameter<IntValue>("GroupSize", "The size of the group from which the best will be chosen.", new IntValue(2)));
     78      CopySelectedParameter.Hidden = true;
    7879    }
    7980
  • branches/histogram/HeuristicLab.Selection/3.3/GenderSpecificSelector.cs

    r5445 r6055  
    4343      get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; }
    4444    }
    45     public IValueLookupParameter<BoolValue> CopySelectedParameter {
     45    protected IValueLookupParameter<BoolValue> CopySelectedParameter {
    4646      get { return (IValueLookupParameter<BoolValue>)Parameters["CopySelected"]; }
    4747    }
     
    9797      Parameters.Add(new ValueParameter<ISelector>("FemaleSelector", "The selection operator to select the first parent."));
    9898      Parameters.Add(new ValueParameter<ISelector>("MaleSelector", "The selection operator to select the second parent."));
     99      CopySelectedParameter.Hidden = true;
    99100      #endregion
    100101
  • branches/histogram/HeuristicLab.Selection/3.3/LeftSelector.cs

    r5445 r6055  
    3434  [StorableClass]
    3535  public sealed class LeftSelector : Selector {
    36     private ValueParameter<BoolValue> CopySelectedParameter {
    37       get { return (ValueParameter<BoolValue>)Parameters["CopySelected"]; }
     36    private IValueParameter<BoolValue> CopySelectedParameter {
     37      get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; }
    3838    }
    3939    public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter {
     
    5959      Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(true)));
    6060      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected."));
     61      CopySelectedParameter.Hidden = true;
    6162    }
    6263
  • branches/histogram/HeuristicLab.Selection/3.3/NoSameMatesSelector.cs

    r6046 r6055  
    7474      #endregion
    7575
    76       CopySelectedParameter.Hidden = true;
    7776      RegisterParameterEventHandlers();
    7877    }
  • branches/histogram/HeuristicLab.Selection/3.3/RandomSelector.cs

    r5445 r6055  
    3535  [StorableClass]
    3636  public sealed class RandomSelector : StochasticSelector, ISelector {
    37     private ValueParameter<BoolValue> CopySelectedParameter {
    38       get { return (ValueParameter<BoolValue>)Parameters["CopySelected"]; }
     37    private IValueParameter<BoolValue> CopySelectedParameter {
     38      get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; }
    3939    }
    4040    public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter {
     
    5959      Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(true)));
    6060      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected."));
     61      CopySelectedParameter.Hidden = true;
    6162    }
    6263
  • branches/histogram/HeuristicLab.Selection/3.3/RightSelector.cs

    r5445 r6055  
    3434  [StorableClass]
    3535  public sealed class RightSelector : Selector {
    36     private ValueParameter<BoolValue> CopySelectedParameter {
    37       get { return (ValueParameter<BoolValue>)Parameters["CopySelected"]; }
     36    private IValueParameter<BoolValue> CopySelectedParameter {
     37      get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; }
    3838    }
    3939    public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter {
     
    5656      Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(true)));
    5757      Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected."));
     58      CopySelectedParameter.Hidden = true;
    5859    }
    5960
  • branches/histogram/HeuristicLab.Selection/3.3/SingleObjectiveSelector.cs

    r5445 r6055  
    3333  [StorableClass]
    3434  public abstract class SingleObjectiveSelector : Selector {
    35     protected ValueParameter<BoolValue> CopySelectedParameter {
    36       get { return (ValueParameter<BoolValue>)Parameters["CopySelected"]; }
     35    protected IValueParameter<BoolValue> CopySelectedParameter {
     36      get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; }
    3737    }
    3838    public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter {
    39       get { return (ValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; }
     39      get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; }
    4040    }
    4141    public IValueLookupParameter<BoolValue> MaximizationParameter {
     
    6161      Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false."));
    6262      Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality value contained in each sub-scope which is used for selection."));
     63      CopySelectedParameter.Hidden = true;
    6364    }
    6465  }
Note: See TracChangeset for help on using the changeset viewer.