Package jade.domain
Class DFKBFactory
- java.lang.Object
-
- jade.domain.DFKBFactory
-
public class DFKBFactory extends Object
TheDFKBFactoryclass creates knowledge base objects used by the DF.To run JADE with your own knowledge base implementation a new sub class of
DFKBFactory, overriding the appropriate method(s), has to be implemented and specified by the command line parameter-jade_domain_df_kb-factory.- Since:
- JADE 3.3
- Author:
- Roland Mungenast - Profactor
-
-
Constructor Summary
Constructors Constructor Description DFKBFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DBKBgetDFDBKB(int maxResultLimit, String driver, String url, String user, String passwd, boolean cleanTables)Returns the database based knowledge base which will be used by the DFprotected MemKBgetDFMemKB(int maxResultLimit)Returns the memory based knowledge base which will be used by the DF
-
-
-
Method Detail
-
getDFMemKB
protected MemKB getDFMemKB(int maxResultLimit)
Returns the memory based knowledge base which will be used by the DF- Parameters:
maxResultLimit- internal limit for the maximum number of search results
-
getDFDBKB
protected DBKB getDFDBKB(int maxResultLimit, String driver, String url, String user, String passwd, boolean cleanTables) throws SQLException
Returns the database based knowledge base which will be used by the DF- Parameters:
maxResultLimit- JADE internal limit for the maximum number of search resultsdriver- database driverurl- database urluser- user for the database accesspasswd- password for the database accesscleanTables- specifies whether the KB should delete all existing tables for the DF at startup- Throws:
SQLException- if the database cannot be initialized
-
-