Package urban.shapes.RuleGraph

Examples of urban.shapes.RuleGraph.WithHash


    Set<WithHash> next = new HashSet<WithHash>();
    Set<WithHash> mergedRules = new HashSet<WithHash>();
   
    Iterator<WithHash> iterator = rules.iterator();
    while(iterator.hasNext()){
      WithHash r = iterator.next();
      iterator.remove();
      for(WithHash r2 : rules){
        RuleGraph merged = new RuleMerger(r.getRuleGraph(), r2.getRuleGraph()).merge();
        if (merged != null){
          next.add(merged.withHash());
          mergedRules.add(r);
          mergedRules.add(r2);
        }
      }
      if (!mergedRules.contains(r)){
        if (!r.getRuleGraph().hasSymmetricalBond() || !list.contains(r.getRuleGraph().getMirror().withHash()))
          list.add(r);
      }
    }
   
    return next;
View Full Code Here

TOP

Related Classes of urban.shapes.RuleGraph.WithHash

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.