Class PEChainsIntersect

java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.PEChainsIntersect
All Implemented Interfaces:
Constraint

public class PEChainsIntersect extends ConstraintAdapter
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
  • 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 result
      ignoreEndPoints - option to ignore intersection at the endpoints of the chains
  • Method Details

    • satisfies

      public boolean satisfies(Match match, int... ind)
      Creates two PhysicalEntity chains with the given endpoints, and checks if they are intersecting.
      Specified by:
      satisfies in interface Constraint
      Overrides:
      satisfies in class ConstraintAdapter
      Parameters:
      match - current pattern match
      ind - mapped indices
      Returns:
      true if the chains are intersecting or not intersecting as desired