Class PathConstraint
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.PathConstraint
- All Implemented Interfaces:
Constraint
PathConstraint encapsulates PathAccessor of Paxtools.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionPathConstraint(String path) Constructor with the constructor String of PathAccessor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is a generative constraint.Uses the encapsulated PAthAccessor to generate satisfying elements.booleanChecks if the PathAccessor is generating the second mapped element.Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, setSize
-
Constructor Details
-
PathConstraint
Constructor with the constructor String of PathAccessor.- Parameters:
path- constructor String of PathAccessor
-
-
Method Details
-
satisfies
Checks if the PathAccessor is generating the second mapped element.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if second element is generated by PathAccessor
-
canGenerate
public boolean canGenerate()This is a generative constraint.- Specified by:
canGeneratein interfaceConstraint- Overrides:
canGeneratein classConstraintAdapter- Returns:
- true
-
generate
Uses the encapsulated PAthAccessor to generate satisfying elements.- Specified by:
generatein interfaceConstraint- Overrides:
generatein classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- generated elements
-