Package hydra.constraints
Class PatternImplication
java.lang.Object
hydra.constraints.PatternImplication
- All Implemented Interfaces:
Serializable,Comparable<PatternImplication>
public class PatternImplication
extends Object
implements Serializable, Comparable<PatternImplication>
A pattern which, if it matches in a given graph, implies that another pattern must also match. Query variables are shared between the two patterns.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PatternImplication other) booleaninthashCode()withAntecedent(Pattern antecedent) withConsequent(Pattern consequent)
-
Field Details
-
TYPE_
-
ANTECEDENT
-
CONSEQUENT
-
antecedent
The pattern which, if it matches, triggers the constraint -
consequent
The pattern which must also match when the antecedent matches
-
-
Constructor Details
-
PatternImplication
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<PatternImplication>
-
withAntecedent
-
withConsequent
-