Class ConstraintChain
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.ConstraintChain
- All Implemented Interfaces:
Constraint
Used for using several constraints as a chain. The generated elements from a constraint is used
as input by the next constraint in the chain. All constraints except the first one has to be
size 2.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionConstraintChain(Constraint... con) Constructor with the chained constraints. -
Method Summary
Modifier and TypeMethodDescriptionChains the member constraints and returns the output of the last constraint.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, satisfies, setSize
-
Constructor Details
-
ConstraintChain
Constructor with the chained constraints. All constraints has to be generative, and all constraints, except the first one, has to be size 2. The input to these constraints is the element that is generated by the previous constraint in the chain.- Parameters:
con- mapped constraints
-
-
Method Details
-
generate
Chains the member constraints and returns the output of the last constraint.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classConstraintAdapter- Parameters:
match- match to processind- mapped indices- Returns:
- satisfying elements
-