T
- subtype of an ISystemModelElementpublic abstract class AbstractDependencyGraphFormatterVisitor<T extends ISystemModelElement> extends java.lang.Object implements AbstractGraph.IGraphVisitor<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>>
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuilder |
builder |
protected boolean |
includeWeights
The flag determining whether to include weights or not.
|
protected boolean |
plotLoops
The flag determining whether to plot loops or not.
|
protected boolean |
useShortLabels
The flag determining whether to use short labels or not.
|
Constructor and Description |
---|
AbstractDependencyGraphFormatterVisitor(java.lang.StringBuilder builder,
boolean includeWeights,
boolean plotLoops,
boolean useShortLabels)
Creates a new formatter visitor using the given arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
visitEdge(WeightedBidirectionalDependencyGraphEdge<T> edge)
Call-back operation that is invoked when an edge is encountered during graph traversal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitVertex
protected final java.lang.StringBuilder builder
protected final boolean includeWeights
protected final boolean plotLoops
protected final boolean useShortLabels
public AbstractDependencyGraphFormatterVisitor(java.lang.StringBuilder builder, boolean includeWeights, boolean plotLoops, boolean useShortLabels)
builder
- The string builder to send the generated output toincludeWeights
- Indicates whether weights should be printed at the edgesplotLoops
- Indicates whether self-loops should be displayeduseShortLabels
- Indicates whether short labels should be usedpublic void visitEdge(WeightedBidirectionalDependencyGraphEdge<T> edge)
AbstractGraph.IGraphVisitor
visitEdge
in interface AbstractGraph.IGraphVisitor<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>>
edge
- The encountered edgeCopyright 2020 Kieker Project, http://kieker-monitoring.net