Class AbstractDependencyGraphFormatterVisitor<T extends ISystemModelElement>
java.lang.Object
kieker.visualization.trace.dependency.graph.AbstractDependencyGraphFormatterVisitor<T>
- Type Parameters:
T- subtype of an ISystemModelElement
- All Implemented Interfaces:
AbstractGraph.IGraphVisitor<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>>
public abstract class AbstractDependencyGraphFormatterVisitor<T extends ISystemModelElement> extends java.lang.Object implements AbstractGraph.IGraphVisitor<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>>
Abstract base class for dependency-graph-formatting visitors. This base class already provides the common
algorithm for formatting edges.
- Since:
- 1.6
- Author:
- Holger Knoche
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringBuilderbuilderprotected booleanincludeWeightsThe flag determining whether to include weights or not.protected booleanplotLoopsThe flag determining whether to plot loops or not.protected booleanuseShortLabelsThe flag determining whether to use short labels or not. -
Constructor Summary
Constructors Constructor Description AbstractDependencyGraphFormatterVisitor(java.lang.StringBuilder builder, boolean includeWeights, boolean plotLoops, boolean useShortLabels)Creates a new formatter visitor using the given arguments. -
Method Summary
Modifier and Type Method Description voidvisitEdge(WeightedBidirectionalDependencyGraphEdge<T> edge)Call-back operation that is invoked when an edge is encountered during graph traversal.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraph.IGraphVisitor
visitVertex
-
Field Details
-
builder
protected final java.lang.StringBuilder builder -
includeWeights
protected final boolean includeWeightsThe flag determining whether to include weights or not. -
plotLoops
protected final boolean plotLoopsThe flag determining whether to plot loops or not. -
useShortLabels
protected final boolean useShortLabelsThe flag determining whether to use short labels or not.
-
-
Constructor Details
-
AbstractDependencyGraphFormatterVisitor
public AbstractDependencyGraphFormatterVisitor(java.lang.StringBuilder builder, boolean includeWeights, boolean plotLoops, boolean useShortLabels)Creates a new formatter visitor using the given arguments.- Parameters:
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 used
-
-
Method Details
-
visitEdge
Description copied from interface:AbstractGraph.IGraphVisitorCall-back operation that is invoked when an edge is encountered during graph traversal.- Specified by:
visitEdgein interfaceAbstractGraph.IGraphVisitor<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>>- Parameters:
edge- The encountered edge
-