Class ConversionWrapper
java.lang.Object
org.biopax.paxtools.query.model.AbstractNode
org.biopax.paxtools.query.wrapperL3.EventWrapper
org.biopax.paxtools.query.wrapperL3.ConversionWrapper
- All Implemented Interfaces:
GraphObject,Node
Wrapper for the Conversion class.
- Author:
- Ozgun Babur
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConversionWrapped Conversion.protected booleanThe direction that the Conversion is wrapped.static final booleanDirection LEFT_TO_RIGHT.static final booleanDirection RIGHT_TO_LEFT.protected booleanFlag to say this Conversion is a transcription.Fields inherited from class org.biopax.paxtools.query.model.AbstractNode
banned, downstream, downstreamInited, graph, lowerEquivalent, pathSign, upperEquivalent, upstream, upstreamInited -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConversionWrapper(Conversion conv, GraphL3 graph) Constructor with the Conversion to wrap and the owner graph. -
Method Summary
Methods inherited from class org.biopax.paxtools.query.wrapperL3.EventWrapper
addToDownstream, addToUpstream, getLowerEquivalent, getSign, getUpperEquivalent, isBreadthNode, isUbiqueMethods inherited from class org.biopax.paxtools.query.model.AbstractNode
clear, getBanned, getDownstream, getDownstreamNoInit, getGraph, getPathSign, getUpstream, getUpstreamNoInit, initBanned, setBanned, setPathSign
-
Field Details
-
conv
Wrapped Conversion. -
direction
protected boolean directionThe direction that the Conversion is wrapped. A separate wrapper is used for each direction if the Conversion is reversible. -
transcription
protected boolean transcriptionFlag to say this Conversion is a transcription. -
LEFT_TO_RIGHT
public static final boolean LEFT_TO_RIGHTDirection LEFT_TO_RIGHT.- See Also:
-
RIGHT_TO_LEFT
public static final boolean RIGHT_TO_LEFTDirection RIGHT_TO_LEFT.- See Also:
-
-
Constructor Details
-
ConversionWrapper
Constructor with the Conversion to wrap and the owner graph.- Parameters:
conv- Conversion to wrapgraph- Owner graph
-
-
Method Details
-
getDirection
public boolean getDirection()- Returns:
- Direction of the conversion
-
getReverse
- Returns:
- The reverse Conversion wrapper if exists
-
init
public void init()Extracts the direction, creates the reverse if necessary.- Specified by:
initin interfaceNode- Overrides:
initin classAbstractNode
-
initUpstream
public void initUpstream()Binds inputs and controllers.- Overrides:
initUpstreamin classAbstractNode
-
initDownstream
public void initDownstream()Binds products.- Overrides:
initDownstreamin classAbstractNode
-
isTranscription
public boolean isTranscription()Description copied from class:EventWrapperSay if the event is a transcription.- Specified by:
isTranscriptionin interfaceNode- Specified by:
isTranscriptionin classEventWrapper- Returns:
- Whether this is a transcription
-
getKey
RDF ID of the Conversion and the direction is used for the key.- Returns:
- Key
-
getConversion
- Returns:
- Wrapped Conversion
-
toString
-