Changeset 11253 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking
- Timestamp:
- 07/31/14 17:11:39 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/FragmentGraphView.cs
r11015 r11253 70 70 tileDictionary.Clear(); 71 71 foreach (var node in Content.Vertices) { 72 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)node. Content;72 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)node.Data; 73 73 var tile = new SymbolicExpressionTreeTile(chart); 74 74 tile.LayoutEngine = symbolicExpressionEngine; 75 tile.Label = "Generation " + node. Content.Rank + Environment.NewLine +76 "Quality " + String.Format("{0:0.000}", node. Content.Quality);77 tile.Root = graphNode. Content.Root;75 tile.Label = "Generation " + node.Data.Rank + Environment.NewLine + 76 "Quality " + String.Format("{0:0.000}", node.Data.Quality); 77 tile.Root = graphNode.Data.Root; 78 78 var tileNode = new TileLayoutNode { Tile = tile }; 79 79 tileDictionary.Add(node, tileNode); … … 117 117 var aSize = aTile.Size; 118 118 var aPos = aTile.Position; 119 var graphNode = node. Content;119 var graphNode = node.Data; 120 120 121 121 if (node.SubtreeIndex > 0) { 122 var subtree = graphNode. Content.Root.NodeAt(node.SubtreeIndex);122 var subtree = graphNode.Data.Root.NodeAt(node.SubtreeIndex); 123 123 foreach (var s in subtree.IterateNodesPrefix()) { 124 124 var primitive = aTile.GetPrimitive(s); … … 132 132 } 133 133 if (node.FragmentIndex > 0) { 134 var subtree = graphNode. Content.Root.NodeAt(node.FragmentIndex);134 var subtree = graphNode.Data.Root.NodeAt(node.FragmentIndex); 135 135 foreach (var s in subtree.IterateNodesPrefix()) { 136 136 var primitive = aTile.GetPrimitive(s); … … 149 149 var index = node.SubtreeIndex + (parent.FragmentIndex - parent.SubtreeIndex); 150 150 // some mutations create discontinuities which invalidate the index 151 if (index >= 0 && index < graphNode. Content.Length) {152 var subtree = graphNode. Content.NodeAt(index);151 if (index >= 0 && index < graphNode.Data.Length) { 152 var subtree = graphNode.Data.NodeAt(index); 153 153 var primitive = aTile.GetPrimitive(subtree); 154 154 primitive.Brush = new SolidBrush(Color.LightCoral); -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymboldDataAnalysisGenealogyView.cs
r11233 r11253 74 74 var visualNode = (VisualGenealogyGraphNode)sender; 75 75 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)visualNode.Data; 76 var tree = graphNode. Content;76 var tree = graphNode.Data; 77 77 symbolicExpressionTreeChart.Tree = tree; 78 78 … … 80 80 var fragment = (IFragment<ISymbolicExpressionTreeNode>)graphNode.InArcs.Last().Data; 81 81 if (fragment != null) { 82 treeChart_HighlightSubtree(graphNode. Content.NodeAt(fragment.Index1));82 treeChart_HighlightSubtree(graphNode.Data.NodeAt(fragment.Index1)); 83 83 } 84 84 } … … 98 98 // perform fragment tracing 99 99 var graphNode = (IGenealogyGraphNode<ISymbolicExpressionTree>)genealogyGraphChart.SelectedGraphNode; 100 var subtreeIndex = graphNode. Content.IterateNodesPrefix().ToList().IndexOf(subtree);100 var subtreeIndex = graphNode.Data.IterateNodesPrefix().ToList().IndexOf(subtree); 101 101 var fragmentGraph = SymbolicDataAnalysisExpressionTracing.TraceSubtree(graphNode, subtreeIndex); 102 102 if (fragmentGraph.Vertices.Any()) { … … 106 106 // perform matching like it was done before 107 107 // currently there is no possibility to specify the subtree matching criteria 108 var trees = Content.Vertices.Select(x => x. Content);108 var trees = Content.Vertices.Select(x => x.Data); 109 109 var matchingTrees = trees.Where(x => x.Root.ContainsSubtree(subtree, comparer)); 110 110 -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Tracking/SymbolicDataAnalysisExpressionLineageExplorerView.cs
r10746 r11253 64 64 var treeNode = new TreeNode(g.Quality.ToString(CultureInfo.InvariantCulture)); 65 65 treeView.Nodes.Add(treeNode); 66 treeMap.Add(treeNode, (ISymbolicExpressionTree)g. Content);66 treeMap.Add(treeNode, (ISymbolicExpressionTree)g.Data); 67 67 } 68 68 }
Note: See TracChangeset
for help on using the changeset viewer.