Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kieker-TeeTime-Stages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeeTime
Kieker-TeeTime-Stages
Commits
badc1a11
Commit
badc1a11
authored
9 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Add some attributes to GraphML export
parent
55f5d41f
No related branches found
No related tags found
1 merge request
!17
Get impletemented stages and Java 8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/kieker/analysis/graph/export/graphml/GraphTypeTransformer.java
+10
-2
10 additions, 2 deletions
...r/analysis/graph/export/graphml/GraphTypeTransformer.java
with
10 additions
and
2 deletions
src/main/java/kieker/analysis/graph/export/graphml/GraphTypeTransformer.java
+
10
−
2
View file @
badc1a11
package
kieker.analysis.graph.export.graphml
;
import
org.graphdrawing.graphml.EdgeType
;
import
org.graphdrawing.graphml.GraphEdgedefaultType
;
import
org.graphdrawing.graphml.GraphType
;
import
org.graphdrawing.graphml.NodeType
;
import
kieker.analysis.graph.Direction
;
import
kieker.analysis.graph.Edge
;
import
kieker.analysis.graph.Graph
;
import
kieker.analysis.graph.Vertex
;
...
...
@@ -16,13 +18,16 @@ public class GraphTypeTransformer extends AbstractTransformer<GraphType> {
public
GraphTypeTransformer
(
final
Graph
graph
)
{
super
(
graph
);
graphType
=
new
GraphType
();
graphType
.
setEdgedefault
(
GraphEdgedefaultType
.
DIRECTED
);
graphType
.
setId
(
graph
.
getName
());
}
@Override
protected
void
mapVertex
(
final
Vertex
vertex
)
{
NodeType
nodeType
=
new
NodeType
();
// TODO Map Properties + id
nodeType
.
setId
(
vertex
.
getId
().
toString
());
// TODO Map Properties
if
(
vertex
.
hasChildGraph
())
{
Graph
childGraph
=
vertex
.
getChildGraph
();
...
...
@@ -37,7 +42,10 @@ public class GraphTypeTransformer extends AbstractTransformer<GraphType> {
@Override
protected
void
mapEdge
(
final
Edge
edge
)
{
EdgeType
edgeType
=
new
EdgeType
();
// TODO Map Properties + id + source/target
edgeType
.
setId
(
edge
.
getId
().
toString
());
edgeType
.
setSource
(
edge
.
getVertex
(
Direction
.
OUT
).
getId
().
toString
());
edgeType
.
setTarget
(
edge
.
getVertex
(
Direction
.
IN
).
getId
().
toString
());
// TODO Map Properties
graphType
.
getDataOrNodeOrEdge
().
add
(
edgeType
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment