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
7ad846b1
Commit
7ad846b1
authored
9 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
made DotBuilder ready for clusters
parent
b24049fc
No related branches found
No related tags found
1 merge request
!17
Get impletemented stages and Java 8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/kieker/analysis/graph/export/dot/GraphTransformer.java
+5
-0
5 additions, 0 deletions
...va/kieker/analysis/graph/export/dot/GraphTransformer.java
src/main/java/kieker/analysis/util/DotBuilder.java
+17
-4
17 additions, 4 deletions
src/main/java/kieker/analysis/util/DotBuilder.java
with
22 additions
and
4 deletions
src/main/java/kieker/analysis/graph/export/dot/GraphTransformer.java
+
5
−
0
View file @
7ad846b1
...
...
@@ -16,6 +16,11 @@ public class GraphTransformer extends AbstractTransformer<String> {
dotBuilder
=
new
DotBuilder
(
graph
.
getName
());
}
public
GraphTransformer
(
final
Graph
graph
,
final
boolean
isCluster
)
{
super
(
graph
);
dotBuilder
=
new
DotBuilder
(
"cluster_"
+
graph
.
getName
(),
"subgraph"
);
}
@Override
protected
void
mapVertex
(
final
Vertex
vertex
)
{
if
(
vertex
.
hasChildGraph
())
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/kieker/analysis/util/DotBuilder.java
+
17
−
4
View file @
7ad846b1
...
...
@@ -15,27 +15,40 @@ import com.google.common.base.Joiner;
public
class
DotBuilder
{
private
final
String
start
;
private
final
String
end
=
"}"
;
private
final
String
end
;
private
final
StringBuilder
body
=
new
StringBuilder
();
private
Map
<
String
,
String
>
defaultNodeProperties
;
private
Map
<
String
,
String
>
defaultEdgeProperties
;
private
Map
<
String
,
String
>
defaultProperties
;
private
static
final
String
START_BRACKET
=
"{"
;
private
static
final
String
END_BRACKET
=
"}"
;
private
static
final
String
DEFAULT_GRAPH_NAME
=
"G"
;
private
static
final
String
DEFAULT_GRAPH_TYPE
=
"digraph"
;
public
DotBuilder
()
{
this
(
"G"
);
this
(
DEFAULT_GRAPH_NAME
);
}
public
DotBuilder
(
final
String
graphName
)
{
this
(
graphName
,
DEFAULT_GRAPH_TYPE
);
}
public
DotBuilder
(
final
String
name
)
{
start
=
"digraph "
+
name
+
" {\n"
;
// TODO graphType has to be one of "graph", "digraph" or "subgraph" so maybe use an enum
public
DotBuilder
(
final
String
graphName
,
final
String
graphType
)
{
start
=
graphType
+
" "
+
graphName
+
" "
+
START_BRACKET
+
"\n"
;
end
=
END_BRACKET
;
}
// TODO Deprecated
public
DotBuilder
(
final
String
name
,
final
Map
<
String
,
String
>
defaultNodeProperties
,
final
Map
<
String
,
String
>
defaultEdgeProperties
)
{
this
(
name
);
this
.
defaultNodeProperties
=
defaultNodeProperties
;
this
.
defaultEdgeProperties
=
defaultEdgeProperties
;
}
// TODO Deprecated
public
DotBuilder
(
final
String
name
,
final
Map
<
String
,
String
>
defaultNodeProperties
,
final
Map
<
String
,
String
>
defaultEdgeProperties
,
final
Map
<
String
,
String
>
defaultProperties
)
{
this
(
name
,
defaultNodeProperties
,
defaultEdgeProperties
);
...
...
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