Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraphArc.cs @ 10267

Last change on this file since 10267 was 10267, checked in by bburlacu, 10 years ago

#1772: Updated files in the HeuristicLab.EvolutionTracking project.

File size: 934 bytes
Line 
1
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
6namespace HeuristicLab.EvolutionaryTracking {
7  [StorableClass]
8  [Item("GenealogyGraphArc", "A graph arc connecting two GenealogyGraphNodes and holding some data.")]
9  public class GenealogyGraphArc<T> : Arc, IGenealogyGraphArc where T : class,IItem {
10    [StorableConstructor]
11    protected GenealogyGraphArc(bool deserializing) : base(deserializing) { }
12    protected GenealogyGraphArc(GenealogyGraphArc<T> original, Cloner cloner)
13      : base(original, cloner) {
14      Data = (T)original.Data.Clone();
15    }
16    public override IDeepCloneable Clone(Cloner cloner) {
17      return new GenealogyGraphArc<T>(this, cloner);
18    }
19    public new IGenealogyGraphNode Source { get; set; }
20    public new IGenealogyGraphNode Target { get; set; }
21    public new T Data { get; set; }
22  }
23}
Note: See TracBrowser for help on using the repository browser.