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>
Modifier and Type | Field and Description |
---|---|
static int |
ROOT_NODE_ID |
Constructor and Description |
---|
DependencyGraphNode(int id,
T entity,
TraceInformation origin,
IOriginRetentionPolicy originPolicy)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addIncomingDependency(DependencyGraphNode<T> source,
boolean isAssumed,
TraceInformation origin,
IOriginRetentionPolicy originPolicy)
Adds an incoming dependency to this node.
|
void |
addIncomingDependency(DependencyGraphNode<T> source,
TraceInformation origin,
IOriginRetentionPolicy originPolicy)
Adds an incoming dependency to this node.
|
void |
addOutgoingDependency(DependencyGraphNode<T> destination,
boolean isAssumed,
TraceInformation origin,
IOriginRetentionPolicy originPolicy)
Adds an outgoing dependency to this node.
|
void |
addOutgoingDependency(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() |
T |
getEntity() |
java.lang.String |
getFormattedDecorations() |
int |
getId() |
java.lang.String |
getIdentifier()
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.
|
boolean |
isAssumed() |
void |
setAssumed()
Sets the assumed flag of this node to
true . |
getPayload
addDecoration, getDecoration, getDecorations
addOrigin, getColor, getDescription, getOrigins, setColor, setDescription
public static final int ROOT_NODE_ID
public DependencyGraphNode(int id, T entity, TraceInformation origin, IOriginRetentionPolicy originPolicy)
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.public final T getEntity()
public java.lang.String getIdentifier()
AbstractGraphElement
getIdentifier
in class AbstractGraphElement<TraceInformation>
null
if no identifier can be determinedpublic final java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getIncomingDependencies()
public final java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getOutgoingDependencies()
public java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getAssumedIncomingDependencies()
public java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getAssumedOutgoingDependencies()
public void setAssumed()
true
.public boolean isAssumed()
public void addOutgoingDependency(DependencyGraphNode<T> destination, TraceInformation origin, IOriginRetentionPolicy originPolicy)
destination
- The destination of the dependency.origin
- The origin of the destination.originPolicy
- The origin policy of the destination.public void addOutgoingDependency(DependencyGraphNode<T> destination, boolean isAssumed, TraceInformation origin, IOriginRetentionPolicy originPolicy)
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.public void addIncomingDependency(DependencyGraphNode<T> source, TraceInformation origin, IOriginRetentionPolicy originPolicy)
source
- The source of the dependency.origin
- The origin of the destination.originPolicy
- The origin policy of the destination.public void addIncomingDependency(DependencyGraphNode<T> source, boolean isAssumed, TraceInformation origin, IOriginRetentionPolicy originPolicy)
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.public final int getId()
public java.lang.String getFormattedDecorations()
public java.util.Collection<WeightedBidirectionalDependencyGraphEdge<T>> getOutgoingEdges()
AbstractVertex
getOutgoingEdges
in class AbstractVertex<DependencyGraphNode<T extends ISystemModelElement>,WeightedBidirectionalDependencyGraphEdge<T extends ISystemModelElement>,TraceInformation>
Copyright 2017 Kieker Project, http://kieker-monitoring.net