Class TemplateReactionWrapper
java.lang.Object
org.biopax.paxtools.query.model.AbstractNode
org.biopax.paxtools.query.wrapperL3.EventWrapper
org.biopax.paxtools.query.wrapperL3.TemplateReactionWrapper
- All Implemented Interfaces:
GraphObject,Node
Wrapper for TemplateReaction class.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.query.model.AbstractNode
banned, downstream, downstreamInited, graph, lowerEquivalent, pathSign, upperEquivalent, upstream, upstreamInited -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTemplateReactionWrapper(TemplateReaction tempReac, GraphL3 graph) Constructor with the TemplateReaction and the owner graph. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToDownstream(PhysicalEntity pe, Graph graph) Binds the given PhysicalEntity to the downstream.protected voidaddToUpstream(BioPAXElement ele, Graph graph) Binds the given element to the upstream.getKey()Uses RDF ID of TemplateReaction as key.Gets the wrapped TemplateReactionvoidBinds to products.voidBinds to template and controllers.booleanThis is transcription.Methods inherited from class org.biopax.paxtools.query.wrapperL3.EventWrapper
getLowerEquivalent, getSign, getUpperEquivalent, isBreadthNode, isUbiqueMethods inherited from class org.biopax.paxtools.query.model.AbstractNode
clear, getBanned, getDownstream, getDownstreamNoInit, getGraph, getPathSign, getUpstream, getUpstreamNoInit, init, initBanned, setBanned, setPathSign
-
Constructor Details
-
TemplateReactionWrapper
Constructor with the TemplateReaction and the owner graph.- Parameters:
tempReac- TemplateReaction to wrapgraph- Owner graph
-
-
Method Details
-
initUpstream
public void initUpstream()Binds to template and controllers.- Overrides:
initUpstreamin classAbstractNode
-
initDownstream
public void initDownstream()Binds to products.- Overrides:
initDownstreamin classAbstractNode
-
isTranscription
public boolean isTranscription()This is transcription.- Specified by:
isTranscriptionin interfaceNode- Specified by:
isTranscriptionin classEventWrapper- Returns:
- True
-
addToDownstream
Binds the given PhysicalEntity to the downstream.- Overrides:
addToDownstreamin classEventWrapper- Parameters:
pe- PhysicalEntity to bindgraph- Owner graph
-
addToUpstream
Binds the given element to the upstream.- Overrides:
addToUpstreamin classEventWrapper- Parameters:
ele- Element to bindgraph- Owner graph
-
getKey
Uses RDF ID of TemplateReaction as key.- Returns:
- RDF ID of TemplateReaction
-
getTempReac
Gets the wrapped TemplateReaction- Returns:
- The wrapped TemplateReaction
-