LogicalDBInterface.java
Go to the documentation of this file.
00001 /*
00002  * (c) copyright 2008, Technische Universitaet Graz and Technische Universitaet Wien
00003  *
00004  * This file is part of jdiagengine.
00005  *
00006  * jdiagengine is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * jdiagengine is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * You should have received a copy of the GNU General Public License
00016  * along with jdiagengine. If not, see <http://www.gnu.org/licenses/>.
00017  *
00018  * Authors: Joerg Weber, Franz Wotawa
00019  * Contact: jweber@ist.tugraz.at (preferred), or fwotawa@ist.tugraz.at
00020  *
00021  */
00022 
00023 
00024 package ATPInterface;
00025 
00026 import java.util.ArrayList;
00027 import java.util.BitSet;
00028 
00029 import theoremprover.IllegalAssumption;
00030 
00040 public interface LogicalDBInterface {
00041 
00048     int addRules(String subDB, boolean replace, ArrayList newRules) 
00049         throws LogicParseException;
00050 
00056     int addFDGEdges(ArrayList edgeStrings, boolean replace) throws LogicParseException;
00057 
00066     boolean checkConsistency(boolean useFaultModes)
00067         throws LogicParseException;
00068 
00069     /*
00070      * Queries is a list of strings representing propositions. For each query q,
00071      * this method checks separately if "SD |_| OBS |_| {-ab(c) | c in COMP} |_| q"
00072      * holds (i.e., if q is consistent with all the other sentences).
00073      *
00074      * For any query q at index i in queries, the value of bit i in the BitSet result indicates
00075      * whether q is entailed.
00076      */
00077     void performConsistencyChecks(ArrayList queries, boolean useFaultModes, BitSet result)
00078         throws LogicParseException;
00079 
00092     ArrayList computeMinDiag(int maxExplSize, int maxNumExpl,
00093                              boolean useFaultModes, boolean verboseOutput)
00094         throws LogicParseException, IllegalAssumption;
00095 
00102     ArrayList computeDEs(int maxExplSize, int maxNumExpl,
00103                          boolean computeBetaDE, int maxDFChainSize, boolean mergeDEs,
00104                          boolean discardOrderPerms, ArrayList minDiags)
00105         throws LogicParseException, IllegalAssumption;
00106     
00110     int getTotalNumRules();
00111 
00115     int getSubDBNumRules(String subDB);
00116     
00120     ArrayList createSubDBStats();
00121 
00125     ArrayList getSubDBRules(String name);
00126 
00127     /*
00128      * Returns statistical data on the Failure Dep. Graph.
00129      */
00130     public FDGStat createFDGStats();
00131 }


tug_ist_diagnosis_engine
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:16