Class DependencyGraphNode<T extends ISystemModelElement>
java.lang.Object
kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraphElement<O>
kieker.tools.trace.analysis.filter.visualization.graph.AbstractVertex<V,E,O>
kieker.tools.trace.analysis.filter.visualization.graph.AbstractPayloadedVertex<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>,TraceInformation,T>
kieker.visualization.trace.dependency.graph.DependencyGraphNode<T>
- Type Parameters:
T- The type of the entity to be stored in this node.
public class DependencyGraphNode<T extends ISystemModelElement> extends AbstractPayloadedVertex<DependencyGraphNode<T>,WeightedBidirectionalDependencyGraphEdge<T>,TraceInformation,T>
This class represents a single node within a dependency graph.
- Since:
- 1.1
- Author:
- Andre van Hoorn
-
Field Summary
Fields Modifier and Type Field Description static intROOT_NODE_ID -
Constructor Summary
Constructors Constructor Description DependencyGraphNode(int id, T entity, TraceInformation origin, IOriginRetentionPolicy originPolicy)Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description voidaddIncomingDependency(DependencyGraphNode<T> source, boolean isAssumed, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an incoming dependency to this node.voidaddIncomingDependency(DependencyGraphNode<T> source, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an incoming dependency to this node.voidaddOutgoingDependency(DependencyGraphNode<T> destination, boolean isAssumed, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an outgoing dependency to this node.voidaddOutgoingDependency(DependencyGraphNode<T> destination, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an outgoing dependency to this node.java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>>getAssumedIncomingDependencies()java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>>getAssumedOutgoingDependencies()TgetEntity()java.lang.StringgetFormattedDecorations()intgetId()java.lang.StringgetIdentifier()Returns an identifier for this graph element (e.g., a label).java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>>getIncomingDependencies()java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>>getOutgoingDependencies()java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>>getOutgoingEdges()Returns the outgoing edges of this vertex.booleanisAssumed()voidsetAssumed()Sets the assumed flag of this node totrue.Methods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractPayloadedVertex
getPayloadMethods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractVertex
addDecoration, getDecoration, getDecorationsMethods inherited from class kieker.tools.trace.analysis.filter.visualization.graph.AbstractGraphElement
addOrigin, getColor, getDescription, getOrigins, setColor, setDescription
-
Field Details
-
ROOT_NODE_ID
public static final int ROOT_NODE_ID- See Also:
- Constant Field Values
-
-
Constructor Details
-
DependencyGraphNode
public DependencyGraphNode(int id, T entity, TraceInformation origin, IOriginRetentionPolicy originPolicy)Creates a new instance of this class using the given parameters.- Parameters:
id- The ID of this node.entity- The entity which will be the payload of this node.origin- The trace information which will be additional meta data for this node.originPolicy- The origin policy.
-
-
Method Details
-
getEntity
-
getIdentifier
public java.lang.String getIdentifier()Description copied from class:AbstractGraphElementReturns an identifier for this graph element (e.g., a label).- Specified by:
getIdentifierin classAbstractGraphElement<TraceInformation>- Returns:
- An identifier or
nullif no identifier can be determined
-
getIncomingDependencies
public final java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getIncomingDependencies() -
getOutgoingDependencies
public final java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getOutgoingDependencies() -
getAssumedIncomingDependencies
public java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getAssumedIncomingDependencies() -
getAssumedOutgoingDependencies
public java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getAssumedOutgoingDependencies() -
setAssumed
public void setAssumed()Sets the assumed flag of this node totrue. -
isAssumed
public boolean isAssumed() -
addOutgoingDependency
public void addOutgoingDependency(DependencyGraphNode<T> destination, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an outgoing dependency to this node. The dependency will be marked as not assumed.- Parameters:
destination- The destination of the dependency.origin- The origin of the destination.originPolicy- The origin policy of the destination.
-
addOutgoingDependency
public void addOutgoingDependency(DependencyGraphNode<T> destination, boolean isAssumed, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an outgoing dependency to this node.- Parameters:
destination- The destination of the dependency.isAssumed- Whether the dependency is assumed or not.origin- The origin of the destination.originPolicy- The origin policy of the destination.
-
addIncomingDependency
public void addIncomingDependency(DependencyGraphNode<T> source, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an incoming dependency to this node. The dependency will be marked as not assumed.- Parameters:
source- The source of the dependency.origin- The origin of the destination.originPolicy- The origin policy of the destination.
-
addIncomingDependency
public void addIncomingDependency(DependencyGraphNode<T> source, boolean isAssumed, TraceInformation origin, IOriginRetentionPolicy originPolicy)Adds an incoming dependency to this node.- Parameters:
source- The source of the dependency.isAssumed- Whether the dependency is assumed or not.origin- The origin of the destination.originPolicy- The origin policy of the destination.
-
getId
public final int getId() -
getFormattedDecorations
public java.lang.String getFormattedDecorations() -
getOutgoingEdges
Description copied from class:AbstractVertexReturns the outgoing edges of this vertex.- Specified by:
getOutgoingEdgesin classAbstractVertex<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>,TraceInformation>- Returns:
- See above
-