updated coding rules.
[utils] / system / general / src / main / java / org / wamblee / system / graph / component / CheckExternallyProvidedVisitor.java
index ef5ea4fb7f024eb459db599b97f2e7ee8ade63e8..b63a03b55db8ea863d375ea78eed0095a6f5f5f0 100644 (file)
@@ -24,20 +24,22 @@ import org.wamblee.system.graph.Node;
 import org.wamblee.system.graph.Visitor;
 
 /**
- * Visitor that checks externally provided
- * <ul>
- *   <li>
- * </ul>
+ * Visitor that checks whether all externally provided interfaces are actually provided 
+ * by any of the internal components. 
  * 
  * @author Erik Brakkee
  *
  */
 public class CheckExternallyProvidedVisitor implements Visitor {
     
-    private Graph _graph; 
-    
+    private Graph graph; 
+
+    /**
+     * Constructs the visitor. 
+     * @param aGraph Component graph. 
+     */
     public CheckExternallyProvidedVisitor(Graph aGraph) { 
-        _graph = aGraph; 
+        graph = aGraph; 
     }
 
     @Override
@@ -49,7 +51,7 @@ public class CheckExternallyProvidedVisitor implements Visitor {
     public void visitNode(Node aNode) {
         if ( aNode instanceof ExternalProvidedInterfaceNode) { 
             ExternalProvidedInterfaceNode provided = (ExternalProvidedInterfaceNode) aNode; 
-            List<Edge> edges = _graph.findOutgoing(provided);
+            List<Edge> edges = graph.findOutgoing(provided);
             if ( edges.size() > 2 ) { 
                 createDuplicateException("External provided interfaces has multiple internal matches", aNode, edges);
             }