Package kieker.visualization.trace
Class TraceColoringFilter<V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>>
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<G>
kieker.visualization.trace.AbstractGraphFilter<AbstractGraph<V,E,kieker.model.system.model.TraceInformation>,V,E,kieker.model.system.model.TraceInformation>
kieker.visualization.trace.TraceColoringFilter<V,E>
- Type Parameters:
V- The type of the graph's verticesE- The type of the graph's edges
- All Implemented Interfaces:
AbstractGraph.IGraphVisitor<V,E>
public class TraceColoringFilter<V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>> extends AbstractGraphFilter<AbstractGraph<V,E,kieker.model.system.model.TraceInformation>,V,E,kieker.model.system.model.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.- Since:
- 1.6
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TraceColoringFilter(TraceColorRepository colorRepository)Creates a new filter using the given configuration. -
Method Summary
Modifier and Type Method Description protected IOriginRetentionPolicygetDesiredOriginRetentionPolicy()protected AbstractGraph<V,E,kieker.model.system.model.TraceInformation>performConcreteGraphProcessing(AbstractGraph<V,E,kieker.model.system.model.TraceInformation> graph)This method encapsulates the concrete graph processing performed by the concrete filters.voidvisitEdge(E edge)Call-back operation that is invoked when an edge is encountered during graph traversal.voidvisitVertex(V vertex)Call-back operation that is invoked when a vertex is encountered during graph traversal.Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPortMethods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Constructor Details
-
TraceColoringFilter
Creates a new filter using the given configuration.- Parameters:
colorRepository- the color repository with data for coloring traces
-
-
Method Details
-
visitVertex
Call-back operation that is invoked when a vertex is encountered during graph traversal.- Specified by:
visitVertexin interfaceAbstractGraph.IGraphVisitor<V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>>- Parameters:
vertex- The encountered vertex
-
visitEdge
Call-back operation that is invoked when an edge is encountered during graph traversal.- Specified by:
visitEdgein interfaceAbstractGraph.IGraphVisitor<V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>>- Parameters:
edge- The encountered edge
-
performConcreteGraphProcessing
protected AbstractGraph<V,E,kieker.model.system.model.TraceInformation> performConcreteGraphProcessing(AbstractGraph<V,E,kieker.model.system.model.TraceInformation> graph)This method encapsulates the concrete graph processing performed by the concrete filters.- Specified by:
performConcreteGraphProcessingin classAbstractGraphFilter<AbstractGraph<V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>,kieker.model.system.model.TraceInformation>,V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>,kieker.model.system.model.TraceInformation>- Parameters:
graph- The graph to process- Returns:
- The processed graph, which may be the same as the input graph
-
getDesiredOriginRetentionPolicy
protected IOriginRetentionPolicy getDesiredOriginRetentionPolicy() throws kieker.analysis.exception.AnalysisConfigurationException- Specified by:
getDesiredOriginRetentionPolicyin classAbstractGraphFilter<AbstractGraph<V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>,kieker.model.system.model.TraceInformation>,V extends AbstractVertex<V,E,kieker.model.system.model.TraceInformation>,E extends AbstractEdge<V,E,kieker.model.system.model.TraceInformation>,kieker.model.system.model.TraceInformation>- Throws:
kieker.analysis.exception.AnalysisConfigurationException
-