org.maltparser.parser.history
Class HistoryTreeNode
java.lang.Object
org.maltparser.parser.history.HistoryTreeNode
- All Implemented Interfaces:
- HistoryNode
public class HistoryTreeNode
- extends Object
- implements HistoryNode
- Author:
- Johan Hall
HistoryTreeNode
public HistoryTreeNode(HistoryNode previousNode,
GuideUserAction action)
getAction
public GuideUserAction getAction()
- Specified by:
getAction
in interface HistoryNode
setAction
public void setAction(GuideUserAction action)
- Specified by:
setAction
in interface HistoryNode
getPreviousNode
public HistoryNode getPreviousNode()
- Specified by:
getPreviousNode
in interface HistoryNode
setPreviousNode
public void setPreviousNode(HistoryNode node)
- Specified by:
setPreviousNode
in interface HistoryNode
getDepth
public int getDepth()
setDepth
public void setDepth(int depth)
addChild
public void addChild(HistoryTreeNode child)
removeChild
public void removeChild(HistoryTreeNode child)
getChild
public HistoryTreeNode getChild(ActionDecision childDecision)
getPosition
public int getPosition()
- Specified by:
getPosition
in interface HistoryNode
clear
public void clear()
throws MaltChainedException
- Specified by:
clear
in interface HistoryNode
- Throws:
MaltChainedException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.