git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now the component provides read-only access to the interfaces.
[utils]
/
trunk
/
system
/
general
/
src
/
main
/
java
/
org
/
wamblee
/
system
/
graph
/
Visitor.java
diff --git
a/trunk/system/general/src/main/java/org/wamblee/system/graph/Visitor.java
b/trunk/system/general/src/main/java/org/wamblee/system/graph/Visitor.java
index 9c3240e0a09f92abd85cdedd7ba7308ade6c141b..e65a535c062b4f6c656a1c25b555ad7c00462d89 100644
(file)
--- a/
trunk/system/general/src/main/java/org/wamblee/system/graph/Visitor.java
+++ b/
trunk/system/general/src/main/java/org/wamblee/system/graph/Visitor.java
@@
-15,9
+15,22
@@
*/
package org.wamblee.system.graph;
*/
package org.wamblee.system.graph;
+/**
+ * Visitor of a graph.
+ * @author Erik Brakkee.
+ *
+ */
public interface Visitor {
public interface Visitor {
+ /**
+ * Visits a node. Called by {@link Graph#accept(Visitor)}.
+ * @param aNode Node to visit.
+ */
void visitNode(Node aNode);
void visitNode(Node aNode);
+ /**
+ * Visits a node. Called by {@link Graph#accept(Visitor)}.
+ * @param aEdge Edge to visit.
+ */
void visitEdge(Edge aEdge);
}
void visitEdge(Edge aEdge);
}