Class PhysicalEntityWrapper
java.lang.Object
org.biopax.paxtools.query.model.AbstractNode
org.biopax.paxtools.query.wrapperL3undirected.PhysicalEntityWrapper
- All Implemented Interfaces:
GraphObject,Node
Wrapper for PhysicalEntity.
- Author:
- Ozgun Babur
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag to remember if child equivalents initialized.protected PhysicalEntityWrapped PhysicalEntity.protected booleanFlag to say this is a ubiquitous molecule.protected booleanFlag to remember if parent equivalents initialized.Fields inherited from class org.biopax.paxtools.query.model.AbstractNode
banned, downstream, downstreamInited, graph, lowerEquivalent, pathSign, upperEquivalent, upstream, upstreamInited -
Constructor Summary
ConstructorsConstructorDescriptionPhysicalEntityWrapper(PhysicalEntity pe, GraphL3Undirected graph) Constructor with the wrapped PhysicalEntity and the owner graph. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()RDF ID of the PhysicalEntity is used as key.intgetSign()PhysicalEntity have positive sign.voidBinds to downstream interactions.protected voidFinds member nodes if this is a homology nodeprotected voidFinds homology parent.voidBinds to upstream interactions.booleanPhysicalEntity is a breadth node.booleanisUbique()In biological graphs, some nodes are used ubiquitously like ATP, H2O, etc.voidsetUbique(boolean ubique) Set the ubique flag.toString()Methods inherited from class org.biopax.paxtools.query.model.AbstractNode
clear, getBanned, getDownstream, getDownstreamNoInit, getGraph, getPathSign, getUpstream, getUpstreamNoInit, init, initBanned, isTranscription, setBanned, setPathSign
-
Field Details
-
pe
Wrapped PhysicalEntity. -
upperEquivalentInited
protected boolean upperEquivalentInitedFlag to remember if parent equivalents initialized. -
lowerEquivalentInited
protected boolean lowerEquivalentInitedFlag to remember if child equivalents initialized. -
ubique
protected boolean ubiqueFlag to say this is a ubiquitous molecule.
-
-
Constructor Details
-
PhysicalEntityWrapper
Constructor with the wrapped PhysicalEntity and the owner graph.- Parameters:
pe- PhysicalEntity to wrapgraph- Owner graph
-
-
Method Details
-
isUbique
public boolean isUbique()Description copied from interface:NodeIn biological graphs, some nodes are used ubiquitously like ATP, H2O, etc. While traversing a graph we do not want these molecules to link two reactions. So they should be labeled.- Returns:
- Whether this is ubique
-
setUbique
public void setUbique(boolean ubique) Set the ubique flag.- Parameters:
ubique- Whether this is a ubiquitous molecule
-
initUpstream
public void initUpstream()Binds to upstream interactions.- Overrides:
initUpstreamin classAbstractNode
-
initDownstream
public void initDownstream()Binds to downstream interactions.- Overrides:
initDownstreamin classAbstractNode
-
getUpperEquivalent
- Specified by:
getUpperEquivalentin interfaceNode- Overrides:
getUpperEquivalentin classAbstractNode- Returns:
- Parent equivalent objects
-
getLowerEquivalent
- Specified by:
getLowerEquivalentin interfaceNode- Overrides:
getLowerEquivalentin classAbstractNode- Returns:
- Child equivalent objects
-
initUpperEquivalent
protected void initUpperEquivalent()Finds homology parent. -
initLowerEquivalent
protected void initLowerEquivalent()Finds member nodes if this is a homology node -
isBreadthNode
public boolean isBreadthNode()PhysicalEntity is a breadth node.- Returns:
- True
-
getSign
public int getSign()PhysicalEntity have positive sign.- Returns:
- POSITIVE (1)
-
getKey
RDF ID of the PhysicalEntity is used as key.- Returns:
- Key
-
getPhysicalEntity
- Returns:
- Wrapped PhysicalEntity
-
toString
-