agent.core.memory
Class Config

java.lang.Object
  extended by agent.core.memory.Config

public class Config
extends java.lang.Object

Configuration for Agent Memory

Version:
0.3
Author:
Michal Laclavik

Field Summary
(package private) static java.util.Properties config
          Properties file
 boolean CREATE_MODEL
          If True it creates model in RDB (MySQL) when agent is started
We need to set this True only first time when running agent or if we want to recreate model from OWL files in case of recreating we need to set REMOVE_MODEL True as well in order to remove old model first OWl files which contains of Ontology definition and Ontology individuals (Instances) are defined in Ontology Config see: SOURCE_FILE, INDIVIDUALS_FILE
 java.lang.String DB_PASSWD
          user's password
 java.lang.String DB_TYPE
          DB type - usualy MySQL
 java.lang.String DB_URL
          url of database for example "jdbc:mysql://[host]/[database]"
 java.lang.String DB_USER
          database user which has access to specified DB
 java.lang.String DBDRIVER_CLASS
          location of jdbc driver class
 java.lang.String INDIVIDUALS_FILE
          Individuals file defines path to OWL file containing of agent ontology Individuals (instances)
This can be loaded when Memory Config CREATE_MODEL is set True
private static Logger log
           
 boolean MEM_MODEL
          If True it reades model from FILE defined in ontology config properties and holds model in memory instead of MySQL database it is faster but not very good solution.
 java.lang.String OUTPUT_FILE
          Output file defines path to OWL file where content of OM can we write when calling method memory2owl()
 boolean REMOVE_MODEL
          If True it removes model from RDB (MySQL) when agent is started
 
Constructor Summary
Config(java.lang.String propertyFile)
          Operators file name.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Logger log

config

static java.util.Properties config
Properties file


DB_URL

public java.lang.String DB_URL
url of database for example "jdbc:mysql://[host]/[database]"


DB_USER

public java.lang.String DB_USER
database user which has access to specified DB


DB_PASSWD

public java.lang.String DB_PASSWD
user's password


DB_TYPE

public java.lang.String DB_TYPE
DB type - usualy MySQL


DBDRIVER_CLASS

public java.lang.String DBDRIVER_CLASS
location of jdbc driver class


CREATE_MODEL

public boolean CREATE_MODEL
If True it creates model in RDB (MySQL) when agent is started
We need to set this True only first time when running agent or if we want to recreate model from OWL files in case of recreating we need to set REMOVE_MODEL True as well in order to remove old model first OWl files which contains of Ontology definition and Ontology individuals (Instances) are defined in Ontology Config see: SOURCE_FILE, INDIVIDUALS_FILE


REMOVE_MODEL

public boolean REMOVE_MODEL
If True it removes model from RDB (MySQL) when agent is started


MEM_MODEL

public boolean MEM_MODEL
If True it reades model from FILE defined in ontology config properties and holds model in memory instead of MySQL database it is faster but not very good solution. When set to true REMOVE_MODEL and CREATE_MODEL is not valid see: SOURCE_FILE, INDIVIDUALS_FILE


INDIVIDUALS_FILE

public java.lang.String INDIVIDUALS_FILE
Individuals file defines path to OWL file containing of agent ontology Individuals (instances)
This can be loaded when Memory Config CREATE_MODEL is set True


OUTPUT_FILE

public java.lang.String OUTPUT_FILE
Output file defines path to OWL file where content of OM can we write when calling method memory2owl()

Constructor Detail

Config

public Config(java.lang.String propertyFile)
Operators file name.