Class AbstractVertex<V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O>
java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraphElement<O>
kieker.tools.trace.analysis.filter.visualization.graph.AbstractVertex<V,E,O>
- Type Parameters:
V- The type of the graph's verticesE- The type of the graph's edgesO- The type of object from which the graph's elements originate
- Direct Known Subclasses:
AbstractCallTreeNode,AbstractCallTreeNode,AbstractPayloadedVertex
public abstract class AbstractVertex<V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O> extends AbstractGraphElement<O>
Generic superclass for all vertices in the visualization package.
- Since:
- 1.6
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractVertex(O origin, IOriginRetentionPolicy originPolicy) -
Method Summary
Modifier and Type Method Description voidaddDecoration(AbstractVertexDecoration decoration)Adds a decoration to this vertex.<DecorationT extends AbstractVertexDecoration>
DecorationTgetDecoration(java.lang.Class<DecorationT> type)Returns the decoration of this vertex of the given type.java.util.Collection<AbstractVertexDecoration>getDecorations()Returns all decorations of this vertex.abstract java.util.Collection<E>getOutgoingEdges()Returns the outgoing edges of this vertex.Methods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraphElement
addOrigin, getColor, getDescription, getIdentifier, getOrigins, setColor, setDescription
-
Constructor Details
-
Method Details
-
getOutgoingEdges
Returns the outgoing edges of this vertex.- Returns:
- See above
-
getDecoration
public <DecorationT extends AbstractVertexDecoration> DecorationT getDecoration(java.lang.Class<DecorationT> type)Returns the decoration of this vertex of the given type.- Type Parameters:
DecorationT- decoration type.- Parameters:
type- The type of the desired decoration- Returns:
- The given decoration or
nullif no such type exists
-
addDecoration
Adds a decoration to this vertex. Note that the given decoration may replace an existing decoration of the same type.- Parameters:
decoration- The decoration to add
-
getDecorations
Returns all decorations of this vertex.- Returns:
- See above
-