Interface IWeightedTreeSet<N,E,T extends WeightedTree<N>>
- Type Parameters:
N
- The type of objects represented by each node in the treeE
- The type of elements used to group the trees. If this type extendsITree
, then the elements and their associated weighted trees will be grouped in a hierarchical styleT
- The type of the tree provided
- All Known Implementing Classes:
CallGraph
,DifferentialWeightedTreeSet
,WeightedTreeSet
public interface IWeightedTreeSet<@NonNull N,E,@NonNull T extends WeightedTree<@NonNull N>>
A structure that keeps elements and their weighted trees together for a given
time range or grouping. It is the class that contains the actual data that
the
IWeightedTreeProvider
provides.
The tree set contains the data, but a IWeightedTreeProvider
object
is necessary to describe it, its format, their names, etc.- Author:
- Geneviève Bastien
-
Method Summary
Modifier and TypeMethodDescriptionGet the elements under which are the weighted trees.Return a list of additional data sets' titles.getTreesFor
(Object element) Get the weighted trees for a given elementdefault Collection<T>
getTreesForNamed
(String... elementNames) Get the trees for an element with the given string representation.
-
Method Details
-
getElements
Collection<E> getElements()Get the elements under which are the weighted trees. It can be a single constant element if this treeset does not have the concept of grouping the trees.- Returns:
- The elements used to group the trees
-
getTreesFor
Get the weighted trees for a given element- Parameters:
element
- The element for which to get the trees- Returns:
- A collection of weighted trees for the requested element
-
getExtraDataSets
Return a list of additional data sets' titles. These sets will be available by callingWeightedTree.getExtraDataTrees(int)
on the trees, where the index in the list is the parameter that the children set should match- Returns:
- The title of each child set
-
getTreesForNamed
Get the trees for an element with the given string representation. If many names are entered, then it is assumed the elements should beITree
s and the hierarchy is followed- Parameters:
elementNames
- The name(s) of the element to get the trees for. If multiple names are given, then the elements are expected to have a hierarchical relation- Returns:
- The trees for the given element. If no element with that name is found, an empty collection will be returned
-