Kieker 1.12

kieker.tools.traceAnalysis.filter.visualization.dependencyGraph
Class AbstractDependencyGraphFormatterVisitor<T extends ISystemModelElement>

java.lang.Object
  extended by kieker.tools.traceAnalysis.filter.visualization.dependencyGraph.AbstractDependencyGraphFormatterVisitor<T>
Type Parameters:
T -
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
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 Summary
AbstractDependencyGraphFormatterVisitor(java.lang.StringBuilder builder, boolean includeWeights, boolean plotLoops, boolean useShortLabels)
          Creates a new formatter visitor using the given arguments.
 
Method Summary
 void visitEdge(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, wait
 
Methods inherited from interface kieker.tools.traceAnalysis.filter.visualization.graph.AbstractGraph.IGraphVisitor
visitVertex
 

Field Detail

builder

protected final java.lang.StringBuilder builder

includeWeights

protected final boolean includeWeights
The flag determining whether to include weights or not.


plotLoops

protected final boolean plotLoops
The flag determining whether to plot loops or not.


useShortLabels

protected final boolean useShortLabels
The flag determining whether to use short labels or not.

Constructor Detail

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 to
includeWeights - Indicates whether weights should be printed at the edges
plotLoops - Indicates whether self-loops should be displayed
useShortLabels - Indicates whether short labels should be used
Method Detail

visitEdge

public void visitEdge(WeightedBidirectionalDependencyGraphEdge<T> edge)
Description copied from interface: AbstractGraph.IGraphVisitor
Call-back operation that is invoked when an edge is encountered during graph traversal.

Specified by:
visitEdge in interface AbstractGraph.IGraphVisitor<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>>
Parameters:
edge - The encountered edge

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net