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

Class OT.GroundPositive

java.lang.Object
   |
   +----OT.Constraint
           |
           +----OT.Ground
                   |
                   +----OT.GroundPositive

public class GroundPositive
extends Ground
Represents positive grounding constraint ("if F then G").
Version:
1999-03-31
Author:
Andrea Heiberg, University of Arizona

Constructor Index

 o GroundPositive(FeatureType, FeatureType)

Method Index

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

Constructors

 o GroundPositive
  public GroundPositive(FeatureType featureType1,
                        FeatureType featureType2)

Methods

 o evaluate
  public Integer evaluate(Representation candidate,
                          Representation nullRep)
Returns the number of times that candidate violates this constraint. For each root node in candidate, if root is associated to a feature of featureType1 but not associated to a feature of featureType2, increment the violation count.
Overrides:
evaluate in class Constraint
 o toString
  public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index