Changeset 2891 for trunk/sources/HeuristicLab.Operators
- Timestamp:
- 03/01/10 04:46:06 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/Comparator.cs
r2890 r2891 40 40 get { return (ValueLookupParameter<IItem>)Parameters["RightSide"]; } 41 41 } 42 private OptionalValueParameter<ComparisonData> ComparisonParameter {43 get { return ( OptionalValueParameter<ComparisonData>)Parameters["Comparison"]; }42 private ValueParameter<ComparisonData> ComparisonParameter { 43 get { return (ValueParameter<ComparisonData>)Parameters["Comparison"]; } 44 44 } 45 45 public LookupParameter<BoolData> ResultParameter { … … 55 55 Parameters.Add(new LookupParameter<IItem>("LeftSide", "The left side of the comparison.")); 56 56 Parameters.Add(new ValueLookupParameter<IItem>("RightSide", "The right side of the comparison.")); 57 Parameters.Add(new OptionalValueParameter<ComparisonData>("Comparison", "The type of comparison.", new ComparisonData()));57 Parameters.Add(new ValueParameter<ComparisonData>("Comparison", "The type of comparison.", new ComparisonData(Data.Comparison.Equal))); 58 58 Parameters.Add(new LookupParameter<BoolData>("Result", "The result of the comparison.")); 59 59 } -
trunk/sources/HeuristicLab.Operators/3.3/SubScopesRemover.cs
r2890 r2891 33 33 [Creatable("Test")] 34 34 public sealed class SubScopesRemover : SingleSuccessorOperator { 35 private OptionalValueParameter<BoolData> RemoveAllSubScopesParameter {36 get { return ( OptionalValueParameter<BoolData>)Parameters["RemoveAllSubScopes"]; }35 private ValueParameter<BoolData> RemoveAllSubScopesParameter { 36 get { return (ValueParameter<BoolData>)Parameters["RemoveAllSubScopes"]; } 37 37 } 38 38 public ValueLookupParameter<IntData> SubScopeIndexParameter { … … 53 53 public SubScopesRemover() 54 54 : base() { 55 Parameters.Add(new OptionalValueParameter<BoolData>("RemoveAllSubScopes", "True if all sub-scopes of the current scope should be removed, otherwise false.", new BoolData(true)));55 Parameters.Add(new ValueParameter<BoolData>("RemoveAllSubScopes", "True if all sub-scopes of the current scope should be removed, otherwise false.", new BoolData(true))); 56 56 Parameters.Add(new ValueLookupParameter<IntData>("SubScopeIndex", "The index of the sub-scope which should be removed. This parameter is ignored, if RemoveAllSubScopes is true.")); 57 57 Parameters.Add(new ScopeParameter("CurrentScope", "The current scope from which one or all sub-scopes should be removed."));
Note: See TracChangeset
for help on using the changeset viewer.