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 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
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.