@Override public boolean existType(final List<ATermAppl> inds, final ATermAppl cParam) { final ATermAppl c = ATermUtils.normalize(cParam); _logger.fine(() -> "Checking type " + ATermUtils.toString(c) + " for individuals " + inds.size()); final ATermAppl notC = ATermUtils.negate(c); final boolean isType = !isConsistent(inds, notC, false); _logger.fine(() -> "Type " + isType + " " + ATermUtils.toString(c) + " for individuals " + inds.size()); return isType; }
@Override public boolean existType(final List<ATermAppl> inds, final ATermAppl cParam) { final ATermAppl c = ATermUtils.normalize(cParam); _logger.fine(() -> "Checking type " + ATermUtils.toString(c) + " for individuals " + inds.size()); final ATermAppl notC = ATermUtils.negate(c); final boolean isType = !isConsistent(inds, notC, false); _logger.fine(() -> "Type " + isType + " " + ATermUtils.toString(c) + " for individuals " + inds.size()); return isType; }
/** * @return true if this ABox is consistent. Consistent ABox means after applying all the tableau completion rules at least one _branch with no clashes was * found */ @Override public boolean isConsistent() { boolean isConsistent = false; checkAssertedClashes(); isConsistent = isConsistent(Collections.emptySet(), null, false); if (isConsistent) { // put the BOTTOM concept into the _cache which will // also put TOP in there _cache.putSat(ATermUtils.BOTTOM, false); assert isComplete() : "ABox not marked complete!"; } return isConsistent; }
/** * @return true if this ABox is consistent. Consistent ABox means after applying all the tableau completion rules at least one _branch with no clashes was * found */ @Override public boolean isConsistent() { boolean isConsistent = false; checkAssertedClashes(); isConsistent = isConsistent(Collections.emptySet(), null, false); if (isConsistent) { // put the BOTTOM concept into the _cache which will // also put TOP in there _cache.putSat(ATermUtils.BOTTOM, false); assert isComplete() : "ABox not marked complete!"; } return isConsistent; }
final boolean isSat = isConsistent(Collections.emptySet(), c, cacheModel); timer.ifPresent(t -> t.stop());
final boolean isSat = isConsistent(Collections.emptySet(), c, cacheModel); timer.ifPresent(t -> t.stop());
final boolean isType = !isConsistent(SetUtils.singleton(x), notC, false); timer.ifPresent(Timer::stop);
final boolean isType = !isConsistent(SetUtils.singleton(x), notC, false); timer.ifPresent(Timer::stop);