Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/01/10 04:46:06 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

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

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/Comparator.cs

    r2890 r2891  
    4040      get { return (ValueLookupParameter<IItem>)Parameters["RightSide"]; }
    4141    }
    42     private OptionalValueParameter<ComparisonData> ComparisonParameter {
    43       get { return (OptionalValueParameter<ComparisonData>)Parameters["Comparison"]; }
     42    private ValueParameter<ComparisonData> ComparisonParameter {
     43      get { return (ValueParameter<ComparisonData>)Parameters["Comparison"]; }
    4444    }
    4545    public LookupParameter<BoolData> ResultParameter {
     
    5555      Parameters.Add(new LookupParameter<IItem>("LeftSide", "The left side of the comparison."));
    5656      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)));
    5858      Parameters.Add(new LookupParameter<BoolData>("Result", "The result of the comparison."));
    5959    }
  • trunk/sources/HeuristicLab.Operators/3.3/SubScopesRemover.cs

    r2890 r2891  
    3333  [Creatable("Test")]
    3434  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"]; }
    3737    }
    3838    public ValueLookupParameter<IntData> SubScopeIndexParameter {
     
    5353    public SubScopesRemover()
    5454      : 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)));
    5656      Parameters.Add(new ValueLookupParameter<IntData>("SubScopeIndex", "The index of the sub-scope which should be removed. This parameter is ignored, if RemoveAllSubScopes is true."));
    5757      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.