Class AbstractCallTreeNode<T>
java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraphElement<O>
kieker.tools.trace.analysis.filter.visualization.graph.AbstractVertex<AbstractCallTreeNode<T>,WeightedDirectedCallTreeEdge<T>,MessageTrace>
kieker.visualization.trace.call.tree.AbstractCallTreeNode<T>
- Type Parameters:
T
- The type of the entity to be stored in the node.
- Direct Known Subclasses:
AbstractAggregatedCallTreeNode
,TraceCallTreeNode
public abstract class AbstractCallTreeNode<T> extends AbstractVertex<AbstractCallTreeNode<T>,WeightedDirectedCallTreeEdge<T>,MessageTrace>
This is an abstract base for a single node within a call tree.
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Constructor Summary
Constructors Constructor Description AbstractCallTreeNode(int id, T entity, boolean rootNode, MessageTrace origin, IOriginRetentionPolicy originPolicy)
This constructor uses the given parameters to initialize the fields of this class. -
Method Summary
Modifier and Type Method Description protected void
appendChildEdge(WeightedDirectedCallTreeEdge<T> destination)
Append edge to *sorted* list of children.java.util.Collection<WeightedDirectedCallTreeEdge<T>>
getChildEdges()
Delivers the child edges.T
getEntity()
Delivers the stored entity.int
getId()
java.util.Collection<WeightedDirectedCallTreeEdge<T>>
getOutgoingEdges()
Returns the outgoing edges of this vertex.boolean
isRootNode()
Tells whether the current node is a root node.abstract AbstractCallTreeNode<T>
newCall(T destination, MessageTrace origin, IOriginRetentionPolicy originPolicy)
java.lang.String
toString()
Methods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractVertex
addDecoration, getDecoration, getDecorations
Methods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraphElement
addOrigin, getColor, getDescription, getIdentifier, getOrigins, setColor, setDescription
-
Constructor Details
-
AbstractCallTreeNode
public AbstractCallTreeNode(int id, T entity, boolean rootNode, MessageTrace origin, IOriginRetentionPolicy originPolicy)This constructor uses the given parameters to initialize the fields of this class.- Parameters:
id
- The identifier of this node.entity
- The content of this node.rootNode
- Determines whether this node is the root node or not.origin
- The meta data of this node.originPolicy
- The origin policy.
-
-
Method Details
-
getEntity
Delivers the stored entity.- Returns:
- The content of this node.
-
getChildEdges
Delivers the child edges.- Returns:
- A collection containing the child edges.
-
appendChildEdge
Append edge to *sorted* list of children.- Parameters:
destination
- The edge to add to the list of children edges.
-
newCall
public abstract AbstractCallTreeNode<T> newCall(T destination, MessageTrace origin, IOriginRetentionPolicy originPolicy) -
getId
public final int getId() -
isRootNode
public final boolean isRootNode()Tells whether the current node is a root node.- Returns:
- true if and only if the current node has to be interpreted as a root node.
-
getOutgoingEdges
Description copied from class:AbstractVertex
Returns the outgoing edges of this vertex.- Specified by:
getOutgoingEdges
in classAbstractVertex<AbstractCallTreeNode<T>,WeightedDirectedCallTreeEdge<T>,MessageTrace>
- Returns:
- See above
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-