Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/04/14 14:50:52 (10 years ago)
Author:
bburlacu
Message:

#1772: Added missing Storable constructor to GenealogyGraphNode<T> class. Prefer cloning vertices in the GenealogyAnalyzer. Add In/Out Degree in node tooltip in the GenealogyGraphChart.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraphNode.cs

    r11253 r11262  
    3636    public override IDeepCloneable Clone(Cloner cloner) {
    3737      return new GenealogyGraphNode(this, cloner);
    38     }
    39 
    40     // this constructor emulates the behavior of a copy constructor
    41     // it returns a shallow copy in which the arcs are not cloned
    42     protected GenealogyGraphNode(IGenealogyGraphNode original)
    43       : base((IDeepCloneable)original.Data.Clone()) {
    44       Quality = original.Quality;
    45       Rank = original.Rank;
    46       IsElite = original.IsElite;
    47       Id = Guid.NewGuid().ToString();
    4838    }
    4939
     
    146136    }
    147137
    148     public GenealogyGraphNode(IGenealogyGraphNode<T> original) : base(original) { }
     138    [StorableConstructor]
     139    protected GenealogyGraphNode(bool deserializing) : base(deserializing) { }
    149140
    150141    public GenealogyGraphNode(IDeepCloneable content) : base(content) { }
Note: See TracChangeset for help on using the changeset viewer.