Class DynamicGraph<T>
java.lang.Object
org.testng.internal.DynamicGraph<T>
- All Implemented Interfaces:
IDynamicGraph<T>
Representation of the graph of methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface IDynamicGraph
IDynamicGraph.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidAdd an edge between two nodes.booleanAdd a node to the graph.getDependenciesFor(T node) intintgetUpstreamDependenciesFor(T node) voidsetStatus(Collection<T> nodes, IDynamicGraph.Status status) Set the status for a set of nodes.voidsetStatus(T node, IDynamicGraph.Status status) Set the status for a node.voidsetVisualisers(Set<IExecutionVisualiser> listener) toDot()toString()
-
Constructor Details
-
DynamicGraph
public DynamicGraph()
-
-
Method Details
-
addNode
Add a node to the graph.- Specified by:
addNodein interfaceIDynamicGraph<T>
-
addEdge
- Specified by:
addEdgein interfaceIDynamicGraph<T>- Parameters:
weight- - Represents one ofTestRunner.PriorityWeightordinals indicating the weightage of a particular node in the graphfrom- - Represents the edge that depends on another edge.to- - Represents the edge on which another edge depends upon.
-
setVisualisers
- Specified by:
setVisualisersin interfaceIDynamicGraph<T>
-
addEdges
-
getFreeNodes
- Specified by:
getFreeNodesin interfaceIDynamicGraph<T>- Returns:
- a set of all the nodes that don't depend on any other nodes.
-
getUpstreamDependenciesFor
- Specified by:
getUpstreamDependenciesForin interfaceIDynamicGraph<T>
-
getDependenciesFor
- Specified by:
getDependenciesForin interfaceIDynamicGraph<T>
-
setStatus
Set the status for a set of nodes.- Specified by:
setStatusin interfaceIDynamicGraph<T>
-
setStatus
Set the status for a node.- Specified by:
setStatusin interfaceIDynamicGraph<T>
-
getNodeCount
public int getNodeCount()- Specified by:
getNodeCountin interfaceIDynamicGraph<T>- Returns:
- the number of nodes in this graph.
-
getNodeCountWithStatus
- Specified by:
getNodeCountWithStatusin interfaceIDynamicGraph<T>
-
getNodesWithStatus
- Specified by:
getNodesWithStatusin interfaceIDynamicGraph<T>
-
toString
-
toDot
- Specified by:
toDotin interfaceIDynamicGraph<T>- Returns:
- a .dot file (GraphViz) version of this graph.
-