Creation of the BEL Framework SystemConfiguration can be done using one of the following constructors:
BELFRAMEWORK_HOME
environment variable
to setup the system configuration. The BEL compiler uses this variant;
the environment variable is configured in the platform setenv
script.-s
option.There are a set of variables that will automatically be expanded in the system configuration when they are seen. These variables can be used in any value of a name-value pair.
BELFRAMEWORK_HOME
environment variable.This is the simplest method of configuring the BEL Framework SystemConfiguration when using the Java API. The SystemConfiguration class exposes a variety of static fields that define the components of the framework’s configuration. See the belframework.cfg examples available in the config directory of the BEL Framework.
Example:
Map<String, String> map = new HashMap<String, String>();
map.put(SystemConfiguration.KAMSTORE_URL_DESC, "jdbc:mysql://localhost:3306");
map.put(SystemConfiguration.FRAMEWORK_WORKING_AREA_DESC, "{tmp}/bel_framework");
// map.put(SystemConfiguration...
SystemConfiguration syscfg = SystemConfiguration.createSystemConfiguration(map);