|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.rule.constraint.Constraint
edu.washington.cs.knowitall.rule.constraint.CaptureConstraint
edu.washington.cs.knowitall.rule.constraint.AbstractPatternConstraint
edu.washington.cs.knowitall.rule.constraint.PatternConstraint
edu.washington.cs.knowitall.rule.constraint.SequenceConstraint
public class SequenceConstraint
Constrains based on a sequence of adjacent TermConstraints.
| Field Summary |
|---|
| Fields inherited from class edu.washington.cs.knowitall.rule.constraint.AbstractPatternConstraint |
|---|
expression |
| Fields inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint |
|---|
part |
| Constructor Summary | |
|---|---|
SequenceConstraint(org.jdom.Element e)
|
|
SequenceConstraint(ExtractionPart part,
Collection<TermConstraint> constraints)
|
|
| Method Summary | |
|---|---|
protected edu.washington.cs.knowitall.commonlib.ArraySet<TermConstraint> |
buildConstraints(org.jdom.Element e)
|
String |
deserializePattern(org.jdom.Element e)
Constructs a pattern expression from an element. |
boolean |
equals(Object other)
Force subclasses to avoid pointer-based comparison. |
List<Constraint> |
generalize()
Simplify this constraint one step. |
int |
hashCode()
Force subclasses to avoid pointer-based comparison. |
Constraint |
simplify()
Returns null if there are no constraints. |
int |
size()
The size of a constraint is the count of subconstraints. |
List<TermConstraint> |
subconstraints()
Return an ordered list of the subconstraints that make up this sequence constraint. |
String |
toString()
Provides a base constraint representation. |
org.jdom.Element |
toXmlElement()
|
| Methods inherited from class edu.washington.cs.knowitall.rule.constraint.AbstractPatternConstraint |
|---|
check, getString, value |
| Methods inherited from class edu.washington.cs.knowitall.rule.constraint.CaptureConstraint |
|---|
value |
| Methods inherited from class edu.washington.cs.knowitall.rule.constraint.Constraint |
|---|
check, create, create, create, fromXmlElement, getConstraintClass, subsumes, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceConstraint(org.jdom.Element e)
public SequenceConstraint(ExtractionPart part,
Collection<TermConstraint> constraints)
| Method Detail |
|---|
public int size()
ConstraintTermConstraint
for example has a size equal to the number of restrictions it has.
size in class PatternConstraintpublic boolean equals(Object other)
Constraint
equals in class PatternConstraintpublic String toString()
Constraint
toString in class Constraintpublic int hashCode()
Constraint
hashCode in class Constraintpublic Constraint simplify()
simplify in class Constraintpublic List<TermConstraint> subconstraints()
public List<Constraint> generalize()
generalize in class PatternConstraintprotected edu.washington.cs.knowitall.commonlib.ArraySet<TermConstraint> buildConstraints(org.jdom.Element e)
public String deserializePattern(org.jdom.Element e)
AbstractPatternConstraint
deserializePattern in class AbstractPatternConstraintpublic org.jdom.Element toXmlElement()
toXmlElement in class PatternConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||