Class ModificationChangeConstraint

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

public class ModificationChangeConstraint extends ConstraintAdapter
This class checks if there exists a desired type of modification change among two PhysicalEntity. var0: First simple PhysicalEntity Var1: Second simple PhysicalEntity
Author:
Ozgun Babur
  • Field Details

  • Constructor Details

    • ModificationChangeConstraint

      public ModificationChangeConstraint(ModificationChangeConstraint.Type type, String... featureSubstring)
      Constructor with the desired change and maps to activating and inactivating features. If the feature substrings are not provided, any feature is qualified.
      Parameters:
      type - either gain, loss, or any
      featureSubstring - partial names of the features desired to be changed
  • Method Details

    • satisfies

      public boolean satisfies(Match match, int... ind)
      Checks the any of the changed modifications match to any of the desired modifications.
      Specified by:
      satisfies in interface Constraint
      Overrides:
      satisfies in class ConstraintAdapter
      Parameters:
      match - current pattern match
      ind - mapped indices
      Returns:
      true if a modification change is among desired modifications