public class ItemTreeBuilder
extends java.lang.Object
Constructor and Description |
---|
ItemTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
private static void |
addTimeSplitNode(TreeNode<IItem> node,
IItem item,
boolean ignoreThread) |
static ITreeNode<IItem> |
buildEncapsulationTree(IItemCollection items,
boolean allowInstants)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
static ITreeNode<IItem> |
buildEncapsulationTree(IItemCollection items,
boolean allowInstants,
boolean ignoreThread)
Builds a tree where events that wrap other events, time wise, are higher up in the hierarchy.
|
private static boolean |
encloses(IItem encloser,
IItem enclosee,
boolean ignoreThread) |
public static ITreeNode<IItem> buildEncapsulationTree(IItemCollection items, boolean allowInstants)
items
- the items to build a tree fromallowInstants
- true
to allow instant events in the resulting treepublic static ITreeNode<IItem> buildEncapsulationTree(IItemCollection items, boolean allowInstants, boolean ignoreThread)
items
- the items to build a tree fromallowInstants
- true
to allow instant events in the resulting treeignoreThread
- true
to make the algorithm not care about event thread, can be used for VM
level events. It's up to the caller to make sure this is safe to do.private static void addTimeSplitNode(TreeNode<IItem> node, IItem item, boolean ignoreThread)