Changeset 11925 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 02/05/15 19:35:34 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj
r11858 r11925 321 321 <Compile Include="Tracking\TraceCalculator.cs" /> 322 322 <Compile Include="TransformationToSymbolicTreeMapper.cs" /> 323 <Compile Include="Tracking\FragmentGraph\FragmentGraph.cs" />324 323 <Compile Include="Tracking\SymbolicDataAnalysisExpressionAfterCrossoverOperator.cs" /> 325 324 <Compile Include="Tracking\SymbolicDataAnalysisExpressionBeforeCrossoverOperator.cs" /> -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeCrossoverOperator.cs
r11852 r11925 49 49 50 50 for (int i = 0; i < parents.Count; ++i) { 51 arcs[i].Data = parents[i].IterateNodesPrefix().To List();51 arcs[i].Data = parents[i].IterateNodesPrefix().ToCloneableCollection(); 52 52 } 53 53 -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/TraceCalculator.cs
r11881 r11925 95 95 Debug.Assert(si < g.Data.Length); 96 96 var inArcs = (List<IArc>)((IVertex)g).InArcs; 97 var fragment = (IFragment<ISymbolicExpressionTreeNode>) inArcs.Last().Data;97 var fragment = (IFragment<ISymbolicExpressionTreeNode>)((IGenealogyGraphArc)inArcs.Last()).Data; 98 98 if (fragment == null) { 99 99 // TODO: think about what the correct behavior should be here (seems good so far) … … 225 225 } 226 226 // this class is here to help clarify the semantics 227 public class TraceData : Tuple<int, int, int, int> {227 public class TraceData : Tuple<int, int, int, int>, IDeepCloneable { 228 228 public TraceData(int currentSubtreeIndex, int currentFragmentIndex, int lastSubtreeIndex, int lastFragmentIndex) 229 229 : base(currentSubtreeIndex, currentFragmentIndex, lastSubtreeIndex, lastFragmentIndex) { … … 234 234 public int LastSubtreeIndex { get { return Item3; } } 235 235 public int LastFragmentIndex { get { return Item4; } } 236 public object Clone() { 237 return new TraceData(SubtreeIndex, FragmentIndex, LastSubtreeIndex, LastFragmentIndex); 238 } 239 240 public IDeepCloneable Clone(Cloner cloner) { 241 return cloner.Clone(this); 242 } 236 243 } 237 244
Note: See TracChangeset
for help on using the changeset viewer.