jade.domain
Class DFKBFactory

java.lang.Object
  extended by jade.domain.DFKBFactory

public class DFKBFactory
extends java.lang.Object

The DFKBFactory class 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
DFKBFactory()
           
 
Method Summary
protected  jade.domain.KBManagement.DBKB getDFDBKB(int maxResultLimit, java.lang.String driver, java.lang.String url, java.lang.String user, java.lang.String passwd, boolean cleanTables)
          Returns the database based knowledge base which will be used by the DF
protected  jade.domain.KBManagement.MemKB getDFMemKB(int maxResultLimit)
          Returns the memory based knowledge base which will be used by the DF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DFKBFactory

public DFKBFactory()
Method Detail

getDFMemKB

protected jade.domain.KBManagement.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 jade.domain.KBManagement.DBKB getDFDBKB(int maxResultLimit,
                                                  java.lang.String driver,
                                                  java.lang.String url,
                                                  java.lang.String user,
                                                  java.lang.String passwd,
                                                  boolean cleanTables)
                                           throws java.sql.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 results
driver - database driver
url - database url
user - user for the database access
passwd - password for the database access
cleanTables - specifies whether the KB should delete all existing tables for the DF at startup
Throws:
java.sql.SQLException - if the database cannot be initialized