Class InteractionWrapper
java.lang.Object
org.biopax.paxtools.query.model.AbstractNode
org.biopax.paxtools.query.wrapperL3undirected.EventWrapper
org.biopax.paxtools.query.wrapperL3undirected.InteractionWrapper
- All Implemented Interfaces:
GraphObject,Node
Wrapper for Interaction class, excluding Control objects.
- 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
ConstructorsModifierConstructorDescriptionprotectedInteractionWrapper(Interaction interaction, GraphL3Undirected graph) Constructor with the Interaction and the owner graph. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddToDownstream(BioPAXElement pe, Graph graph) Binds the given PhysicalEntity to the downstream.protected voidaddToUpstream(BioPAXElement ele, Graph graph) Binds the given element to the upstream.Gets the wrapped TemplateReactiongetKey()Uses RDF ID of TemplateReaction as key.voidBinds to participants and controllers.voidBinds to participants and controllers.booleanBeing a transcription is not relevant in the undirected context.Methods inherited from class org.biopax.paxtools.query.wrapperL3undirected.EventWrapper
addToDownstream, 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
-
InteractionWrapper
Constructor with the Interaction and the owner graph.- Parameters:
interaction- Interaction to wrapgraph- Owner graph
-
-
Method Details
-
initUpstream
public void initUpstream()Binds to participants and controllers.- Overrides:
initUpstreamin classAbstractNode
-
initDownstream
public void initDownstream()Binds to participants and controllers.- Overrides:
initDownstreamin classAbstractNode
-
isTranscription
public boolean isTranscription()Being a transcription is not relevant in the undirected context.- Specified by:
isTranscriptionin interfaceNode- Specified by:
isTranscriptionin classEventWrapper- Returns:
- false
-
addToDownstream
Binds the given PhysicalEntity to the downstream.- 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
-
getInteraction
Gets the wrapped TemplateReaction- Returns:
- The wrapped TemplateReaction
-