org.semwebcentral.sweetrules.sweetxsb
Class SweetXSBCleanupAfterQueryTask

java.lang.Object
  extended byorg.semwebcentral.sweetrules.sweetxsb.SweetXSBCleanupAfterQueryTask
All Implemented Interfaces:
ISweetInferenceEngineTask

public class SweetXSBCleanupAfterQueryTask
extends java.lang.Object
implements ISweetInferenceEngineTask

Task to abolish a predicate from XSB

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

Field Summary
private  java.lang.String abolishPredicateCommand
          The abolish query to be executed
private  SweetXSBEngine xsbEngine
          The XSB Engine object to execute the query
 
Constructor Summary
SweetXSBCleanupAfterQueryTask(java.lang.String predicateName, int arity, SweetXSBEngine engine)
          Constructor for the abolish predicate task
 
Method Summary
 java.lang.Object execute()
          Implementation of the execute method
 void setPredicateSpec(java.lang.String predicateName, int arity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsbEngine

private SweetXSBEngine xsbEngine
The XSB Engine object to execute the query


abolishPredicateCommand

private java.lang.String abolishPredicateCommand
The abolish query to be executed

Constructor Detail

SweetXSBCleanupAfterQueryTask

public SweetXSBCleanupAfterQueryTask(java.lang.String predicateName,
                                     int arity,
                                     SweetXSBEngine engine)
Constructor for the abolish predicate task

Parameters:
predicateName - The name of the predicate to be abolished
arity - The arity of the predicate to be abolished
engine - The xsb engine on which the query should be executed
Method Detail

execute

public java.lang.Object execute()
                         throws SweetInferenceEngineException
Implementation of the execute method

Specified by:
execute in interface ISweetInferenceEngineTask
Returns:
result of execution
Throws:
SweetInferenceEngineException

setPredicateSpec

public void setPredicateSpec(java.lang.String predicateName,
                             int arity)