Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/20/13 10:10:41 (11 years ago)
Author:
bburlacu
Message:

#1772: Removed unnecessary subproject (not included in solution). Merged changes from tree layout branch.

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  
    5656      Length = original.Length;
    5757      Index = original.Index;
     58      OldIndex = original.OldIndex;
    5859    }
    5960
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/GeneticExchange.cs

    r9835 r9996  
    2828  [StorableClass]
    2929  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    }
    3242
    3343    [StorableConstructor]
    3444    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    }
    3651    public GeneticExchange() { }
    3752
  • branches/HeuristicLab.EvolutionaryTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/LayoutEngines/ReingoldTilfordLayoutEngine.cs

    r9963 r9996  
    4646        root = value;
    4747      }
    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));
    5748    }
    5849
     
    161152
    162153    private void SecondWalk(ILayoutNode<T> v, float m) {
    163       if (!nodes.Values.Contains(v)) throw new Exception("Layout node not present in dictionary!");
    164154      v.X = v.Prelim + m;
    165155      v.Y = v.Level * minVerticalSpacing;
Note: See TracChangeset for help on using the changeset viewer.