Changeset 6055 for branches/histogram/HeuristicLab.Selection
- Timestamp:
- 04/27/11 09:22:20 (14 years ago)
- Location:
- branches/histogram
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram
- Property svn:mergeinfo changed
/trunk/sources merged: 6047-6048,6051-6054
- Property svn:mergeinfo changed
-
branches/histogram/HeuristicLab.Selection/3.3/ConditionalSelector.cs
r5445 r6055 34 34 get { return (ScopeTreeLookupParameter<BoolValue>)Parameters["Condition"]; } 35 35 } 36 p ublicValueParameter<BoolValue> CopySelectedParameter {37 get { return ( ValueParameter<BoolValue>)Parameters["CopySelected"]; }36 protected IValueParameter<BoolValue> CopySelectedParameter { 37 get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; } 38 38 } 39 39 … … 55 55 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.")); 56 56 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; 57 58 } 58 59 -
branches/histogram/HeuristicLab.Selection/3.3/CrowdedTournamentSelector.cs
r5445 r6055 39 39 get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; } 40 40 } 41 p ublicIValueParameter<BoolValue> CopySelectedParameter {41 protected IValueParameter<BoolValue> CopySelectedParameter { 42 42 get { return (IValueParameter<BoolValue>)Parameters["CopySelected"]; } 43 43 } … … 76 76 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("CrowdingDistance", "The solutions' crowding distance values.")); 77 77 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; 78 79 } 79 80 -
branches/histogram/HeuristicLab.Selection/3.3/GenderSpecificSelector.cs
r5445 r6055 43 43 get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; } 44 44 } 45 p ublicIValueLookupParameter<BoolValue> CopySelectedParameter {45 protected IValueLookupParameter<BoolValue> CopySelectedParameter { 46 46 get { return (IValueLookupParameter<BoolValue>)Parameters["CopySelected"]; } 47 47 } … … 97 97 Parameters.Add(new ValueParameter<ISelector>("FemaleSelector", "The selection operator to select the first parent.")); 98 98 Parameters.Add(new ValueParameter<ISelector>("MaleSelector", "The selection operator to select the second parent.")); 99 CopySelectedParameter.Hidden = true; 99 100 #endregion 100 101 -
branches/histogram/HeuristicLab.Selection/3.3/LeftSelector.cs
r5445 r6055 34 34 [StorableClass] 35 35 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"]; } 38 38 } 39 39 public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter { … … 59 59 Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(true))); 60 60 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected.")); 61 CopySelectedParameter.Hidden = true; 61 62 } 62 63 -
branches/histogram/HeuristicLab.Selection/3.3/NoSameMatesSelector.cs
r6046 r6055 74 74 #endregion 75 75 76 CopySelectedParameter.Hidden = true;77 76 RegisterParameterEventHandlers(); 78 77 } -
branches/histogram/HeuristicLab.Selection/3.3/RandomSelector.cs
r5445 r6055 35 35 [StorableClass] 36 36 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"]; } 39 39 } 40 40 public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter { … … 59 59 Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(true))); 60 60 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected.")); 61 CopySelectedParameter.Hidden = true; 61 62 } 62 63 -
branches/histogram/HeuristicLab.Selection/3.3/RightSelector.cs
r5445 r6055 34 34 [StorableClass] 35 35 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"]; } 38 38 } 39 39 public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter { … … 56 56 Parameters.Add(new ValueParameter<BoolValue>("CopySelected", "True if the selected sub-scopes should be copied, otherwise false.", new BoolValue(true))); 57 57 Parameters.Add(new ValueLookupParameter<IntValue>("NumberOfSelectedSubScopes", "The number of sub-scopes which should be selected.")); 58 CopySelectedParameter.Hidden = true; 58 59 } 59 60 -
branches/histogram/HeuristicLab.Selection/3.3/SingleObjectiveSelector.cs
r5445 r6055 33 33 [StorableClass] 34 34 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"]; } 37 37 } 38 38 public IValueLookupParameter<IntValue> NumberOfSelectedSubScopesParameter { 39 get { return ( ValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; }39 get { return (IValueLookupParameter<IntValue>)Parameters["NumberOfSelectedSubScopes"]; } 40 40 } 41 41 public IValueLookupParameter<BoolValue> MaximizationParameter { … … 61 61 Parameters.Add(new ValueLookupParameter<BoolValue>("Maximization", "True if the current problem is a maximization problem, otherwise false.")); 62 62 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The quality value contained in each sub-scope which is used for selection.")); 63 CopySelectedParameter.Hidden = true; 63 64 } 64 65 }
Note: See TracChangeset
for help on using the changeset viewer.