public interface Node extends Serializable
FlowGraph
. A node can have a number of sucessors as well as it can accept
a NodeVisitor
for easy traversal of the graph in a visitor pattern.Modifier and Type | Method and Description |
---|---|
void |
accept(NodeVisitor n)
Accepts the given visitor
|
void |
addPredecessor(Node n) |
void |
addSucessor(Node n)
Adds a sucessor node to this node
|
Collection<Node> |
getPredecessors() |
Collection<Node> |
getSuccessors()
returns the collection of successors of this node
|
void |
removePredecessor(Node n) |
void |
removeSuccessor(Node n) |
void accept(NodeVisitor n)
n
- void addPredecessor(Node n)
void addSucessor(Node n)
n
- Collection<Node> getPredecessors()
Collection<Node> getSuccessors()
void removePredecessor(Node n)
void removeSuccessor(Node n)
Copyright © 2008-2013 Mathias Schwarz.