Changeset 17434 for branches/1772_HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Timestamp:
- 02/11/20 13:36:02 (5 years ago)
- Location:
- branches/1772_HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1772_HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraph.cs
r12966 r17434 26 26 using System.Linq; 27 27 using System.Text; 28 using HEAL.Attic; 28 29 using HeuristicLab.Common; 29 30 using HeuristicLab.Core; 30 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 32 32 namespace HeuristicLab.EvolutionTracking {33 [StorableClass] 33 namespace HeuristicLab.EvolutionTracking 34 { 34 35 [Item("GenealogyGraph", "A class representing a genealogy graph")] 35 public class GenealogyGraph : DirectedGraph, IGenealogyGraph { 36 [StorableType("66DCA305-87F7-41D8-91CF-68415B1809A8")] 37 public class GenealogyGraph : DirectedGraph, IGenealogyGraph 38 { 36 39 private Dictionary<object, IGenealogyGraphNode> contentMap; 37 40 private Dictionary<string, IGenealogyGraphNode> idMap; … … 71 74 72 75 [StorableConstructor] 73 protected GenealogyGraph(bool deserializing) 74 : base(deserializing) { 75 } 76 protected GenealogyGraph(StorableConstructorFlag _) : base(_) { } 76 77 [StorableHook(HookType.AfterDeserialization)] 77 78 private void AfterDeserialization() { … … 191 192 192 193 [Item("GenealogyGraph", "A genealogy graph in which the vertex data is of type T")] 193 [StorableClass] 194 public class GenealogyGraph<T> : GenealogyGraph, IGenealogyGraph<T> where T : class, IItem { 194 [StorableType("3F5043F7-2538-4B76-BA12-062A4CEF5A1A")] 195 public class GenealogyGraph<T> : GenealogyGraph, IGenealogyGraph<T> where T : class, IItem 196 { 195 197 public GenealogyGraph() { } 196 198 private GenealogyGraph(GenealogyGraph original, Cloner cloner) -
branches/1772_HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraphArc.cs
r11925 r17434 20 20 #endregion 21 21 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 25 26 26 27 namespace HeuristicLab.EvolutionTracking { 27 [StorableClass]28 28 [Item("GenealogyGraphArc", "A graph arc connecting two GenealogyGraphNodes and holding some data.")] 29 [StorableType("011C69C6-7E84-4AB0-8DBB-9A5BB69D9484")] 29 30 public class GenealogyGraphArc : Arc<IDeepCloneable>, IGenealogyGraphArc { 30 31 [StorableConstructor] 31 protected GenealogyGraphArc( bool deserializing) : base(deserializing) { }32 protected GenealogyGraphArc(StorableConstructorFlag _) : base(_) { } 32 33 protected GenealogyGraphArc(GenealogyGraphArc original, Cloner cloner) 33 34 : base(original, cloner) { } … … 50 51 } 51 52 52 [StorableClass]53 53 [Item("GenealogyGraphArc", "")] 54 [StorableType("47612662-7C98-44F8-94D0-132B425889F5")] 54 55 public class GenealogyGraphArc<T> : GenealogyGraphArc where T : class,IItem { 55 56 [StorableConstructor] 56 protected GenealogyGraphArc( bool deserializing) : base(deserializing) { }57 protected GenealogyGraphArc(StorableConstructorFlag _) : base(_) { } 57 58 58 59 protected GenealogyGraphArc(GenealogyGraphArc original, Cloner cloner) -
branches/1772_HeuristicLab.EvolutionTracking/HeuristicLab.EvolutionTracking/3.4/GenealogyGraph/GenealogyGraphNode.cs
r15757 r17434 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HEAL.Attic; 25 26 using HeuristicLab.Common; 26 27 using HeuristicLab.Core; … … 28 29 29 30 namespace HeuristicLab.EvolutionTracking { 30 [StorableClass]31 31 [Item("GenealogGraphNode", "A class representing a node in the GenealogyGraph")] 32 [StorableType("3112AC58-F11A-435A-A669-8C9B6EF88F40")] 32 33 public class GenealogyGraphNode : Vertex<IDeepCloneable>, IGenealogyGraphNode { 33 34 [StorableConstructor] 34 protected GenealogyGraphNode( bool deserializing) : base(deserializing) { }35 protected GenealogyGraphNode(StorableConstructorFlag _) : base(_) { } 35 36 36 37 public override IDeepCloneable Clone(Cloner cloner) { … … 132 133 } 133 134 134 [StorableClass]135 135 [Item("GenealogyGraphNode", "A genealogy graph node which also has a Content")] 136 [StorableType("68BE4E3D-2578-4C06-BF03-8583BA03022F")] 136 137 public class GenealogyGraphNode<T> : GenealogyGraphNode, IGenealogyGraphNode<T> where T : class, IItem { 137 138 public new T Data { … … 141 142 142 143 [StorableConstructor] 143 protected GenealogyGraphNode( bool deserializing) : base(deserializing) { }144 protected GenealogyGraphNode(StorableConstructorFlag _) : base(_) { } 144 145 145 146 public GenealogyGraphNode(IDeepCloneable content) : base(content) { }
Note: See TracChangeset
for help on using the changeset viewer.