Class AbstractDependencyGraphFilter<T extends ISystemModelElement>
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.architecture.trace.AbstractTraceAnalysisStage<T>
kieker.analysis.architecture.trace.AbstractTraceProcessingStage<MessageTrace>
kieker.analysis.plugin.trace.AbstractMessageTraceProcessingFilter
kieker.visualization.trace.AbstractGraphProducingFilter<AbstractDependencyGraph<T>>
kieker.visualization.trace.dependency.graph.AbstractDependencyGraphFilter<T>
- Type Parameters:
T
- subtype of a ISystemModelElement
- All Implemented Interfaces:
IGraphProducingFilter<AbstractDependencyGraph<T>>
- Direct Known Subclasses:
ComponentDependencyGraphAllocationFilter
,ComponentDependencyGraphAssemblyFilter
,ContainerDependencyGraphFilter
,OperationDependencyGraphAllocationFilter
,OperationDependencyGraphAssemblyFilter
public abstract class AbstractDependencyGraphFilter<T extends ISystemModelElement> extends AbstractGraphProducingFilter<AbstractDependencyGraph<T>>
Refactored copy from LogAnalysis-legacy tool.
- Since:
- 1.1
- Author:
- Andre van Hoorn, Lena Stoever, Matthias Rohr,
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractDependencyGraphFilter(SystemModelRepository repository, java.util.concurrent.TimeUnit timeUnit, AbstractDependencyGraph<T> graph)
Creates a new abstract dependency graph filter using the given data. -
Method Summary
Modifier and Type Method Description void
addDecorator(AbstractNodeDecorator decorator)
Adds a node decorator to this graph.protected void
invokeDecorators(AbstractMessage message, DependencyGraphNode<?> sourceNode, DependencyGraphNode<?> targetNode)
This is a helper method to invoke all decorators and send them a message.protected boolean
isDependencyAssumed(DependencyGraphNode<?> source, DependencyGraphNode<?> target)
Determines whether the given edge is assumed or not.Methods inherited from class kieker.visualization.trace.AbstractGraphProducingFilter
getGraph, getOriginRetentionPolicy, getOutputPort, handleOrigin, requestOriginRetentionPolicy
Methods inherited from class kieker.analysis.plugin.trace.AbstractMessageTraceProcessingFilter
execute
Methods inherited from class kieker.analysis.architecture.trace.AbstractTraceProcessingStage
getErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, printStatusMessage, reportError, reportSuccess
Methods inherited from class kieker.analysis.architecture.trace.AbstractTraceAnalysisStage
createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemModelRepository, printDebugLogMessage, printErrorLogMessage
Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPort
Methods 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
-
AbstractDependencyGraphFilter
public AbstractDependencyGraphFilter(SystemModelRepository repository, java.util.concurrent.TimeUnit timeUnit, AbstractDependencyGraph<T> graph)Creates a new abstract dependency graph filter using the given data.- Parameters:
configuration
- The configuration to use for this filter.projectContext
- The project context to use for this filter.graph
- The graph to produce / extend
-
-
Method Details
-
addDecorator
Adds a node decorator to this graph.- Parameters:
decorator
- The decorator to add
-
invokeDecorators
protected void invokeDecorators(AbstractMessage message, DependencyGraphNode<?> sourceNode, DependencyGraphNode<?> targetNode)This is a helper method to invoke all decorators and send them a message.- Parameters:
message
- The message to send the decorators.sourceNode
- The source node.targetNode
- The target node.
-
isDependencyAssumed
protected boolean isDependencyAssumed(DependencyGraphNode<?> source, DependencyGraphNode<?> target)Determines whether the given edge is assumed or not.- Parameters:
source
- The source of the edge.target
- The target of the edge.- Returns:
- true iff the edge is assumed (which means in fact that either the source or the target or both are assumed).
-