|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.core.memory.Config
public class Config
Configuration for Agent Memory
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 |
---|
private static Logger log
static java.util.Properties config
public java.lang.String DB_URL
public java.lang.String DB_USER
public java.lang.String DB_PASSWD
public java.lang.String DB_TYPE
public java.lang.String DBDRIVER_CLASS
public boolean CREATE_MODEL
SOURCE_FILE
,
INDIVIDUALS_FILE
public boolean REMOVE_MODEL
public boolean MEM_MODEL
SOURCE_FILE
,
INDIVIDUALS_FILE
public java.lang.String INDIVIDUALS_FILE
CREATE_MODEL
is set True
public java.lang.String OUTPUT_FILE
memory2owl()
Constructor Detail |
---|
public Config(java.lang.String propertyFile)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |