Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/27/14 16:33:17 (10 years ago)
Author:
bburlacu
Message:

#1772: Adjusted namespace in Plugin.cs.frame for HeuristicLab.EvolutionTracking.Views. Simplified DirectedGraph and GenealogyGraph API. Added public events for the Vertex content (so that the graph itself can be notified when the content changes and can adjust it's content-to-vertex map. Adjusted instrumented operators code to reflect api changes.

File:
1 edited

Legend:

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

    r10890 r10897  
    5151    public override IOperation Apply() {
    5252      // since mutation always takes place after crossover, the vertex for the current child is already in the tree
    53       var v = (IGenealogyGraphNode<T>)GenealogyGraph[ChildParameter.ActualValue];
     53      var v = (IGenealogyGraphNode<T>)GenealogyGraph.GetVertex(ChildParameter.ActualValue);
    5454
    5555      if (!v.Rank.IsAlmost(Generations.Value + 1)) {
     
    5858      var clone = (T)ChildParameter.ActualValue.Clone();
    5959
    60       var c = new GenealogyGraphNode<T> {
    61         Rank = v.Rank - 0.5,
    62         Content = clone
    63       };
     60      var c = new GenealogyGraphNode<T>(clone) { Rank = v.Rank - 0.5 };
    6461
    6562      foreach (var a in v.InArcs) {
Note: See TracChangeset for help on using the changeset viewer.