Changeset 10833 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeManipulatorOperator.cs
- Timestamp:
- 05/11/14 00:03:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeManipulatorOperator.cs
r10827 r10833 33 33 vChild.InArcs.First().Data = vChild.Content.IterateNodesPrefix().ToList(); 34 34 35 var vClone = (IGenealogyGraphNode<ISymbolicExpressionTree>)vChild.InArcs.Last().Source; 36 var fragment = (IFragment<ISymbolicExpressionTreeNode>)vClone.InArcs.Last().Data; 37 if (fragment != null) { 38 // this step must be performed because the fragment root actually references the original child (not the clone). 39 // then, a mutation operation (acting on the original child), could disrupt it 40 fragment.Root = vClone.Content.IterateNodesPrefix().ElementAt(fragment.Index1); 41 } 42 35 43 return result; 36 44 }
Note: See TracChangeset
for help on using the changeset viewer.