protected void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
protected void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
private void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
private void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
private void checkForInterrupt() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
protected void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
protected void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
protected void throwExceptionIfInterrupted() { if (interrupted) { interrupted = false; throw new ReasonerInterruptedException(); } }
public ReasonerInterruptedException convert(ElkInterruptedException e) { return new ReasonerInterruptedException((ElkInterruptedException) e); }
public ReasonerInterruptedException convert(ElkInterruptedException e) { return new ReasonerInterruptedException((ElkInterruptedException) e); }
public ReasonerInterruptedException convert(ElkInterruptedException e) { return new ReasonerInterruptedException((ElkInterruptedException) e); }
public void checkInterrupt() { InterruptType interruptType=m_interruptType; if (interruptType!=null) { if (interruptType==InterruptType.TIMEOUT) throw new TimeOutException(); else throw new ReasonerInterruptedException(); } } public void interrupt() {
/**Check interrupt.*/ public void checkInterrupt() { InterruptType interruptType=m_interruptType; if (interruptType!=null) { if (interruptType==InterruptType.TIMEOUT) throw new TimeOutException(); else throw new ReasonerInterruptedException(); } } /**Interrupt.*/
/** * * @throws ReasonerInterruptedException * if the reasoner is in the interrupted state, throws */ private void checkInterrupted() throws ReasonerInterruptedException { try { reasoner_.checkInterrupt(); } catch (final ElkInterruptedException e) { throw new ReasonerInterruptedException(e); } }
/** * * @throws ReasonerInterruptedException * if the reasoner is in the interrupted state, throws */ private void checkInterrupted() throws ReasonerInterruptedException { try { reasoner_.checkInterrupt(); } catch (final ElkInterruptedException e) { throw new ReasonerInterruptedException(e); } }
/** * * @throws ReasonerInterruptedException * if the reasoner is in the interrupted state, throws */ private void checkInterrupted() throws ReasonerInterruptedException { try { reasoner_.checkInterrupt(); } catch (final ElkInterruptedException e) { throw new ReasonerInterruptedException(e); } }
private void checkConsistency() { if (interrupted.get()) { throw new ReasonerInterruptedException(); } if (!isConsistent()) { throw new InconsistentOntologyException(); } }
@Override public boolean isConsistent() throws ReasonerInterruptedException, TimeOutException { try { return isDisjointAxiomsConsistent() && isFunctionalPropertyAxiomsConsistent(); } catch (OWLException e) { throw new ReasonerInterruptedException(e); } }
private static PelletRuntimeException convert(final PelletRuntimeException e) throws InconsistentOntologyException, ReasonerInterruptedException, TimeOutException, FreshEntitiesException { if (e instanceof openllet.core.exceptions.TimeoutException) throw new TimeOutException(); if (e instanceof openllet.core.exceptions.TimerInterruptedException) throw new ReasonerInterruptedException(e); if (e instanceof openllet.core.exceptions.InconsistentOntologyException) throw new InconsistentOntologyException(); if (e instanceof openllet.core.exceptions.UndefinedEntityException) { final Set<OWLEntity> unknown = Collections.emptySet(); throw new FreshEntitiesException(unknown); } return e; }
private static PelletRuntimeException convert(final PelletRuntimeException e) throws InconsistentOntologyException, ReasonerInterruptedException, TimeOutException, FreshEntitiesException { if (e instanceof openllet.core.exceptions.TimeoutException) throw new TimeOutException(); if (e instanceof openllet.core.exceptions.TimerInterruptedException) throw new ReasonerInterruptedException(e); if (e instanceof openllet.core.exceptions.InconsistentOntologyException) throw new InconsistentOntologyException(); if (e instanceof openllet.core.exceptions.UndefinedEntityException) { final Set<OWLEntity> unknown = Collections.emptySet(); throw new FreshEntitiesException(unknown); } return e; }