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

Class OT.GroundNegative

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

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

Constructor Index

 o GroundNegative(FeatureType, FeatureType)

Method Index

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

Constructors

 o GroundNegative
  public GroundNegative(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 and 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