X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fgraph%2Fcomponent%2FApplyRestrictionsVisitor.java;h=72cbc273807cf4f6c4449c515b9f97653a7022c5;hb=9bc96feb1a8b20fdb87edbfca54297e206229112;hp=8213bb8bffcd14cfe4e439a4f4920828f191ad94;hpb=c0f5e2d0fdc8b7544652c1d92248717c086caaf6;p=utils diff --git a/system/general/src/main/java/org/wamblee/system/graph/component/ApplyRestrictionsVisitor.java b/system/general/src/main/java/org/wamblee/system/graph/component/ApplyRestrictionsVisitor.java index 8213bb8b..72cbc273 100644 --- a/system/general/src/main/java/org/wamblee/system/graph/component/ApplyRestrictionsVisitor.java +++ b/system/general/src/main/java/org/wamblee/system/graph/component/ApplyRestrictionsVisitor.java @@ -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;