Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9249 for branches


Ignore:
Timestamp:
02/27/13 13:24:59 (12 years ago)
Author:
bburlacu
Message:

#1772: Updated matching criteria to BoolValues in SymbolicDataAnalysisExpressionTreeMatching.cs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisExpressionTreeMatching.cs

    r9241 r9249  
    44using HeuristicLab.Common;
    55using HeuristicLab.Core;
     6using HeuristicLab.Data;
    67using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    78using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    2425    // more flexible matching criteria
    2526    [Storable]
    26     private bool matchConstantValues;
     27    private BoolValue matchConstantValues;
    2728    public bool MatchConstantValues {
    28       get { return matchConstantValues; }
    29       set { matchConstantValues = value; }
     29      get { return matchConstantValues.Value; }
     30      set { matchConstantValues.Value = value; }
    3031    }
    3132
    3233    [Storable]
    33     private bool matchVariableNames;
     34    private BoolValue matchVariableNames;
    3435    public bool MatchVariableNames {
    35       get { return matchVariableNames; }
    36       set { matchVariableNames = value; }
     36      get { return matchVariableNames.Value; }
     37      set { matchVariableNames.Value = value; }
    3738    }
    3839
    3940    [Storable]
    40     private bool matchVariableWeights;
     41    private BoolValue matchVariableWeights;
    4142    public bool MatchVariableWeights {
    42       get { return matchVariableWeights; }
    43       set { matchVariableWeights = value; }
     43      get { return matchVariableWeights.Value; }
     44      set { matchVariableWeights.Value = value; }
    4445    }
    4546
     
    4950
    5051    public SymbolicExpressionTreeNodeSimilarityComparer() {
    51       matchConstantValues = true;
    52       matchVariableNames = true;
    53       matchVariableWeights = true;
     52      matchConstantValues = new BoolValue(true);
     53      matchVariableNames = new BoolValue(true);
     54      matchVariableWeights = new BoolValue(true);
    5455    }
    5556
Note: See TracChangeset for help on using the changeset viewer.