Changeset 9996 for branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Timestamp:
- 09/20/13 10:10:41 (11 years ago)
- Location:
- branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Fragment.cs
r9835 r9996 56 56 Length = original.Length; 57 57 Index = original.Index; 58 OldIndex = original.OldIndex; 58 59 } 59 60 -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/GeneticExchange.cs
r9835 r9996 28 28 [StorableClass] 29 29 public class GeneticExchange : Item { 30 public IFragment FragmentIn { get; set; } 31 public IFragment FragmentOut { get; set; } 30 [Storable] 31 private IFragment inFragment; 32 public IFragment FragmentIn { 33 get { return inFragment; } 34 set { inFragment = value; } 35 } 36 [Storable] 37 private IFragment outFragment; 38 public IFragment FragmentOut { 39 get { return outFragment; } 40 set { outFragment = value; } 41 } 32 42 33 43 [StorableConstructor] 34 44 private GeneticExchange(bool serializing) : base(serializing) { } 35 private GeneticExchange(GeneticExchange original, Cloner cloner) : base(original, cloner) { } 45 46 private GeneticExchange(GeneticExchange original, Cloner cloner) 47 : base(original, cloner) { 48 inFragment = (IFragment)original.inFragment.Clone(); 49 outFragment = (IFragment)original.outFragment.Clone(); 50 } 36 51 public GeneticExchange() { } 37 52 -
branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs
r9963 r9996 46 46 root = value; 47 47 } 48 }49 50 /// <summary>51 /// Returns a string containing all the coordinates (useful for debugging).52 /// </summary>53 /// <returns></returns>54 public string DumpCoordinates() {55 if (nodes == null || nodes.Count == 0) return string.Empty;56 return nodes.Values.Aggregate("", (current, node) => current + (node.X + " " + node.Y + Environment.NewLine));57 48 } 58 49 … … 161 152 162 153 private void SecondWalk(ILayoutNode<T> v, float m) { 163 if (!nodes.Values.Contains(v)) throw new Exception("Layout node not present in dictionary!");164 154 v.X = v.Prelim + m; 165 155 v.Y = v.Level * minVerticalSpacing;
Note: See TracChangeset
for help on using the changeset viewer.