Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/09/14 15:11:16 (11 years ago)
Author:
bburlacu
Message:

#1772: Fixed persistence errors in the GenealogyAnalyzer and the instrumented operators, tweaked display code in the GenealogyGraphChart.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r10822 r10830  
    355355      // add tracking analyzer
    356356      foreach (var op in operators.OfType<SymbolicDataAnalysisGenealogyAnalyzer>()) {
    357         op.BeforeCrossoverOperator = new SymbolicDataAnalysisExpressionBeforeCrossoverOperator();
    358         op.AfterCrossoverOperator = new SymbolicDataAnalysisExpressionAfterCrossoverOperator();
    359         op.BeforeManipulatorOperator = new SymbolicDataAnalysisExpressionBeforeManipulatorOperator();
    360         op.AfterManipulatorOperator = new SymbolicDataAnalysisExpressionAfterManipulatorOperator();
     357        op.BeforeCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeCrossoverOperator();
     358        op.AfterCrossoverOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterCrossoverOperator();
     359        op.BeforeManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionBeforeManipulatorOperator();
     360        op.AfterManipulatorOperatorParameter.ActualValue = new SymbolicDataAnalysisExpressionAfterManipulatorOperator();
    361361        // get crossover parameter names
    362362        var crossover = operators.OfType<ISymbolicExpressionTreeCrossover>().FirstOrDefault();
    363363        if (crossover != null) {
    364           op.CrossoverParentsParameterName = crossover.ParentsParameter.Name;
    365           op.CrossoverChildParameterName = crossover.ChildParameter.Name;
    366         }
    367         // get munipulator parameter names
     364          op.BeforeCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name;
     365          op.AfterCrossoverOperator.ParentsParameter.ActualName = crossover.ParentsParameter.Name;
     366          op.BeforeCrossoverOperator.ChildParameter.ActualName = crossover.ChildParameter.Name;
     367          op.AfterCrossoverOperator.ChildParameter.ActualName = crossover.ChildParameter.Name;
     368        }
     369        // get manipulator parameter names
    368370        var manipulator = operators.OfType<ISymbolicExpressionTreeManipulator>().FirstOrDefault();
    369371        if (manipulator != null) {
    370           op.ManipulatorChildParameterName = manipulator.SymbolicExpressionTreeParameter.Name;
     372          op.BeforeManipulatorOperator.ChildParameter.ActualName = manipulator.SymbolicExpressionTreeParameter.Name;
    371373        }
    372374        var creator = operators.OfType<ISymbolicExpressionTreeCreator>().FirstOrDefault();
Note: See TracChangeset for help on using the changeset viewer.