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 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
FieldsModifier and TypeFieldDescriptionprotected final StringBuilderprotected final booleanThe flag determining whether to include weights or not.protected final booleanThe flag determining whether to plot loops or not.protected final booleanThe flag determining whether to use short labels or not. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDependencyGraphFormatterVisitor(StringBuilder builder, boolean includeWeights, boolean plotLoops, boolean useShortLabels) Creates a new formatter visitor using the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoidCall-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
-
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(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
-