Public Member Functions | Protected Attributes
ATPInterface.LogicalDB Class Reference
Inheritance diagram for ATPInterface.LogicalDB:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 50 of file LogicalDB.java.


Constructor & Destructor Documentation

Definition at line 86 of file LogicalDB.java.


Member Function Documentation

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.

Parameters:
verboseOutputIf true, then all rules (and maybe other data) are printed to stdout.

Implements ATPInterface.LogicalDBInterface.

Definition at line 227 of file LogicalDB.java.

Implements ATPInterface.LogicalDBInterface.

Definition at line 385 of file LogicalDB.java.

Creates a collection of SubDBStat objects stating informations about this DB.

Implements ATPInterface.LogicalDBInterface.

Definition at line 362 of file LogicalDB.java.

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.

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.


Member Data Documentation

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.

Definition at line 80 of file LogicalDB.java.

ArrayList ATPInterface.LogicalDB.explanations [protected]

Definition at line 70 of file LogicalDB.java.

Definition at line 62 of file LogicalDB.java.

Definition at line 64 of file LogicalDB.java.

Definition at line 58 of file LogicalDB.java.

Definition at line 60 of file LogicalDB.java.

Definition at line 56 of file LogicalDB.java.

Definition at line 54 of file LogicalDB.java.

TreeMap ATPInterface.LogicalDB.subDBs [protected]

Definition at line 75 of file LogicalDB.java.

Definition at line 78 of file LogicalDB.java.


The documentation for this class was generated from the following file:


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