|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.chartparser.FeatureMap
public class FeatureMap
This class represents a set of features consisting of name/value pairs.
Constructor Summary | |
---|---|
FeatureMap()
Creates an empty feature map. |
Method Summary | |
---|---|
boolean |
canUnify(FeatureMap featureMap)
This method detects whether this feature map can unify with the given feature map. |
FeatureMap |
deepCopy()
Creates a deep copy of this feature map. |
StringRef |
getFeature(java.lang.String featureName)
Returns a feature value. |
java.util.Set<java.lang.String> |
getFeatureNames()
Returns the used feature names. |
java.util.Collection<StringRef> |
getFeatureValues()
Returns the used feature values. |
boolean |
isSimilar(FeatureMap fm)
This methods checks whether two feature maps are similar. |
void |
setFeature(java.lang.String featureName,
StringRef featureValue)
Sets a feature. |
void |
skolemize()
Skolemizes the feature values of this feature map. |
java.lang.String |
toString()
|
void |
tryToUnify(FeatureMap featureMap)
Tries to unify this feature map with another feature map. |
void |
unify(FeatureMap featureMap)
Unifies this feature map with another feature map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FeatureMap()
Method Detail |
---|
public void setFeature(java.lang.String featureName, StringRef featureValue)
featureName
- The name of the feature to set.featureValue
- The feature value.public StringRef getFeature(java.lang.String featureName)
featureName
- The name of the feature.
public void unify(FeatureMap featureMap) throws UnificationFailedException
featureMap
- The feature map to be unified with this feature map.
UnificationFailedException
- If unification fails.public void tryToUnify(FeatureMap featureMap) throws UnificationFailedException
featureMap
- The feature map to be unified with this feature map.
UnificationFailedException
- If unification fails.public boolean canUnify(FeatureMap featureMap)
featureMap
- The feature map for the unification check.
public void skolemize()
public boolean isSimilar(FeatureMap fm)
fm
- The category for which similarity with this category should be checked.
public FeatureMap deepCopy()
public java.util.Set<java.lang.String> getFeatureNames()
public java.util.Collection<StringRef> getFeatureValues()
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 |