Kieker 1.11

kieker.tools.traceAnalysis.filter.visualization.graph
Class AbstractVertex<V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O>

java.lang.Object
  extended by kieker.tools.traceAnalysis.filter.visualization.graph.AbstractGraphElement<O>
      extended by kieker.tools.traceAnalysis.filter.visualization.graph.AbstractVertex<V,E,O>
Type Parameters:
V - The type of the graph's vertices
E - The type of the graph's edges
O - The type of object from which the graph's elements originate
Direct Known Subclasses:
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
Author:
Holger Knoche

Constructor Summary
protected AbstractVertex(O origin, IOriginRetentionPolicy originPolicy)
           
 
Method Summary
 void addDecoration(AbstractVertexDecoration decoration)
          Adds a decoration to this vertex.
<DecorationT extends AbstractVertexDecoration>
DecorationT
getDecoration(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.traceAnalysis.filter.visualization.graph.AbstractGraphElement
addOrigin, getColor, getDescription, getIdentifier, getOrigins, setColor, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractVertex

protected AbstractVertex(O origin,
                         IOriginRetentionPolicy originPolicy)
Method Detail

getOutgoingEdges

public abstract java.util.Collection<E> 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.

Parameters:
type - The type of the desired decoration
Returns:
The given decoration or null if no such type exists

addDecoration

public void addDecoration(AbstractVertexDecoration decoration)
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

public java.util.Collection<AbstractVertexDecoration> getDecorations()
Returns all decorations of this vertex.

Returns:
See above

Kieker 1.11

Copyright 2015 Kieker Project, http://kieker-monitoring.net