Class AbstractDependencyGraphFilter<T extends ISystemModelElement>

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,
  • 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

      public void addDecorator​(AbstractNodeDecorator decorator)
      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).