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 |
|
---|
2 | using HeuristicLab.Common;
|
---|
3 | using HeuristicLab.Core;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | namespace 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.