Package org.ggp.base.util.propnet.architecture

Examples of org.ggp.base.util.propnet.architecture.Component


    for(Set<Proposition> goalProps : pn.getGoalPropositions().values())
      toAdd.addAll(goalProps);
    for(Set<Proposition> legalProps : pn.getLegalPropositions().values())
      toAdd.addAll(legalProps);
    while(!toAdd.isEmpty()) {
      Component curComp = toAdd.pop();
      if(usefulComponents.contains(curComp))
        //We've already added it
        continue;
      usefulComponents.add(curComp);
      toAdd.addAll(curComp.getInputs());
    }

    //Remove the components not marked as useful
    List<Component> allComponents = new ArrayList<Component>(pn.getComponents());
    for(Component c : allComponents) {
View Full Code Here

TOP

Related Classes of org.ggp.base.util.propnet.architecture.Component

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.