MaltParser 1.0.2

org.maltparser.core.graph.arc
Class SingleHeadArc

java.lang.Object
  extended by org.maltparser.core.graph.arc.SingleHeadArc
All Implemented Interfaces:
HeadArcs

public class SingleHeadArc
extends Object
implements HeadArcs

Since:
1.0
Author:
Johan Hall

Field Summary
protected  Node head
           
protected  ArcLabels labelCodes
           
 
Constructor Summary
SingleHeadArc()
           
 
Method Summary
 void addHead(Node head, ArcLabels arcLabelCodes)
           
 void clear()
           
 ArcLabels getArcLabels(int headindex)
           
 ArcLabels getFirstHeadArcLabels()
           
 Integer getFirstHeadLabelCode(SymbolTable table)
           
 Node getHead()
           
 Node getHead(int index)
           
 SortedSet<Node> getHeads()
           
 Integer getLabelCode(int headindex, SymbolTable table)
           
 Integer getLabelCode(Node head, SymbolTable table)
           
 boolean hasHead()
           
 boolean hasLabelCodes()
           
 boolean isSingleHeaded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

labelCodes

protected ArcLabels labelCodes

head

protected Node head
Constructor Detail

SingleHeadArc

public SingleHeadArc()
Method Detail

clear

public void clear()
Specified by:
clear in interface HeadArcs

addHead

public void addHead(Node head,
                    ArcLabels arcLabelCodes)
Specified by:
addHead in interface HeadArcs

hasHead

public boolean hasHead()
Specified by:
hasHead in interface HeadArcs

isSingleHeaded

public boolean isSingleHeaded()
Specified by:
isSingleHeaded in interface HeadArcs

getHead

public Node getHead(int index)
Specified by:
getHead in interface HeadArcs

getHead

public Node getHead()
Specified by:
getHead in interface HeadArcs

getHeads

public SortedSet<Node> getHeads()
Specified by:
getHeads in interface HeadArcs

getArcLabels

public ArcLabels getArcLabels(int headindex)
Specified by:
getArcLabels in interface HeadArcs

getFirstHeadArcLabels

public ArcLabels getFirstHeadArcLabels()
Specified by:
getFirstHeadArcLabels in interface HeadArcs

getLabelCode

public Integer getLabelCode(int headindex,
                            SymbolTable table)
Specified by:
getLabelCode in interface HeadArcs

getLabelCode

public Integer getLabelCode(Node head,
                            SymbolTable table)
Specified by:
getLabelCode in interface HeadArcs

hasLabelCodes

public boolean hasLabelCodes()
Specified by:
hasLabelCodes in interface HeadArcs

getFirstHeadLabelCode

public Integer getFirstHeadLabelCode(SymbolTable table)
Specified by:
getFirstHeadLabelCode in interface HeadArcs

MaltParser 1.0.2

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.