Modifier and Type | Field and Description |
---|---|
private java.util.List<ITreeNode<T>> |
children |
private IQuantity |
endTime |
private boolean |
hasDuration |
private T |
item |
private TreeNode<T> |
parent |
private IQuantity |
startTime |
private IMCThread |
thread |
Constructor and Description |
---|
TreeNode(T item)
Create a new node.
|
TreeNode(T item,
boolean hasDuration,
IQuantity startTime,
IQuantity endTime,
IMCThread thread) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ITreeVisitor<T> visitor) |
void |
addChild(TreeNode<T> node)
Add a child node.
|
void |
detach()
Detach this node from its parent.
|
java.util.List<ITreeNode<T>> |
getChildren() |
IQuantity |
getEndTime() |
ITreeNode<T> |
getParent() |
IQuantity |
getStartTime() |
IMCThread |
getThread() |
T |
getValue() |
boolean |
hasDuration() |
(package private) void |
removeChild(TreeNode<T> node)
Remove a child node.
|
java.lang.String |
toString() |
private boolean hasDuration
private IQuantity startTime
private IQuantity endTime
private IMCThread thread
private T item
public TreeNode(T item)
item
- node payloadpublic java.util.List<ITreeNode<T>> getChildren()
getChildren
in interface ITreeNode<T>
public T getValue()
public boolean hasDuration()
public IQuantity getStartTime()
public IQuantity getEndTime()
public IMCThread getThread()
public void accept(ITreeVisitor<T> visitor)
public void addChild(TreeNode<T> node)
node
- child node to addvoid removeChild(TreeNode<T> node)
node
- child node to removepublic java.lang.String toString()
toString
in class java.lang.Object
public void detach()