Public Member Functions | |
int | addFDGEdges (ArrayList edgeStrings, boolean replace) throws LogicParseException |
int | addRules (String subDB, boolean replace, ArrayList newRules) throws LogicParseException |
boolean | checkConsistency (boolean useFaultModes) throws LogicParseException |
ArrayList | computeDEs (int maxExplSize, int maxNumExpl, boolean computeBetaDE, int maxDFChainSize, boolean mergeDEs, boolean discardOrderPerms, ArrayList minDiags) throws LogicParseException, IllegalAssumption |
ArrayList | computeMinDiag (int maxExplSize, int maxNumExpl, boolean useFaultModes, boolean verboseOutput) throws LogicParseException, IllegalAssumption |
FDGStat | createFDGStats () |
ArrayList | createSubDBStats () |
int | getNumSubDBs () |
int | getSubDBNumRules (String name) |
ArrayList | getSubDBRules (String name) |
int | getTotalNumRules () |
LogicalDB () | |
void | performConsistencyChecks (ArrayList queries, boolean useFaultModes, BitSet result) throws LogicParseException |
Protected Attributes | |
boolean | changed |
boolean | consistent |
ArrayList | diagEnvs |
DiagnosisProblem | diagProblem |
ArrayList | explanations |
boolean | lastComputeBetaDE |
int | lastMaxDFChainSize = -1 |
int | lastMaxExplSize = -1 |
int | lastMaxNumExpl = -1 |
boolean | lastMergeDEs |
boolean | lastUseFaultModes |
TreeMap | subDBs |
LogicalSubDB | totalDB |
Definition at line 50 of file LogicalDB.java.
ATPInterface.LogicalDB.LogicalDB | ( | ) | [inline] |
Definition at line 86 of file LogicalDB.java.
int ATPInterface.LogicalDB.addFDGEdges | ( | ArrayList | edgeStrings, |
boolean | replace | ||
) | throws LogicParseException [inline] |
The edges are represented by strings like "C1 => C2".
Returns the total number of edges in the FDG.
Implements ATPInterface.LogicalDBInterface.
Definition at line 115 of file LogicalDB.java.
int ATPInterface.LogicalDB.addRules | ( | String | subDB, |
boolean | replace, | ||
ArrayList | newRules | ||
) | throws LogicParseException [inline] |
Add rules, which are passed as a collection of strings, to a logical sub-database.
There are 3 logical sub-databases: for SD, OBS, and SDD. The new rules are added to it or, if "replace" is "false", then the new rules replace the old ones.
Implements ATPInterface.LogicalDBInterface.
Definition at line 101 of file LogicalDB.java.
boolean ATPInterface.LogicalDB.checkConsistency | ( | boolean | useFaultModes | ) | throws LogicParseException [inline] |
Check the consistency of the entire database.
Note that the implementor if this interface may cache computed values and re-use them if the database has not changed since the last call.
The two string parameters are only used when useFaultModes = true.
Implements ATPInterface.LogicalDBInterface.
Definition at line 154 of file LogicalDB.java.
ArrayList ATPInterface.LogicalDB.computeDEs | ( | int | maxExplSize, |
int | maxNumExpl, | ||
boolean | computeBetaDE, | ||
int | maxDFChainSize, | ||
boolean | mergeDEs, | ||
boolean | discardOrderPerms, | ||
ArrayList | minDiags | ||
) | throws LogicParseException, IllegalAssumption [inline] |
Computes the diagnosis environments.
The DEs are returned as strings. The computed min. diagnoses are returned as strings in minDiags.
Implements ATPInterface.LogicalDBInterface.
Definition at line 249 of file LogicalDB.java.
ArrayList ATPInterface.LogicalDB.computeMinDiag | ( | int | maxExplSize, |
int | maxNumExpl, | ||
boolean | useFaultModes, | ||
boolean | verboseOutput | ||
) | throws LogicParseException, IllegalAssumption [inline] |
Checks the consistency of the database and return the explanations, if there are any.
The method checkConsistency() does not need to be called before.
Note that the implementor if this interface may cache computed values and re-use them if the database has not changed since the last call.
The two string parameters are only used when useFaultModes = true.
verboseOutput | If true, then all rules (and maybe other data) are printed to stdout. |
Implements ATPInterface.LogicalDBInterface.
Definition at line 227 of file LogicalDB.java.
FDGStat ATPInterface.LogicalDB.createFDGStats | ( | ) | [inline] |
Implements ATPInterface.LogicalDBInterface.
Definition at line 385 of file LogicalDB.java.
ArrayList ATPInterface.LogicalDB.createSubDBStats | ( | ) | [inline] |
Creates a collection of SubDBStat objects stating informations about this DB.
Implements ATPInterface.LogicalDBInterface.
Definition at line 362 of file LogicalDB.java.
int ATPInterface.LogicalDB.getNumSubDBs | ( | ) | [inline] |
Definition at line 147 of file LogicalDB.java.
int ATPInterface.LogicalDB.getSubDBNumRules | ( | String | subDB | ) | [inline] |
Returns the number of rules of the sub-database whose name ("SD", "OBS", "SDD") is passed, may be 0.
Implements ATPInterface.LogicalDBInterface.
Definition at line 355 of file LogicalDB.java.
ArrayList ATPInterface.LogicalDB.getSubDBRules | ( | String | name | ) | [inline] |
Returns the rules of the sub-database whose name is passed, may be empty.
Implements ATPInterface.LogicalDBInterface.
Definition at line 378 of file LogicalDB.java.
int ATPInterface.LogicalDB.getTotalNumRules | ( | ) | [inline] |
Return the total number of rules in this database.
Implements ATPInterface.LogicalDBInterface.
Definition at line 341 of file LogicalDB.java.
void ATPInterface.LogicalDB.performConsistencyChecks | ( | ArrayList | queries, |
boolean | useFaultModes, | ||
BitSet | result | ||
) | throws LogicParseException [inline] |
Implements ATPInterface.LogicalDBInterface.
Definition at line 187 of file LogicalDB.java.
boolean ATPInterface.LogicalDB.changed [protected] |
Definition at line 52 of file LogicalDB.java.
boolean ATPInterface.LogicalDB.consistent [protected] |
Definition at line 67 of file LogicalDB.java.
ArrayList ATPInterface.LogicalDB.diagEnvs [protected] |
Definition at line 73 of file LogicalDB.java.
DiagnosisProblem ATPInterface.LogicalDB.diagProblem [protected] |
Definition at line 80 of file LogicalDB.java.
ArrayList ATPInterface.LogicalDB.explanations [protected] |
Definition at line 70 of file LogicalDB.java.
boolean ATPInterface.LogicalDB.lastComputeBetaDE [protected] |
Definition at line 62 of file LogicalDB.java.
int ATPInterface.LogicalDB.lastMaxDFChainSize = -1 [protected] |
Definition at line 64 of file LogicalDB.java.
int ATPInterface.LogicalDB.lastMaxExplSize = -1 [protected] |
Definition at line 58 of file LogicalDB.java.
int ATPInterface.LogicalDB.lastMaxNumExpl = -1 [protected] |
Definition at line 60 of file LogicalDB.java.
boolean ATPInterface.LogicalDB.lastMergeDEs [protected] |
Definition at line 56 of file LogicalDB.java.
boolean ATPInterface.LogicalDB.lastUseFaultModes [protected] |
Definition at line 54 of file LogicalDB.java.
TreeMap ATPInterface.LogicalDB.subDBs [protected] |
Definition at line 75 of file LogicalDB.java.
LogicalSubDB ATPInterface.LogicalDB.totalDB [protected] |
Definition at line 78 of file LogicalDB.java.