Package jade.domain

Class DFKBFactory


  • public class DFKBFactory
    extends 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 Detail

      • DFKBFactory

        public DFKBFactory()
    • 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 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:
        SQLException - if the database cannot be initialized