org.semwebcentral.sweetrules.sweetjess
Class SweetJessLoadTask

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetKBLoadTask
      extended byorg.semwebcentral.sweetrules.sweetjess.SweetJessLoadTask
All Implemented Interfaces:
ISweetInferenceEngineTask

public class SweetJessLoadTask
extends AbstractSweetKBLoadTask

Created on Nov 14, 2004

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy, Mahesh Gandhe

Field Summary
protected  SweetJessEngine jessEngine
          The Jess engine
 
Fields inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetKBLoadTask
kbDescriptor
 
Constructor Summary
SweetJessLoadTask(SweetJessEngine engine, ISweetKBDescriptor descriptor)
           
 
Method Summary
 java.lang.Object execute()
          The task execution method
private  void loadKBIntoRete(Rete rete, ISweetKBDescriptor kbDescriptor)
          Loads a KB into rete
private  void loadKBIntoRete1UNUSED(Rete rete)
           
 
Methods inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetKBLoadTask
getKBDescriptor, setKBDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jessEngine

protected SweetJessEngine jessEngine
The Jess engine

Constructor Detail

SweetJessLoadTask

public SweetJessLoadTask(SweetJessEngine engine,
                         ISweetKBDescriptor descriptor)
Parameters:
descriptor -
Method Detail

execute

public java.lang.Object execute()
                         throws SweetInferenceEngineException
Description copied from interface: ISweetInferenceEngineTask
The task execution method

Returns:
The result of executing the task
Throws:
SweetInferenceEngineException

loadKBIntoRete

private void loadKBIntoRete(Rete rete,
                            ISweetKBDescriptor kbDescriptor)
                     throws SweetInferenceEngineException
Loads a KB into rete

Parameters:
rete - The rete engine in which to load the kb
kbDescriptor - The KB to load
Throws:
SweetInferenceEngineException - If an error occurs

loadKBIntoRete1UNUSED

private void loadKBIntoRete1UNUSED(Rete rete)
                            throws SweetInferenceEngineException
Throws:
SweetInferenceEngineException