Class BuildTypeDependencyGraphImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.dependency.BuildTypeDependencyGraphImpl
-
- All Implemented Interfaces:
BuildTypeDependencyGraph
,DependencyGraph<SBuildType>
public class BuildTypeDependencyGraphImpl extends Object implements BuildTypeDependencyGraph
-
-
Constructor Summary
Constructors Constructor Description BuildTypeDependencyGraphImpl(BuildTypeEx topBuildType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(SBuildType node)
Returns true if node is part of this graph.Collection<SBuildType>
getNodes()
Map<String,SBuildType>
getNodesMap()
int
getNumberOfNodes()
Returns number of nodes in this graph.SBuildType
getTop()
Returns top node of the graph.boolean
inaccessibleNodesExist()
void
traverseBottomUp(ItemProcessor<SBuildType> itemProcessor)
Traverse dependency graph from bottom to topvoid
traverseTopDown(ItemProcessor<SBuildType> itemProcessor)
Traverse dependency graph from top to bottom
-
-
-
Constructor Detail
-
BuildTypeDependencyGraphImpl
public BuildTypeDependencyGraphImpl(@NotNull BuildTypeEx topBuildType)
-
-
Method Detail
-
traverseBottomUp
public void traverseBottomUp(@NotNull ItemProcessor<SBuildType> itemProcessor)
Description copied from interface:DependencyGraph
Traverse dependency graph from bottom to top- Specified by:
traverseBottomUp
in interfaceDependencyGraph<SBuildType>
- Parameters:
itemProcessor
- item processor
-
traverseTopDown
public void traverseTopDown(@NotNull ItemProcessor<SBuildType> itemProcessor)
Description copied from interface:DependencyGraph
Traverse dependency graph from top to bottom- Specified by:
traverseTopDown
in interfaceDependencyGraph<SBuildType>
- Parameters:
itemProcessor
- item processor
-
getNumberOfNodes
public int getNumberOfNodes()
Description copied from interface:DependencyGraph
Returns number of nodes in this graph.- Specified by:
getNumberOfNodes
in interfaceDependencyGraph<SBuildType>
- Returns:
- number of nodes in this graph.
-
getTop
@NotNull public SBuildType getTop()
Description copied from interface:DependencyGraph
Returns top node of the graph.- Specified by:
getTop
in interfaceDependencyGraph<SBuildType>
- Returns:
- the graph top node.
-
contains
public boolean contains(@NotNull SBuildType node)
Description copied from interface:DependencyGraph
Returns true if node is part of this graph.- Specified by:
contains
in interfaceDependencyGraph<SBuildType>
- Parameters:
node
- graph node- Returns:
- see above
-
getNodes
@NotNull public Collection<SBuildType> getNodes()
- Specified by:
getNodes
in interfaceDependencyGraph<SBuildType>
- Returns:
- all of the graph nodes, including the top node itself
-
getNodesMap
@NotNull public Map<String,SBuildType> getNodesMap()
- Specified by:
getNodesMap
in interfaceDependencyGraph<SBuildType>
- Returns:
- map of all of the graph nodes, where key is id of build configuration
-
inaccessibleNodesExist
public boolean inaccessibleNodesExist()
- Specified by:
inaccessibleNodesExist
in interfaceBuildTypeDependencyGraph
- Returns:
- true if inaccessible nodes exist
-
-