org.semwebcentral.sweetrules.infrastructure
Class SweetDriver

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.SweetDriver

public class SweetDriver
extends java.lang.Object

The main driver class file

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Mike Dean, Dr. Said Tabet, Chitravanu Neogy

Field Summary
private static java.lang.String CONFIG_FILE_NAME
          The configuration file name
(package private) static java.lang.String SWEET_LIBROOT_ENVIRONMENT_VAR
          The environment variable pointing to the folder containing the Sweet jar files
 
Constructor Summary
SweetDriver()
           
 
Method Summary
static ISweetComponentRepositoryManager initialize()
          Common code to perform initialization used by main code and the test code
private static void loadKnownInferenceEngines(ISweetComponentRepositoryManager swCRM)
          Loads the known inference engine
private static void loadKnownTranslators(ISweetComponentRepositoryManager swCRM)
          Loads the known translators
static void main(java.lang.String[] args)
          The main function for the code.
private static void startSession()
          Starts the session handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWEET_LIBROOT_ENVIRONMENT_VAR

static final java.lang.String SWEET_LIBROOT_ENVIRONMENT_VAR
The environment variable pointing to the folder containing the Sweet jar files

See Also:
Constant Field Values

CONFIG_FILE_NAME

private static final java.lang.String CONFIG_FILE_NAME
The configuration file name

See Also:
Constant Field Values
Constructor Detail

SweetDriver

public SweetDriver()
Method Detail

main

public static void main(java.lang.String[] args)
The main function for the code.

Parameters:
args -

initialize

public static ISweetComponentRepositoryManager initialize()
                                                   throws java.io.IOException,
                                                          SweetException
Common code to perform initialization used by main code and the test code

Returns:
The initialized component repository manager
Throws:
java.io.IOException - if an error occurs while reading the config file
SweetException - if an error occurs while configuring the component repository manager

startSession

private static void startSession()
Starts the session handler


loadKnownTranslators

private static void loadKnownTranslators(ISweetComponentRepositoryManager swCRM)
                                  throws SweetException
Loads the known translators

Parameters:
swCRM - The repository manager
Throws:
SweetException - if an error occurs while adding

loadKnownInferenceEngines

private static void loadKnownInferenceEngines(ISweetComponentRepositoryManager swCRM)
                                       throws SweetException
Loads the known inference engine

Parameters:
swCRM - The repository manager
Throws:
SweetException - if an error occurs