|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.chartparser.Category ch.uzh.ifi.attempto.chartparser.Nonterminal ch.uzh.ifi.attempto.chartparser.BackrefCategory
public class BackrefCategory
This class stands for backward refernces. In contrast to all other categories, backward references can have multiple feature maps. They have one or more "positive" feature maps and zero or more "negative" feature maps.
Field Summary | |
---|---|
protected java.util.List<FeatureMap> |
negFeatureMaps
The negative feature maps of the backward reference. |
protected java.util.List<FeatureMap> |
posFeatureMaps
The positive feature maps of the backward reference. |
Fields inherited from class ch.uzh.ifi.attempto.chartparser.Category |
---|
featureMap, name, specialCategories |
Constructor Summary | |
---|---|
BackrefCategory()
Creates a new backward reference. |
Method Summary | |
---|---|
void |
addNegFeatureMap(FeatureMap fm)
Adds a negative feature map in the case of backward references, or does nothing for all other categories. |
void |
addPosFeatureMap(FeatureMap fm)
Adds a positive feature map in the case of backward references, or does nothing for all other categories. |
java.util.Set<java.lang.String> |
getFeatureNames()
Returns the used feature names within the feature map. |
java.util.Collection<StringRef> |
getFeatureValues()
Returns the used feature values within the feature map. |
java.util.List<FeatureMap> |
getNegFeatureMaps()
This method returns the list of negative feature maps for backward references, or null for all other categories. |
java.util.List<FeatureMap> |
getPosFeatureMaps()
This method returns the list of positive feature maps for backward references, or null for all other categories. |
protected java.lang.String |
getType()
This method returns the type of the category. |
boolean |
isSimilar(Category c)
This methods checks whether two categories are similar. |
void |
skolemize()
Skolemizes the feature values of this category. |
boolean |
subsumes(Category c)
This method returns true if this category subsumes (in other words "is more general than") the given category, or false otherwise. |
java.lang.String |
toString()
|
void |
tryToUnify(Category c)
Tries to unify this category with another category. |
void |
unify(Category c)
Unifies this category with another category. |
Methods inherited from class ch.uzh.ifi.attempto.chartparser.Nonterminal |
---|
setFeatureMap |
Methods inherited from class ch.uzh.ifi.attempto.chartparser.Category |
---|
canUnify, deepCopy, equals, getFeature, getFeatureMap, getName, isSpecialCategory, setFeature, setFeature |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List<FeatureMap> posFeatureMaps
protected java.util.List<FeatureMap> negFeatureMaps
Constructor Detail |
---|
public BackrefCategory()
Method Detail |
---|
public java.util.List<FeatureMap> getPosFeatureMaps()
Category
getPosFeatureMaps
in class Category
public java.util.List<FeatureMap> getNegFeatureMaps()
Category
getNegFeatureMaps
in class Category
public void addPosFeatureMap(FeatureMap fm)
Category
addPosFeatureMap
in class Category
fm
- The positive feature map to be added.public void addNegFeatureMap(FeatureMap fm)
Category
addNegFeatureMap
in class Category
fm
- The negative feature map to be added.public void unify(Category c) throws UnificationFailedException
Category
unify
in class Category
c
- The category to be unified with this category.
UnificationFailedException
- If unification fails.public void tryToUnify(Category c) throws UnificationFailedException
Category
tryToUnify
in class Category
c
- The category to be unified with this category.
UnificationFailedException
- If unification fails.public boolean isSimilar(Category c)
Category
isSimilar
in class Category
c
- The category for which similarity with this category should be checked.
public boolean subsumes(Category c)
Category
subsumes
in class Category
c
- The category for which it is checked whether this category subsumes it.
public void skolemize()
Category
skolemize
in class Category
public java.util.Set<java.lang.String> getFeatureNames()
Category
getFeatureNames
in class Category
public java.util.Collection<StringRef> getFeatureValues()
Category
getFeatureValues
in class Category
protected java.lang.String getType()
Category
getType
in class Nonterminal
public java.lang.String toString()
toString
in class Nonterminal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |