Class AugmentedConstituent

java.lang.Object
  extended byConstituent
      extended byAugmentedConstituent
All Implemented Interfaces:
Unifiable
Direct Known Subclasses:
HeadFeaturedConstituent

public class AugmentedConstituent
extends Constituent
implements Unifiable

An AugmentedConstituent of a parse represents a syntactic element augmented with feature information. It consists of:


Field Summary
(package private)  FeatureSet features
          Set of features of this AugmentedConstituent.
 
Fields inherited from class Constituent
category
 
Constructor Summary
AugmentedConstituent(Symbol category, FeatureSet feats)
          Create a new AugmentedConstituent with the given attributes.
 
Method Summary
 Unifiable copyWithBindings(BindingSet bindings)
          Returns a new AugmentedConstituent which is a copy of this one.
 FeatureSet getFeatures()
          Returns the FeatureSet of this AugmentedConstituent.
 java.lang.String toString()
          Returns the printable representation of this AugmentedConstituent as a String.
 boolean unifyWith(Unifiable other, BindingSet bindings)
          Returns true if this AugmentedConstituent unifies with the given one, and puts the unifying substitution in bindings if so.
 
Methods inherited from class Constituent
getCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

features

FeatureSet features
Set of features of this AugmentedConstituent.

Constructor Detail

AugmentedConstituent

public AugmentedConstituent(Symbol category,
                            FeatureSet feats)
Create a new AugmentedConstituent with the given attributes.

Method Detail

getFeatures

public FeatureSet getFeatures()
Returns the FeatureSet of this AugmentedConstituent.


toString

public java.lang.String toString()
Returns the printable representation of this AugmentedConstituent as a String.

Overrides:
toString in class Constituent

unifyWith

public boolean unifyWith(Unifiable other,
                         BindingSet bindings)
Returns true if this AugmentedConstituent unifies with the given one, and puts the unifying substitution in bindings if so. Constituents can only unify with other constituents, which they do if their category and features both unify.

Specified by:
unifyWith in interface Unifiable

copyWithBindings

public Unifiable copyWithBindings(BindingSet bindings)
Returns a new AugmentedConstituent which is a copy of this one.

Specified by:
copyWithBindings in interface Unifiable