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)

File:
1 edited

Legend:

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

    r3017 r3048  
    3636    private string actualName;
    3737
    38     public SubScopesLookupParameter<DoubleData> ValueParameter {
    39       get { return (SubScopesLookupParameter<DoubleData>)Parameters["Value"]; }
     38    public SubScopesLookupParameter<DoubleValue> ValueParameter {
     39      get { return (SubScopesLookupParameter<DoubleValue>)Parameters["Value"]; }
    4040    }
    41     public ValueLookupParameter<BoolData> DescendingParameter {
    42       get { return (ValueLookupParameter<BoolData>)Parameters["Descending"]; }
     41    public ValueLookupParameter<BoolValue> DescendingParameter {
     42      get { return (ValueLookupParameter<BoolValue>)Parameters["Descending"]; }
    4343    }
    4444    private ScopeParameter CurrentScopeParameter {
     
    5151    public SubScopesSorter()
    5252      : base() {
    53       Parameters.Add(new SubScopesLookupParameter<DoubleData>("Value", "The values contained in each sub-scope acording which the sub-scopes of the current scope are sorted."));
    54       Parameters.Add(new ValueLookupParameter<BoolData>("Descending", "True if the sub-scopes should be sorted in descending order, otherwise false."));
     53      Parameters.Add(new SubScopesLookupParameter<DoubleValue>("Value", "The values contained in each sub-scope acording which the sub-scopes of the current scope are sorted."));
     54      Parameters.Add(new ValueLookupParameter<BoolValue>("Descending", "True if the sub-scopes should be sorted in descending order, otherwise false."));
    5555      Parameters.Add(new ScopeParameter("CurrentScope", "The current scope whose sub-scopes are sorted."));
    5656    }
     
    5858    public override IOperation Apply() {
    5959      descending = DescendingParameter.ActualValue.Value;
    60       actualName = LookupParameter<ItemArray<DoubleData>>.TranslateName(ValueParameter.Name, ExecutionContext);
     60      actualName = LookupParameter<ItemArray<DoubleValue>>.TranslateName(ValueParameter.Name, ExecutionContext);
    6161      CurrentScope.SubScopes.Sort(SortScopes);
    6262      return base.Apply();
     
    7575        return -1;
    7676      else {
    77         int result = ((DoubleData)var1.Value).CompareTo((DoubleData)var2.Value);
     77        int result = ((DoubleValue)var1.Value).CompareTo((DoubleValue)var2.Value);
    7878        if (descending) result = result * -1;
    7979        return result;
Note: See TracChangeset for help on using the changeset viewer.