java.lang.Object
org.eclipse.tracecompass.incubator.analysis.core.weighted.tree.DepthGroupDescriptor
All Implemented Interfaces:
IWeightedTreeGroupDescriptor

public class DepthGroupDescriptor extends Object implements IWeightedTreeGroupDescriptor
A group descriptor adapted to ITree structure for weighted tree providers that do not provide group description.
Author:
Geneviève Bastien
  • Method Details

    • createChainForDepth

      public static IWeightedTreeGroupDescriptor createChainForDepth(int depth)
      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

      public @Nullable IWeightedTreeGroupDescriptor getNextGroup()
      Description copied from interface: IWeightedTreeGroupDescriptor
      Get the group descriptor at the next level.
      Specified by:
      getNextGroup in interface IWeightedTreeGroupDescriptor
      Returns:
      The next group or null if this is a leaf level
    • getName

      public String getName()
      Description copied from interface: IWeightedTreeGroupDescriptor
      Get the human-readable name for this group descriptor
      Specified by:
      getName in interface IWeightedTreeGroupDescriptor
      Returns:
      The name of this group descriptor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object