Class Entry

java.lang.Object
  extended byEntry

public class Entry
extends java.lang.Object

An Entry represents a completed Constituent on the chart.


Field Summary
(package private)  Constituent constit
          The Constituent that this entry represents.
(package private)  int end
          The ending index of this Entry.
(package private)  Symbol id
          The unique identifier of this Entry.
(package private)  int start
          The starting index of this Entry.
 
Constructor Summary
Entry(Symbol id, Constituent constit, int start, int end)
          Creates a new Entry for the given Constituent from START to END.
 
Method Summary
 Constituent getConstituent()
          Returns the Constituent that this entry represents.
 int getEnd()
          Returns the ending index of this Entry (Constituent).
 Symbol getId()
          Returns the unique identifier of this Entry.
 int getStart()
          Returns the starting index of this Entry (Constituent).
 java.lang.String toString()
          Returns the String representation of this Entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

Symbol id
The unique identifier of this Entry.


constit

Constituent constit
The Constituent that this entry represents.


start

int start
The starting index of this Entry.


end

int end
The ending index of this Entry.

Constructor Detail

Entry

public Entry(Symbol id,
             Constituent constit,
             int start,
             int end)
Creates a new Entry for the given Constituent from START to END.

Method Detail

getId

public Symbol getId()
Returns the unique identifier of this Entry.


getConstituent

public Constituent getConstituent()
Returns the Constituent that this entry represents.


getStart

public int getStart()
Returns the starting index of this Entry (Constituent).


getEnd

public int getEnd()
Returns the ending index of this Entry (Constituent).


toString

public java.lang.String toString()
Returns the String representation of this Entry.