Class OT.AlignFeature
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class OT.AlignFeature

java.lang.Object
   |
   +----OT.Constraint
           |
           +----OT.Align
                   |
                   +----OT.AlignFeature

public class AlignFeature
extends Align
Alignment constraint. Requires that every feature token be aligned with the left/right edge of the PrWd.
Version:
1999-03-31
Author:
Andrea Heiberg, University of Arizona

Constructor Index

 o AlignFeature(FeatureType, Edge)

Method Index

 o evaluate(Representation, Representation)
Returns the number of times that candidate violates this constraint.
 o toString()
Returns a string representation of this object.

Constructors

 o AlignFeature
  public AlignFeature(FeatureType featureType,
                      Edge edge)

Methods

 o evaluate
  public Integer evaluate(Representation candidate,
                          Representation nullRep)
Returns the number of times that candidate violates this constraint. For each token of featureType, find the edgemost anchor for feature. Add this anchor's distance from edge to the total violation count.
Overrides:
evaluate in class Constraint
 o toString
  public String toString()
Returns a string representation of this object.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index