Class EventWrapper

java.lang.Object
org.biopax.paxtools.query.model.AbstractNode
org.biopax.paxtools.query.wrapperL3.EventWrapper
All Implemented Interfaces:
GraphObject, Node
Direct Known Subclasses:
ConversionWrapper, TemplateReactionWrapper

public abstract class EventWrapper extends AbstractNode
This is the parent wrapper class for both Conversion and TemplateReaction objects.
Author:
Ozgun Babur
  • Constructor Details

    • EventWrapper

      protected EventWrapper(GraphL3 graph)
      Constructor with the owner graph.
      Parameters:
      graph - Owner graph
  • Method Details

    • isBreadthNode

      public boolean isBreadthNode()
      Events are not breadth nodes.
      Returns:
      False
    • getSign

      public int getSign()
      Events have a positive sign.
      Returns:
      POSITIVE (1)
    • isUbique

      public boolean isUbique()
      Events are not ubiquitous molecules.
      Returns:
      False
    • isTranscription

      public abstract boolean isTranscription()
      Say if the event is a transcription.
      Specified by:
      isTranscription in interface Node
      Overrides:
      isTranscription in class AbstractNode
      Returns:
      Whether the event is a transcription
    • addToUpstream

      protected void addToUpstream(BioPAXElement ele, Graph graph)
      Bind the wrapper of the given element to the upstream.
      Parameters:
      ele - Element to bind
      graph - Owner graph.
    • addToDownstream

      protected void addToDownstream(PhysicalEntity pe, Graph graph)
      Bind the wrapper of the given PhysicalEntity to the downstream.
      Parameters:
      pe - PhysicalEntity to bind
      graph - Owner graph.
    • getUpperEquivalent

      public Collection<Node> getUpperEquivalent()
      Events do not have equivalent objects.
      Specified by:
      getUpperEquivalent in interface Node
      Overrides:
      getUpperEquivalent in class AbstractNode
      Returns:
      Empty set
    • getLowerEquivalent

      public Collection<Node> getLowerEquivalent()
      Events do not have equivalent objects.
      Specified by:
      getLowerEquivalent in interface Node
      Overrides:
      getLowerEquivalent in class AbstractNode
      Returns:
      Empty set