|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface intended to be implemented by analysis engines based on an XML symptom database.
| Method Summary | |
|---|---|
java.lang.Object[] |
analyze(Incident incident)
The current symptom database is searched for Incident
matches.
|
Solution[] |
analyzeForSolutions(Incident incident)
The current symptom database is searched for Incident
matches.
|
java.lang.String |
getSymptomDatabasePath()
Returns the XML file path of the base symptom database. |
boolean |
mergeSymptomDatabase(java.lang.String symptomDbPath)
Loads a new symptom database XML file denoted by the parameter path and merges any unique records with the base symptom database. |
boolean |
reloadSymptomDatabase()
Reloads the base symptom database from the base XML file. |
boolean |
removeSymptomDatabase()
Removes the base symptom database. |
boolean |
replaceSymptomDatabase(java.lang.String symptomDbPath)
A new symptom database is created denoted by the parameter XML file path. |
| Method Detail |
public boolean reloadSymptomDatabase()
public boolean mergeSymptomDatabase(java.lang.String symptomDbPath)
symptomDbPath - the path to the merged symptom database XML file
public boolean removeSymptomDatabase()
NOTE: A base symptom database may be added using
replaceSymptomDatabase(symptomDbPath).
public boolean replaceSymptomDatabase(java.lang.String symptomDbPath)
If the new symptom database XML file was successfully loaded, it replaces the base symptom database.
symptomDbPath - the path to the symptom database XML file
public java.lang.String getSymptomDatabasePath()
If no base symptom database XML file is loaded, null is returned.
public java.lang.Object[] analyze(Incident incident)
Incident
matches.
All Directive(s) from successful Incident
matches are returned in an array structure.
Incident matches are based on a lexicographical String
comparison between the messageId and rawData
array in the parameter Incident and the value
attribute of the matchPattern Node in the base symptom
database.
incident - the search criteria used for possible matches
Directive from successful Incident matchesObject,
Incidentpublic Solution[] analyzeForSolutions(Incident incident)
Incident
matches.
All Solution(s) from successful Incident
matches are returned in an array structure.
Incident matches are based on a lexicographical String
comparison between the messageId and rawData
array in the parameter Incident and the value
attribute of the matchPattern Node in the base symptom
database.
incident - the search criteria used for possible matches
Solution from successful Incident matchesSolution,
Incident
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||