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 -
Constructor Summary
ConstructorsConstructorDescriptionDependencyGraphNode(int id, T entity, TraceInformation origin, IOriginRetentionPolicy originPolicy) Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIncomingDependency(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.final Tfinal intgetId()Returns an identifier for this graph element (e.g., a label).Returns the outgoing edges of this vertex.booleanvoidSets 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:
-
-
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
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
-
getOutgoingDependencies
-
getAssumedIncomingDependencies
-
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
-
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
-