ch.uzh.ifi.attempto.chartparser
Class CPConcreteOption

java.lang.Object
  extended by ch.uzh.ifi.attempto.chartparser.CPConcreteOption
All Implemented Interfaces:
ConcreteOption

public class CPConcreteOption
extends java.lang.Object
implements ConcreteOption

This class represents a concrete option for the chart parser. Such a concrete option consists of a word in the form of a terminal category standing for a possible next token, and optionally of a pre-terminal category from which the terminal category was derived.

Author:
Tobias Kuhn

Method Summary
 boolean equals(java.lang.Object obj)
           
 Preterminal getCategory()
          Returns the pre-terminal category of this concrete option, or null if no pre-terminal category was involved.
 java.lang.String getCategoryName()
          Returns the name of the category of this concrete option, or null if there is no such category.
 java.lang.String getWord()
          Returns the word of this concrete option.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getWord

public java.lang.String getWord()
Description copied from interface: ConcreteOption
Returns the word of this concrete option.

Specified by:
getWord in interface ConcreteOption
Returns:
The word.

getCategory

public Preterminal getCategory()
Returns the pre-terminal category of this concrete option, or null if no pre-terminal category was involved.

Returns:
The pre-terminal category.

getCategoryName

public java.lang.String getCategoryName()
Description copied from interface: ConcreteOption
Returns the name of the category of this concrete option, or null if there is no such category.

Specified by:
getCategoryName in interface ConcreteOption
Returns:
The category name.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2008-2012, AceWiki developers