Class DepthGroupDescriptor
java.lang.Object
org.eclipse.tracecompass.incubator.analysis.core.weighted.tree.DepthGroupDescriptor
- All Implemented Interfaces:
IWeightedTreeGroupDescriptor
A group descriptor adapted to
ITree
structure for weighted tree
providers that do not provide group description.- Author:
- Geneviève Bastien
-
Method Summary
Modifier and TypeMethodDescriptionstatic IWeightedTreeGroupDescriptor
createChainForDepth
(int depth) Create a chain of group descriptor with elements up to depth.boolean
getName()
Get the human-readable name for this group descriptor@Nullable IWeightedTreeGroupDescriptor
Get the group descriptor at the next level.int
hashCode()
-
Method Details
-
createChainForDepth
Create a chain of group descriptor with elements up to depth. It will return the root group. The chain of next groups will be up to depth. The first-depth is 0.- Parameters:
depth
- The depth of elements. If there is only one level of elements, the depth should be 0.- Returns:
- The root group descriptor
-
getNextGroup
Description copied from interface:IWeightedTreeGroupDescriptor
Get the group descriptor at the next level.- Specified by:
getNextGroup
in interfaceIWeightedTreeGroupDescriptor
- Returns:
- The next group or
null
if this is a leaf level
-
getName
Description copied from interface:IWeightedTreeGroupDescriptor
Get the human-readable name for this group descriptor- Specified by:
getName
in interfaceIWeightedTreeGroupDescriptor
- Returns:
- The name of this group descriptor
-
hashCode
public int hashCode() -
equals
-