TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.hyades.analysis.engine
Interface ISymptomDatabase


public interface ISymptomDatabase

This interface is intended to be implemented by symptom database implementors. A symptom database contains a collection of known problems, called symptoms, their solutions and directives, i.e. actions to be taken to solve the occurred symptoms.


Method Summary
 java.lang.Object[] getDirectives(Incident incident)
          Returns the directives for this symptom database for the given incident.
 java.lang.String getPath()
          Returns the path of this symptom database.
 Solution[] getSolutions(Incident incident)
          Returns the solutions for this symptom database for the given incident.
 boolean load()
          Loads the symptom database into memory.
 boolean merge(java.lang.String path)
          Merges this symptom database with the symptom database given by its path.
 boolean replace(java.lang.String path)
          Change this symptom database's path to the given path.
 boolean unload()
          Unloads the symptom database from memory.
 

Method Detail

load

public boolean load()
Loads the symptom database into memory. Returning true if this was successfull.

Returns:
boolean

unload

public boolean unload()
Unloads the symptom database from memory. Returning true if this was successfull.

Returns:
boolean

replace

public boolean replace(java.lang.String path)
Change this symptom database's path to the given path. Returning true if this was successfull.

Parameters:
path - String
Returns:
boolean

merge

public boolean merge(java.lang.String path)
Merges this symptom database with the symptom database given by its path. Returning true if this was successfull.

Parameters:
path - String
Returns:
boolean

getPath

public java.lang.String getPath()
Returns the path of this symptom database.

Returns:
String

getDirectives

public java.lang.Object[] getDirectives(Incident incident)
Returns the directives for this symptom database for the given incident.

Parameters:
incident - Incident
Returns:
Object[] the directives

getSolutions

public Solution[] getSolutions(Incident incident)
Returns the solutions for this symptom database for the given incident.

Parameters:
incident - Incident
Returns:
Object[] the directives

TPTP 4.2.0 Platform Project
Public API Specification