Class AbstractDependencyGraph<T extends ISystemModelElement>
java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraph<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>,TraceInformation>
kieker.visualization.trace.dependency.graph.AbstractDependencyGraph<T>
- Type Parameters:
T- The type of the nodes' payload
- Direct Known Subclasses:
ComponentAllocationDependencyGraph,ComponentAssemblyDependencyGraph,ContainerDependencyGraph,OperationAllocationDependencyGraph,OperationAssemblyDependencyGraph
public abstract class AbstractDependencyGraph<T extends ISystemModelElement>
extends AbstractGraph<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>,TraceInformation>
Abstract superclass for dependency graphs.
- Since:
- 1.6
- Author:
- Andre van Hoorn, Lena Stöver
-
Nested Class Summary
Nested classes/interfaces inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraph
AbstractGraph.IGraphVisitor<V,E> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDependencyGraph(T rootEntity) Creates a new dependency graph with the given root entity. -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddNode(int i, DependencyGraphNode<T> node) Adds a node to this graph.protected final DependencyGraphNode<T>getNode(int i) Delivers the node with the given key.getNodes()Returns all nodes contained in this graph.final DependencyGraphNode<T>Returns this graph's root node.Returns the vertices contained in this graph.intsize()Returns the number of nodes contained in this graph.Methods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraph
traverse, traverseWithVerticesFirst
-
Constructor Details
-
AbstractDependencyGraph
Creates a new dependency graph with the given root entity.- Parameters:
rootEntity- The entity from which the root node originates
-
-
Method Details
-
getNode
Delivers the node with the given key.- Parameters:
i- The key to search for.- Returns:
- The corresponding node to the given key if it exists, null otherwise.
-
addNode
Adds a node to this graph.- Parameters:
i- The key of the node.node- The node itself.
-
getRootNode
Returns this graph's root node.- Returns:
- See above
-
getNodes
Returns all nodes contained in this graph.- Returns:
- See above
-
size
public int size()Returns the number of nodes contained in this graph.- Returns:
- See above
-
getVertices
Description copied from class:AbstractGraphReturns the vertices contained in this graph.- Specified by:
getVerticesin classAbstractGraph<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>, TraceInformation> - Returns:
- See above
-