Package org.iosgi.engine

Examples of org.iosgi.engine.Operation


  }

  void optimize(List<Operation> ops) {
    Set<Operation> subsumed = new HashSet<Operation>();
    for (int i = 0; i < ops.size(); i++) {
      Operation op = ops.get(i);
      for (int j = 0; j < i; j++) {
        Operation c = ops.get(j);
        if (!subsumed.contains(c) && op.subsumes(c))
          subsumed.add(c);
      }
    }
    int sc = 0;
    for (Iterator<Operation> it = ops.iterator(); it.hasNext();) {
      Operation op = it.next();
      if (subsumed.contains(op)) {
        it.remove();
        sc++;
      }
    }
View Full Code Here

TOP

Related Classes of org.iosgi.engine.Operation

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.