Class InteractionWrapper

All Implemented Interfaces:
GraphObject, Node

public class InteractionWrapper extends EventWrapper
Wrapper for Interaction class, excluding Control objects.
Author:
Ozgun Babur
  • Constructor Details

    • InteractionWrapper

      protected InteractionWrapper(Interaction interaction, GraphL3Undirected graph)
      Constructor with the Interaction and the owner graph.
      Parameters:
      interaction - Interaction to wrap
      graph - Owner graph
  • Method Details

    • initUpstream

      public void initUpstream()
      Binds to participants and controllers.
      Overrides:
      initUpstream in class AbstractNode
    • initDownstream

      public void initDownstream()
      Binds to participants and controllers.
      Overrides:
      initDownstream in class AbstractNode
    • isTranscription

      public boolean isTranscription()
      Being a transcription is not relevant in the undirected context.
      Specified by:
      isTranscription in interface Node
      Specified by:
      isTranscription in class EventWrapper
      Returns:
      false
    • addToDownstream

      protected void addToDownstream(BioPAXElement pe, Graph graph)
      Binds the given PhysicalEntity to the downstream.
      Parameters:
      pe - PhysicalEntity to bind
      graph - Owner graph
    • addToUpstream

      protected void addToUpstream(BioPAXElement ele, Graph graph)
      Binds the given element to the upstream.
      Overrides:
      addToUpstream in class EventWrapper
      Parameters:
      ele - Element to bind
      graph - Owner graph
    • getKey

      public String getKey()
      Uses RDF ID of TemplateReaction as key.
      Returns:
      RDF ID of TemplateReaction
    • getInteraction

      public Interaction getInteraction()
      Gets the wrapped TemplateReaction
      Returns:
      The wrapped TemplateReaction