Class PEChainsIntersect
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.PEChainsIntersect
- All Implemented Interfaces:
Constraint
This constraint checks if two chains of linked physical entities are intersecting or not.
Var0 First (simpler) PhysicalEntity in the first chain
Var1 Last (complexer) PhysicalEntity in the first chain
Var2 First PhysicalEntity in the second chain
Var3 Last PhysicalEntity in the second chain
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionPEChainsIntersect(boolean intersectionDesired) Constructor with the desired result.PEChainsIntersect(boolean intersectionDesired, boolean ignoreEndPoints) Constructor with the desired result and endpoint ignore option. -
Method Summary
Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, setSize
-
Constructor Details
-
PEChainsIntersect
public PEChainsIntersect(boolean intersectionDesired) Constructor with the desired result.- Parameters:
intersectionDesired- desired result
-
PEChainsIntersect
public PEChainsIntersect(boolean intersectionDesired, boolean ignoreEndPoints) Constructor with the desired result and endpoint ignore option.- Parameters:
intersectionDesired- desired resultignoreEndPoints- option to ignore intersection at the endpoints of the chains
-
-
Method Details
-
satisfies
Creates two PhysicalEntity chains with the given endpoints, and checks if they are intersecting.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if the chains are intersecting or not intersecting as desired
-