Rev | Line | |
---|
[10267] | 1 |
|
---|
| 2 | using HeuristicLab.Common;
|
---|
| 3 | using HeuristicLab.Core;
|
---|
| 4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
| 5 |
|
---|
[10271] | 6 | namespace 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.