Class TopologicalSorterNode<T extends ITopologicallySortable>
java.lang.Object
org.eclipse.dirigible.commons.api.topology.TopologicalSorterNode<T>
- Type Parameters:
T- the generic type
public class TopologicalSorterNode<T extends ITopologicallySortable> extends Object
The Class TopologicalSorterNode.
-
Constructor Summary
Constructors Constructor Description TopologicalSorterNode(T data, Map<String,TopologicalSorterNode<T>> nodes)Instantiates a new topological sorter node. -
Method Summary
Modifier and Type Method Description TgetData()Gets the data.List<TopologicalSorterNode<T>>getDependencies()Gets the dependencies.booleanisVisited()Checks if is visited.voidsetDependencies(List<TopologicalSorterNode<T>> dependencies)Sets the dependencies.voidsetVisited(boolean visited)Sets the visited.StringtoString()To string.
-
Constructor Details
-
TopologicalSorterNode
Instantiates a new topological sorter node.- Parameters:
data- the datanodes- the nodes
-
-
Method Details
-
getData
Gets the data.- Returns:
- the data
-
isVisited
public boolean isVisited()Checks if is visited.- Returns:
- true, if is visited
-
setVisited
public void setVisited(boolean visited)Sets the visited.- Parameters:
visited- the new visited
-
getDependencies
Gets the dependencies.- Returns:
- the dependencies
-
setDependencies
Sets the dependencies.- Parameters:
dependencies- the new dependencies
-
toString
To string.
-