Class Completer

java.lang.Object
org.biopax.paxtools.controller.Completer
All Implemented Interfaces:
Visitor

public class Completer extends Object implements Visitor
This class is used for getting a valid subgraph from a set of BioPAX elements. For instance, if a BioPAX graph contains a complex with some members, but the subgraph contains the same complex without the members, then it is not valid. Similarly, an interaction is only valid with its participants; however, including its controls is optional.
Author:
Ozgun Babur
  • Field Details

  • Constructor Details

    • Completer

      public Completer(EditorMap map)
  • Method Details

    • complete

      public Set<BioPAXElement> complete(Collection<BioPAXElement> elements, Model model)
      Deprecated.
      use complete(Collection) instead (- model is never explicitly used there)
      Parameters:
      elements -
      model -
      Returns:
    • complete

      public Set<BioPAXElement> complete(Collection<BioPAXElement> elements)
    • visit

      public void visit(BioPAXElement domain, Object range, Model model, PropertyEditor editor)
      Description copied from interface: Visitor
      An implementation of this method should perform a BioPAX element and editor dependent operation on the model. Examples of uses of this method include adding a BioPAX element--with all its dependent elements that can be reached via the editor--into the model, or updating an element that is equivalent to the given BioPAX element using the latter's/former's values.
      Specified by:
      visit in interface Visitor
      Parameters:
      domain - BioPAXElement which is the domain of this property
      range - Object which is the range of this property
      model - model on which the visiting operation will be done
      editor - editor
    • setSkipSubPathways

      public void setSkipSubPathways(boolean skipSubPathways)
      Use this property to optionally skip (if true) traversing into sub-pathways; i.e., when the value of BioPAX property 'pathwayComponent' or 'controlled' is a pathway.
      Parameters:
      skipSubPathways - true/false (default is 'true' - do skip)
    • isSkipSubPathways

      public boolean isSkipSubPathways()