public class HistoryTreeNode extends java.lang.Object implements HistoryNode
| Constructor and Description |
|---|
HistoryTreeNode(HistoryNode previousNode,
GuideUserAction action) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(HistoryTreeNode child) |
void |
clear() |
boolean |
equals(java.lang.Object obj) |
GuideUserAction |
getAction() |
HistoryTreeNode |
getChild(ActionDecision childDecision) |
int |
getDepth() |
int |
getPosition() |
HistoryNode |
getPreviousNode() |
int |
hashCode() |
void |
removeChild(HistoryTreeNode child) |
void |
setAction(GuideUserAction action) |
void |
setDepth(int depth) |
void |
setPreviousNode(HistoryNode node) |
java.lang.String |
toString() |
public HistoryTreeNode(HistoryNode previousNode, GuideUserAction action)
public GuideUserAction getAction()
getAction in interface HistoryNodepublic void setAction(GuideUserAction action)
setAction in interface HistoryNodepublic HistoryNode getPreviousNode()
getPreviousNode in interface HistoryNodepublic void setPreviousNode(HistoryNode node)
setPreviousNode in interface HistoryNodepublic int getDepth()
public void setDepth(int depth)
public void addChild(HistoryTreeNode child)
public void removeChild(HistoryTreeNode child)
public HistoryTreeNode getChild(ActionDecision childDecision)
public int getPosition()
getPosition in interface HistoryNodepublic void clear() throws MaltChainedException
clear in interface HistoryNodeMaltChainedExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.