public abstract class AbstractNode extends Object implements Node
Modifier and Type | Field and Description |
---|---|
protected Set<Node> |
banned
For saying: "If the algorithm traverses this node, it cannot traverse those others".
|
protected Set<Edge> |
downstream
Set of downstream edges.
|
protected boolean |
downstreamInited
Flag to remember if downstream links were created.
|
protected Graph |
graph
Owner graph.
|
protected Set<Node> |
lowerEquivalent
If there are equivalent nodes in the graph, and they have a hierarchy, like an homology node
and members, then this set is for the child equivalents of this node.
|
protected int |
pathSign
This variable can be used by algorithms that need to label nodes with a path sign
(typically the current path).
|
protected Set<Node> |
upperEquivalent
If there are equivalent nodes in the graph, and they have a hierarchy, like an homology node
and members, then this set is for the parent equivalents of this node.
|
protected Set<Edge> |
upstream
Set of upstream edges.
|
protected boolean |
upstreamInited
Flag to remember if upstream links were created.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractNode(Graph graph)
Constructor with the owner graph.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Resets the path sign.
|
Set<Node> |
getBanned() |
Collection<Edge> |
getDownstream()
Gets the downstream edges.
|
Collection<Edge> |
getDownstreamNoInit()
This class gets the downstream links but does not initialize.
|
Graph |
getGraph()
Every graph object should have an owner graph.
|
Collection<Node> |
getLowerEquivalent() |
int |
getPathSign() |
Collection<Node> |
getUpperEquivalent() |
Collection<Edge> |
getUpstream()
Gets the upstream edges.
|
Collection<Edge> |
getUpstreamNoInit()
This class gets the upstream links but does not initialize.
|
void |
init()
Does nothing yet.
|
void |
initBanned()
Initializes the set of banned nodes.
|
void |
initDownstream()
Initializes the downstream connections.
|
void |
initUpstream()
Initializes the upstream connections.
|
boolean |
isTranscription()
Nodes are not transcription by default.
|
void |
setBanned(Set<Node> banned) |
void |
setPathSign(int pathSign) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSign, isBreadthNode, isUbique
getKey
protected boolean upstreamInited
protected boolean downstreamInited
protected Set<Node> upperEquivalent
protected Set<Node> lowerEquivalent
protected Set<Edge> downstream
protected int pathSign
protected AbstractNode(Graph graph)
graph
- Owner graphpublic Graph getGraph()
GraphObject
getGraph
in interface GraphObject
public Set<Node> getBanned()
public void initBanned()
public Collection<Edge> getUpstream()
getUpstream
in interface Node
public Collection<Edge> getDownstream()
getDownstream
in interface Node
public void initUpstream()
public void initDownstream()
public Collection<Edge> getUpstreamNoInit()
public Collection<Edge> getDownstreamNoInit()
public Collection<Node> getUpperEquivalent()
getUpperEquivalent
in interface Node
public Collection<Node> getLowerEquivalent()
getLowerEquivalent
in interface Node
public int getPathSign()
public void setPathSign(int pathSign)
pathSign
- The path signpublic void clear()
clear
in interface GraphObject
public boolean isTranscription()
isTranscription
in interface Node
Copyright © 2015 BioPAX. All rights reserved.