Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/24/14 16:59:22 (10 years ago)
Author:
bburlacu
Message:

#1772: Added new SymbolicDataAnalysisGenealogyView and added support for the tracing of building blocks (finding the constituent ancestral elements of a selected subtree).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/Operators/EvolutionTrackingOperator.cs

    r10300 r10650  
    2828
    2929namespace HeuristicLab.EvolutionTracking {
    30   public class EvolutionTrackingOperator : SingleSuccessorOperator {
     30  public class EvolutionTrackingOperator<T> : SingleSuccessorOperator where T : class,IItem {
    3131    // evolution tracking-related parameters
    3232    private const string resultsParameterName = "Results";
     
    4646      get { return GenerationsParameter.ActualValue; }
    4747    }
    48     public IGenealogyGraph GenealogyGraph {
     48    public IGenealogyGraph<T> GenealogyGraph {
    4949      get {
    5050        IResult result;
    5151        if (!Results.ContainsKey(populationGraphParameterName)) {
    52           result = new Result(populationGraphParameterName, new GenealogyGraph());
     52          result = new Result(populationGraphParameterName, new GenealogyGraph<T>());
    5353          Results.Add(result);
    5454        } else {
    5555          result = Results[populationGraphParameterName];
    5656        }
    57         var graph = (GenealogyGraph)result.Value;
     57        var graph = (GenealogyGraph<T>)result.Value;
    5858        return graph;
    5959      }
     
    6363      Parameters.Add(new LookupParameter<ResultCollection>(resultsParameterName));
    6464    }
    65     protected EvolutionTrackingOperator(EvolutionTrackingOperator original, Cloner cloner)
     65    protected EvolutionTrackingOperator(EvolutionTrackingOperator<T> original, Cloner cloner)
    6666      : base(original, cloner) {
    6767    }
    6868    public override IDeepCloneable Clone(Cloner cloner) {
    69       return new EvolutionTrackingOperator(this, cloner);
     69      return new EvolutionTrackingOperator<T>(this, cloner);
    7070    }
    7171  }
Note: See TracChangeset for help on using the changeset viewer.