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
-
GroundPositive(FeatureType, FeatureType)
-
-
evaluate(Representation, Representation)
- Returns the number of times that candidate violates this constraint.
-
toString()
-
GroundPositive
public GroundPositive(FeatureType featureType1,
FeatureType featureType2)
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
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index