org.semwebcentral.sweetrules.sweetjess
Class SweetJessQueryTask

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

public class SweetJessQueryTask
extends java.lang.Object
implements ISweetInferenceEngineTask

Created on Nov 15, 2004 A jess query executor

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

Field Summary
private  SweetJessEngine jessEngine
          The jess engine for this task
private  java.lang.String jessQuery
          The query to be executed
 
Constructor Summary
SweetJessQueryTask(java.lang.String query, SweetJessEngine engine)
          The constructor for the query executor
 
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

jessQuery

private java.lang.String jessQuery
The query to be executed


jessEngine

private SweetJessEngine jessEngine
The jess engine for this task

Constructor Detail

SweetJessQueryTask

public SweetJessQueryTask(java.lang.String query,
                          SweetJessEngine engine)
The constructor for the query executor

Parameters:
query - The query to execute
engine - The engine to execute 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