/*
- * Copyright 2008 the original author or authors.
+ * Copyright 2005-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
package org.wamblee.system.graph;
+/**
+ * Visitor of a graph.
+ *
+ * @author Erik Brakkee.
+ *
+ */
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);
-
- void visitEdge(Edge aEdge);
+ /**
+ * Visits a node. Called by {@link Graph#accept(Visitor)}.
+ *
+ * @param aEdge
+ * Edge to visit.
+ */
+ void visitEdge(Edge aEdge);
}