Class TemplateReactionWrapper

All Implemented Interfaces:
GraphObject, Node

public class TemplateReactionWrapper extends EventWrapper
Wrapper for TemplateReaction class.
Author:
Ozgun Babur
  • Constructor Details

    • TemplateReactionWrapper

      protected TemplateReactionWrapper(TemplateReaction tempReac, GraphL3 graph)
      Constructor with the TemplateReaction and the owner graph.
      Parameters:
      tempReac - TemplateReaction to wrap
      graph - Owner graph
  • Method Details

    • initUpstream

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

      public void initDownstream()
      Binds to products.
      Overrides:
      initDownstream in class AbstractNode
    • isTranscription

      public boolean isTranscription()
      This is transcription.
      Specified by:
      isTranscription in interface Node
      Specified by:
      isTranscription in class EventWrapper
      Returns:
      True
    • addToDownstream

      protected void addToDownstream(PhysicalEntity pe, Graph graph)
      Binds the given PhysicalEntity to the downstream.
      Overrides:
      addToDownstream in class EventWrapper
      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
    • getTempReac

      public TemplateReaction getTempReac()
      Gets the wrapped TemplateReaction
      Returns:
      The wrapped TemplateReaction