Package de.fzi.herakles.strategy.impl.anytime

Examples of de.fzi.herakles.strategy.impl.anytime.AnytimeResult


                return;
            }
            ArrayList<Object> results = new ArrayList<Object>();

            while (results.size() < reasonerNumber) {
                AnytimeResult result = pool.readData();
                if (result != null) {
                    results.add(result);
                    setData(result.getReasoner(), (Set<OWLNamedIndividual>) result.getAnswer());
                    if(logger.isInfoEnabled()){
                      logger.info(result.getReasoner() + "finished with "
                                + ((HashSet) result.getAnswer()).size() + " results.");
                    }
                }
            }
            this.listener.resultCompleted();
            if(logger.isInfoEnabled()){
View Full Code Here


    int reasonerNumber = 2;
    ArrayList<Object> results = new ArrayList<Object>();

    while (results.size() < reasonerNumber) {
      AnytimeResult result = pool.readData();
      if (result != null) {
        results.add(result);
        setData(result.getReasoner(), (Set<OWLNamedIndividual>) result
            .getAnswer());
        System.out.println(result.getReasoner() + ": "
            + ((HashSet) result.getAnswer()).size() + " finished!");
      }
    }
    this.listener.resultCompleted();
    System.out.println("All screech Finished!!! " + results.size());
  }
View Full Code Here

    int reasonerNumber = 2;
    ArrayList<Object> results = new ArrayList<Object>();

    while (results.size() < reasonerNumber) {
      AnytimeResult result = pool.readData();
      if (result != null) {
        results.add(result);
        setData(result.getReasoner(), (Set<OWLNamedIndividual>) result
            .getAnswer());
        System.out.println(result.getReasoner() + ": "
            + ((HashSet) result.getAnswer()).size() + " finished!");
      }
    }
    this.listener.resultCompleted();
    System.out.println("All screech Finished!!! " + results.size() + " V1.0");
  }
View Full Code Here


    ArrayList<Object> results = new ArrayList<Object>();
   
    while (results.size() < reasonerNumber) {
      AnytimeResult result = pool.readData();
      if(result!=null) {
        results.add(result);
        setData(result.getReasoner(),(Set<OWLNamedIndividual>)result.getAnswer());
        System.out.println(result.getReasoner() + ": " + ((HashSet)result.getAnswer()).size()+" finished!");
      }
    }
    this.listener.resultCompleted();
    System.out.println("All reasoners finished!!! "+ results.size());   
    
View Full Code Here

TOP

Related Classes of de.fzi.herakles.strategy.impl.anytime.AnytimeResult

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.