(no commit message)
[utils] / system / general / src / main / java / org / wamblee / system / graph / component / ApplyRestrictionsVisitor.java
index 8213bb8bffcd14cfe4e439a4f4920828f191ad94..72cbc273807cf4f6c4449c515b9f97653a7022c5 100644 (file)
@@ -24,11 +24,22 @@ import org.wamblee.system.graph.Graph;
 import org.wamblee.system.graph.Node;
 import org.wamblee.system.graph.Visitor;
 
+/**
+ * Applies restrictions on a graph by removing all edges that violate the restriction. 
+ * 
+ * @author Erik Brakkee. 
+ *
+ */
 public class ApplyRestrictionsVisitor implements Visitor {
     
     private Graph _graph; 
     private InterfaceRestriction _restriction; 
-    
+
+    /**
+     * Constructs the visitor. 
+     * @param aGraph Graph. 
+     * @param aRestriction Restriction. 
+     */
     public ApplyRestrictionsVisitor(Graph aGraph, InterfaceRestriction aRestriction) { 
         _graph = aGraph; 
         _restriction = aRestriction;