Kieker 1.6

kieker.tools.traceAnalysis.filter.visualization.traceColoring
Class TraceColoringFilter<V extends AbstractVertex<V,E,TraceInformation>,E extends AbstractEdge<V,E,TraceInformation>>

java.lang.Object
  extended by kieker.analysis.plugin.AbstractPlugin
      extended by kieker.analysis.plugin.filter.AbstractFilterPlugin
          extended by kieker.tools.traceAnalysis.filter.visualization.AbstractGraphFilter<AbstractGraph<V,E,TraceInformation>,V,E,TraceInformation>
              extended by kieker.tools.traceAnalysis.filter.visualization.traceColoring.TraceColoringFilter<V,E>
Type Parameters:
V - The type of the graph's vertices
E - The type of the graph's edges
All Implemented Interfaces:
IFilterPlugin, IPlugin, IGraphOutputtingFilter<AbstractGraph<V,E,TraceInformation>>, AbstractGraph.IGraphVisitor<V,E>

public class TraceColoringFilter<V extends AbstractVertex<V,E,TraceInformation>,E extends AbstractEdge<V,E,TraceInformation>>
extends AbstractGraphFilter<AbstractGraph<V,E,TraceInformation>,V,E,TraceInformation>
implements AbstractGraph.IGraphVisitor<V,E>

This filter sets the color of nodes and edges which belong to a single trace according to a trace coloring schema defined in a color repository (see TraceColorRepository). Element that belong to multiple traces get the collision color defined in the repository.

Author:
Holger Knoche

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
 
Field Summary
static String COLOR_REPOSITORY_PORT_NAME
          Port name at which the color repository must be connected.
 
Fields inherited from class kieker.tools.traceAnalysis.filter.visualization.AbstractGraphFilter
INPUT_PORT_NAME_GRAPH
 
Fields inherited from class kieker.analysis.plugin.AbstractPlugin
CONFIG_NAME
 
Fields inherited from interface kieker.tools.traceAnalysis.filter.IGraphOutputtingFilter
OUTPUT_PORT_NAME_GRAPH
 
Constructor Summary
TraceColoringFilter(Configuration configuration)
          Creates a new filter using the given configuration.
 
Method Summary
 void visitEdge(E edge)
          Call-back operation that is invoked when an edge is encountered during graph traversal.
 void visitVertex(V vertex)
          Call-back operation that is invoked when a vertex is encountered during graph traversal.
 
Methods inherited from class kieker.tools.traceAnalysis.filter.visualization.AbstractGraphFilter
getCurrentConfiguration, getGraphInputPortName, getGraphOutputPortName, init, processGraph
 
Methods inherited from class kieker.analysis.plugin.filter.AbstractFilterPlugin
terminate
 
Methods inherited from class kieker.analysis.plugin.AbstractPlugin
areAllRepositoryPortsConnected, connect, connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getIncomingPlugins, getName, getPluginDescription, getPluginName, getState, isConnectionAllowed, shutdown, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kieker.analysis.plugin.IPlugin
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
 

Field Detail

COLOR_REPOSITORY_PORT_NAME

public static final String COLOR_REPOSITORY_PORT_NAME
Port name at which the color repository must be connected.

See Also:
Constant Field Values
Constructor Detail

TraceColoringFilter

public TraceColoringFilter(Configuration configuration)
Creates a new filter using the given configuration.

Parameters:
configuration - The configuration to use for this filter
Method Detail

visitVertex

public void visitVertex(V vertex)
Description copied from interface: AbstractGraph.IGraphVisitor
Call-back operation that is invoked when a vertex is encountered during graph traversal.

Specified by:
visitVertex in interface AbstractGraph.IGraphVisitor<V extends AbstractVertex<V,E,TraceInformation>,E extends AbstractEdge<V,E,TraceInformation>>
Parameters:
vertex - The encountered vertex

visitEdge

public void visitEdge(E 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<V extends AbstractVertex<V,E,TraceInformation>,E extends AbstractEdge<V,E,TraceInformation>>
Parameters:
edge - The encountered edge

Kieker 1.6

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