Changeset 10677 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 03/28/14 16:23:40 (11 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionAfterCrossoverOperator.cs
r10654 r10677 10 10 public override IOperation Apply() { 11 11 var child = ChildParameter.ActualValue; 12 var childVertex = GenealogyGraph[child].Last(); 13 var arc0 = (IGenealogyGraphArc)childVertex.InArcs[0]; 14 var arc1 = (IGenealogyGraphArc)childVertex.InArcs[1]; 15 var nodes0 = (List<ISymbolicExpressionTreeNode>)arc0.Data; 16 var nodes1 = (List<ISymbolicExpressionTreeNode>)arc1.Data; 12 var childVertex = (IGenealogyGraphNode)GenealogyGraph[child].Last(); 13 var arcs = childVertex.InArcs.ToList(); 14 var nodes0 = (List<ISymbolicExpressionTreeNode>)arcs[0].Data; 15 var nodes1 = (List<ISymbolicExpressionTreeNode>)arcs[1].Data; 17 16 var childNodes = child.IterateNodesPrefix().ToList(); 18 17 IFragment<ISymbolicExpressionTreeNode> fragment = null; … … 28 27 if (fragment == null) throw new Exception("Could not determine fragment!"); 29 28 30 arc 0.Data = null;31 arc 1.Data = fragment;29 arcs[0].Data = null; 30 arcs[1].Data = fragment; 32 31 33 32 return base.Apply(); -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionAfterManipulatorOperator.cs
r10650 r10677 20 20 public override IOperation Apply() { 21 21 var vChild = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[ChildParameter.ActualValue].First(); 22 var nodesBefore = (List<ISymbolicExpressionTreeNode>)vChild.InArcs [0].Data;22 var nodesBefore = (List<ISymbolicExpressionTreeNode>)vChild.InArcs.First().Data; 23 23 var nodesAfter = ChildParameter.ActualValue.IterateNodesBreadth().ToList(); 24 24 IFragment<ISymbolicExpressionTreeNode> fragment = null; … … 32 32 } 33 33 34 vChild.InArcs [0].Data = fragment;34 vChild.InArcs.First().Data = fragment; 35 35 return base.Apply(); 36 36 } -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeCrossoverOperator.cs
r10674 r10677 32 32 var parents = ParentsParameter.ActualValue.ToList(); 33 33 var childVertex = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[parents[0]].Last(); // use the parent since it is actually the child before crossover (and the ChildParameter doesn't have a value yet) 34 var arcs = childVertex.InArcs.ToList(); 34 35 35 36 for (int i = 0; i < parents.Count; ++i) { 36 37 var nodes = parents[i].IterateNodesPrefix().ToList(); 37 var arc = childVertex.InArcs[i]; 38 arc.Data = nodes; 38 arcs[i].Data = nodes; 39 39 } 40 40 var parentVertices = childVertex.InArcs.Select(x => (IGenealogyGraphNode<ISymbolicExpressionTree>)x.Source).ToList(); -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeManipulatorOperator.cs
r10347 r10677 10 10 11 11 var vChild = (IGenealogyGraphNode<ISymbolicExpressionTree>)GenealogyGraph[ChildParameter.ActualValue].Last(); 12 vChild.InArcs [0].Data = vChild.Content.IterateNodesBreadth().ToList();12 vChild.InArcs.First().Data = vChild.Content.IterateNodesBreadth().ToList(); 13 13 14 14 return result;
Note: See TracChangeset
for help on using the changeset viewer.