public class HistoryTreeNode extends 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(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) |
String |
toString() |
public HistoryTreeNode(HistoryNode previousNode, GuideUserAction action)
public GuideUserAction getAction()
getAction
in interface HistoryNode
public void setAction(GuideUserAction action)
setAction
in interface HistoryNode
public HistoryNode getPreviousNode()
getPreviousNode
in interface HistoryNode
public void setPreviousNode(HistoryNode node)
setPreviousNode
in interface HistoryNode
public 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 HistoryNode
public void clear() throws MaltChainedException
clear
in interface HistoryNode
MaltChainedException
Copyright 2007-2014 Johan Hall, Jens Nilsson and Joakim Nivre.