org.semwebcentral.sweetrules.sweetjess
Class SweetJessForwardInferencingTask

java.lang.Object
  extended byorg.semwebcentral.sweetrules.sweetjess.SweetJessForwardInferencingTask
All Implemented Interfaces:
ISweetInferenceEngineTask

public class SweetJessForwardInferencingTask
extends java.lang.Object
implements ISweetInferenceEngineTask

Created on Nov 14, 2004 The Forward Inferencing task for Jess Given a KB, it loads it in to specified the jess engine and lists all concluded the facts. TODO: 1) We don't handle round tripping of buitlins yet.

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

Field Summary
private  SweetJessEngine jessEngine
          The Jess Engine
private  ISweetKBDescriptor kbDescriptor
          The KB descriptor
 
Constructor Summary
SweetJessForwardInferencingTask(ISweetKBDescriptor kbDescriptor, SweetJessEngine engine)
          Constructor for the exhaustive brute force inferencing
 
Method Summary
 java.lang.Object execute()
          The task execution method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kbDescriptor

private ISweetKBDescriptor kbDescriptor
The KB descriptor


jessEngine

private SweetJessEngine jessEngine
The Jess Engine

Constructor Detail

SweetJessForwardInferencingTask

public SweetJessForwardInferencingTask(ISweetKBDescriptor kbDescriptor,
                                       SweetJessEngine engine)
Constructor for the exhaustive brute force inferencing

Parameters:
kbDescriptor - The descriptor of the knowledge base to load
engine - The XSB engine to execute forward inferencing on
Method Detail

execute

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

Specified by:
execute in interface ISweetInferenceEngineTask
Returns:
The result of executing the task
Throws:
SweetInferenceEngineException