T
- The type of the nodes' payloadpublic abstract class AbstractDependencyGraph<T extends ISystemModelElement> extends AbstractGraph<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>,TraceInformation>
AbstractGraph.IGraphVisitor<V,E>
Constructor and Description |
---|
AbstractDependencyGraph(T rootEntity)
Creates a new dependency graph with the given root entity.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNode(int i,
DependencyGraphNode<T> node)
Adds a node to this graph.
|
protected DependencyGraphNode<T> |
getNode(int i)
Delivers the node with the given key.
|
java.util.Collection<DependencyGraphNode<T>> |
getNodes()
Returns all nodes contained in this graph.
|
DependencyGraphNode<T> |
getRootNode()
Returns this graph's root node.
|
java.util.Collection<DependencyGraphNode<T>> |
getVertices()
Returns the vertices contained in this graph.
|
int |
size()
Returns the number of nodes contained in this graph.
|
traverse, traverseWithVerticesFirst
public AbstractDependencyGraph(T rootEntity)
rootEntity
- The entity from which the root node originatesprotected final DependencyGraphNode<T> getNode(int i)
i
- The key to search for.protected final void addNode(int i, DependencyGraphNode<T> node)
i
- The key of the node.node
- The node itself.public final DependencyGraphNode<T> getRootNode()
public java.util.Collection<DependencyGraphNode<T>> getNodes()
public int size()
public java.util.Collection<DependencyGraphNode<T>> getVertices()
AbstractGraph
getVertices
in class AbstractGraph<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>,TraceInformation>
Copyright 2017 Kieker Project, http://kieker-monitoring.net