Package de.fzi.herakles.commons.reasoner

Examples of de.fzi.herakles.commons.reasoner.NoReasonerException


    // check, which reasoners are available initially
    Set<ReasonerAdapter> availableReasoners = registry.getAsSet( true , true);
    int reasonersTried = availableReasoners.size();

    if( availableReasoners.isEmpty() )
      throw new NoReasonerException( "No reasoner available." );
    try {
      // first do the same as in the BasicPStrategy
      super.execute(query, result);
      return;
    } catch( HeraklesException e ) {
View Full Code Here


      if(logger.isTraceEnabled()){
        logger.trace( it.next().getRemoteName() + " available." );
      }
   
    if( availableReasoners.isEmpty() )
      throw new NoReasonerException( "No reasoner available." );

//    setProgressor();
//    this.progressor.setReasoners( availableReasoners );
//    this.progressor.setReasonerProgressMonitor(this.monitor); 
   
View Full Code Here

      throws NoReasonerException {

    ReasonerRegistry registry = HeraklesManager.getReasonerRegistry();

    if( reasonerThreads == null )
      throw new NoReasonerException( "Cannot start any threads, set of reasoners was empty." );

    if(logger.isDebugEnabled()){
      logger.debug( "Created " + reasonerThreads.length + " thread(s)." );
    }
View Full Code Here

    Set<ReasonerAdapter> possiblyAvailableReasoners = this.registry.getAsSet( false, true );
    Set<ReasonerAdapter> availableReasoners = this.registry.getAsSet( true, true );
   
    if( possiblyAvailableReasoners.isEmpty() )
      throw new NoReasonerException( "No reasoner available." );

    this.paralleliser.setTask(query);
   
    // set selection criteria
    if( query.getTask() == "hasType" || query.getTask() == "getTypes" ) {
View Full Code Here

    if(logger.isDebugEnabled()){
      logger.debug( "Executing " + query.getTask() + " ..." );
    }
   
    if( availableReasoners.isEmpty() )
      throw new NoReasonerException( "No reasoner available." );

    // Simple cache implementation (watch out! this is just a hack.
    // the cache will never be invalidated, once filled it doesn't react on ontology changes!)
    // TODO implement a working cache or at least remove this crap!
    String paramuris = "";
View Full Code Here

TOP

Related Classes of de.fzi.herakles.commons.reasoner.NoReasonerException

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.