|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.uzh.ifi.attempto.chartparser.Category
public abstract class Category
This class represents a grammatical category.
Constructor Summary | |
---|---|
Category(java.lang.String name)
Creates a new category. |
Method Summary | |
---|---|
Category |
deepCopy()
Creates a deep copy of this category. |
Category |
deepCopy(java.util.HashMap<java.lang.Integer,ch.uzh.ifi.attempto.chartparser.StringEntity> entities)
Creates a deep copy of this category using the given string entities. |
boolean |
equals(java.lang.Object obj)
|
StringRef |
getFeature(java.lang.String featureName)
Returns a feature value. |
java.lang.String |
getName()
Returns the name of the category. |
void |
setFeature(java.lang.String featureName,
StringRef featureValue)
Sets a feature. |
void |
skolemize()
Skolemizes the feature values of this category. |
java.lang.String |
toString()
|
void |
tryToUnify(Category category)
Tries to unify this category with another category. |
void |
unify(Category category)
Unifies this category with another category. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Category(java.lang.String name)
name
- The name of the category.Method Detail |
---|
public java.lang.String getName()
public void setFeature(java.lang.String featureName, StringRef featureValue)
featureName
- The feature namefeatureValue
- public StringRef getFeature(java.lang.String featureName)
featureName
- The name of the feature.
public void unify(Category category) throws UnificationFailedException
category
- The category to be unified with this category.
UnificationFailedException
- If unification fails.public void tryToUnify(Category category) throws UnificationFailedException
category
- The category to be unified with this category.
UnificationFailedException
- If unification fails.public void skolemize()
public Category deepCopy()
public Category deepCopy(java.util.HashMap<java.lang.Integer,ch.uzh.ifi.attempto.chartparser.StringEntity> entities)
entities
- The string entities to be used.
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |