Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1772: Fixed namespaces.

File size: 931 bytes
RevLine 
[10267]1
2using HeuristicLab.Common;
3using HeuristicLab.Core;
4using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
5
[10271]6namespace HeuristicLab.EvolutionTracking {
[10267]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.