// Path: src/main/java/org/semanticweb/owl/explanation/impl/blackbox/EntailmentCheckerFactory.java
// public interface EntailmentCheckerFactory<E> {
// 
//     EntailmentChecker<E> createEntailementChecker(E entailment);
// }
// 
// Path: src/main/java/org/semanticweb/owl/explanation/impl/blackbox/EntailmentChecker.java
// public interface EntailmentChecker<E> {
// 
//     int getCounter();
// 
//     void resetCounter();
// 
//     E getEntailment();
// 
//     Set<OWLEntity> getEntailmentSignature();
// 
//     Set<OWLEntity> getSeedSignature();
// 
//     boolean isEntailed(Set<OWLAxiom> axiom);
// 
//     Set<OWLAxiom> getEntailingAxioms(Set<OWLAxiom> axioms);
// 
//     Set<OWLAxiom> getModule(Set<OWLAxiom> axioms);
// 
//     String getModularisationTypeDescription();
// 
//     boolean isUseModularisation();
// }


import org.semanticweb.owl.explanation.impl.blackbox.EntailmentCheckerFactory;
import org.semanticweb.owl.explanation.impl.blackbox.EntailmentChecker;
import org.semanticweb.owlapi.reasoner.OWLReasonerFactory;
import org.semanticweb.owlapi.model.OWLAxiom;
package org.semanticweb.owl.explanation.impl.blackbox.checker;

/*
 * Copyright (C) 2009, University of Manchester
 *
 * Modifications to the initial code base are copyright of their
 * respective authors, or their employers as appropriate.  Authorship
 * of the modifications may be determined from the ChangeLog placed at
 * the end of this file.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

/**
 * Author: Matthew Horridge<br>
 * The University of Manchester<br>
 * Information Management Group<br>
 * Date: 01-May-2009
 */
public class ConsistencyEntailmentCheckerFactory implements EntailmentCheckerFactory<OWLAxiom> {

    private OWLReasonerFactory reasonerFactory;

    private long timeout = Long.MAX_VALUE;


//    public ConsistencyEntailmentCheckerFactory(OWLReasonerFactory reasonerFactory) {
//        this(reasonerFactory, Long.MAX_VALUE);
//    }

    public ConsistencyEntailmentCheckerFactory(OWLReasonerFactory reasonerFactory, long timeout) {
        this.reasonerFactory = reasonerFactory;
        this.timeout = timeout;
    }

// Path: src/main/java/org/semanticweb/owl/explanation/impl/blackbox/EntailmentCheckerFactory.java
// public interface EntailmentCheckerFactory<E> {
// 
//     EntailmentChecker<E> createEntailementChecker(E entailment);
// }
// 
// Path: src/main/java/org/semanticweb/owl/explanation/impl/blackbox/EntailmentChecker.java
// public interface EntailmentChecker<E> {
// 
//     int getCounter();
// 
//     void resetCounter();
// 
//     E getEntailment();
// 
//     Set<OWLEntity> getEntailmentSignature();
// 
//     Set<OWLEntity> getSeedSignature();
// 
//     boolean isEntailed(Set<OWLAxiom> axiom);
// 
//     Set<OWLAxiom> getEntailingAxioms(Set<OWLAxiom> axioms);
// 
//     Set<OWLAxiom> getModule(Set<OWLAxiom> axioms);
// 
//     String getModularisationTypeDescription();
// 
//     boolean isUseModularisation();
// }


// Path: src/main/java/org/semanticweb/owl/explanation/impl/blackbox/checker/ConsistencyEntailmentCheckerFactory.java
import org.semanticweb.owl.explanation.impl.blackbox.EntailmentCheckerFactory;
import org.semanticweb.owl.explanation.impl.blackbox.EntailmentChecker;
import org.semanticweb.owlapi.reasoner.OWLReasonerFactory;
import org.semanticweb.owlapi.model.OWLAxiom;

package org.semanticweb.owl.explanation.impl.blackbox.checker;

/*
 * Copyright (C) 2009, University of Manchester
 *
 * Modifications to the initial code base are copyright of their
 * respective authors, or their employers as appropriate.  Authorship
 * of the modifications may be determined from the ChangeLog placed at
 * the end of this file.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

/**
 * Author: Matthew Horridge<br>
 * The University of Manchester<br>
 * Information Management Group<br>
 * Date: 01-May-2009
 */
public class ConsistencyEntailmentCheckerFactory implements EntailmentCheckerFactory<OWLAxiom> {

    private OWLReasonerFactory reasonerFactory;

    private long timeout = Long.MAX_VALUE;


//    public ConsistencyEntailmentCheckerFactory(OWLReasonerFactory reasonerFactory) {
//        this(reasonerFactory, Long.MAX_VALUE);
//    }

    public ConsistencyEntailmentCheckerFactory(OWLReasonerFactory reasonerFactory, long timeout) {
        this.reasonerFactory = reasonerFactory;
        this.timeout = timeout;
    }

    public EntailmentChecker<OWLAxiom> createEntailementChecker(OWLAxiom entailment) {