Class ControlWrapper
java.lang.Object
org.biopax.paxtools.query.model.AbstractNode
org.biopax.paxtools.query.wrapperL3undirected.ControlWrapper
- All Implemented Interfaces:
GraphObject,Node
Wrapper for the Control class.
- Author:
- Ozgun Babur
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ControlWrapped control.protected intSign of the control.protected booleanFlag to indicate if this control is related to a transcription.Fields inherited from class org.biopax.paxtools.query.model.AbstractNode
banned, downstream, downstreamInited, graph, lowerEquivalent, pathSign, upperEquivalent, upstream, upstreamInited -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedControlWrapper(Control ctrl, Graph graph) Constructor with the Control and the owner graph. -
Method Summary
Modifier and TypeMethodDescriptionGets the wrapped Control.getKey()RDF ID of the Control is its key.Control cannot have an equivalent.intgetSign()Some nodes can have a sign (typically non-breadth nodes).Control cannot have an equivalent.voidinit()Extracts the sign and the type of the Control.voidBinds the controlled objects.voidBinds the controller and other Controls that controls this control.booleanControl is not a breadth node.booleanNodes are not transcription by default.booleanisUbique()Controls are not ubiquitous molecules.voidsetTranscription(boolean transcription) Make or not make this control related to a transcription.Methods inherited from class org.biopax.paxtools.query.model.AbstractNode
clear, getBanned, getDownstream, getDownstreamNoInit, getGraph, getPathSign, getUpstream, getUpstreamNoInit, initBanned, setBanned, setPathSign
-
Field Details
-
ctrl
Wrapped control. -
sign
protected int signSign of the control. -
transcription
protected boolean transcriptionFlag to indicate if this control is related to a transcription.
-
-
Constructor Details
-
ControlWrapper
Constructor with the Control and the owner graph.- Parameters:
ctrl- Control to be wrappedgraph- Owner graph
-
-
Method Details
-
isBreadthNode
public boolean isBreadthNode()Control is not a breadth node.- Returns:
- False
-
getSign
public int getSign()Description copied from interface:NodeSome nodes can have a sign (typically non-breadth nodes).- Returns:
- Sign of the Control
-
isUbique
public boolean isUbique()Controls are not ubiquitous molecules.- Returns:
- False
-
getKey
RDF ID of the Control is its key.- Returns:
- Key
-
init
public void init()Extracts the sign and the type of the Control.- Specified by:
initin interfaceNode- Overrides:
initin classAbstractNode
-
initUpstream
public void initUpstream()Binds the controller and other Controls that controls this control.- Overrides:
initUpstreamin classAbstractNode
-
initDownstream
public void initDownstream()Binds the controlled objects.- Overrides:
initDownstreamin classAbstractNode
-
getControl
Gets the wrapped Control.- Returns:
- The Control
-
getUpperEquivalent
Control cannot have an equivalent.- Specified by:
getUpperEquivalentin interfaceNode- Overrides:
getUpperEquivalentin classAbstractNode- Returns:
- Empty set
-
getLowerEquivalent
Control cannot have an equivalent.- Specified by:
getLowerEquivalentin interfaceNode- Overrides:
getLowerEquivalentin classAbstractNode- Returns:
- Empty set
-
isTranscription
public boolean isTranscription()Description copied from class:AbstractNodeNodes are not transcription by default.- Specified by:
isTranscriptionin interfaceNode- Overrides:
isTranscriptionin classAbstractNode- Returns:
- whether this Control is related to a transcription event
-
setTranscription
public void setTranscription(boolean transcription) Make or not make this control related to a transcription.- Parameters:
transcription- whether this Control is related to a transcription
-