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

Class OT.AlignPrWd

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

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

Constructor Index

 o AlignPrWd(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 AlignPrWd
  public AlignPrWd(FeatureType featureType,
                   Edge edge)

Methods

 o evaluate
  public Integer evaluate(Representation candidate,
                          Representation nullRep)
Returns the number of times that candidate violates this constraint. Find the edgemost anchor of the type for featureType; if it is on path with a token of featureType, return 0; otherwise return 1.
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