All Implemented Interfaces:
Constraint

public class AND extends OR
Used for getting logical AND of a set of constraints.
Author:
Ozgun Babur
  • Constructor Details

    • AND

      public AND(MappedConst... con)
      Constructor with the mapped constraints.
      Parameters:
      con - mapped constraints
  • Method Details

    • satisfies

      public boolean satisfies(Match match, int... ind)
      Checks if all the constraints satisfy.
      Specified by:
      satisfies in interface Constraint
      Overrides:
      satisfies in class OR
      Parameters:
      match - match to validate
      ind - mapped indices
      Returns:
      true if all satisfy
    • generate

      public Collection<BioPAXElement> generate(Match match, int... ind)
      Gets intersection of the generated elements by the member constraints.
      Specified by:
      generate in interface Constraint
      Overrides:
      generate in class OR
      Parameters:
      match - match to process
      ind - mapped indices
      Returns:
      satisfying elements