Class AND
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.OR
org.biopax.paxtools.pattern.constraint.AND
- All Implemented Interfaces:
Constraint
Used for getting logical AND of a set of constraints.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets intersection of the generated elements by the member constraints.booleanChecks if all the constraints satisfy.Methods inherited from class org.biopax.paxtools.pattern.constraint.OR
canGenerate, getVariableSize, maxMethods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, setSize
-
Constructor Details
-
AND
Constructor with the mapped constraints.- Parameters:
con- mapped constraints
-
-
Method Details
-
satisfies
Checks if all the constraints satisfy.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classOR- Parameters:
match- match to validateind- mapped indices- Returns:
- true if all satisfy
-
generate
Gets intersection of the generated elements by the member constraints.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classOR- Parameters:
match- match to processind- mapped indices- Returns:
- satisfying elements
-