org.semwebcentral.sweetrules.infrastructure
Interface ISweetInvocationDescriptor

All Known Implementing Classes:
SweetInvocationDescriptor

public interface ISweetInvocationDescriptor

This class is for setting options on a specific tool. e.g. set the option to use Courteous compilation by default on the translator provided by SweetTools This class represents options that can be set on components like translators, inference engines etc For now, typically the options will be in XML having the format

 
   
 
The interpretation of the options is up to the implementation

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

Field Summary
static java.lang.String FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME
          Option to force the invocation of the courteous compiler
static java.lang.String RESET_FORCE_INVOKE_COURTEOUS_COMPILER
          The option value indicating that FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME has been reset
static java.lang.String SET_FORCE_INVOKE_COURTEOUS_COMPILER
          The option value indicating that FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME has been set
 
Method Summary
 java.lang.Object clone()
          The clone method to clone this object
 java.lang.Object retrieveOption(java.lang.Object optionName)
          Retreives the stored value for the stored option
 void storeOption(java.lang.Object optionName, java.lang.Object optionValue)
          Stores the specified option
 

Field Detail

FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME

public static final java.lang.String FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME
Option to force the invocation of the courteous compiler

See Also:
Constant Field Values

SET_FORCE_INVOKE_COURTEOUS_COMPILER

public static final java.lang.String SET_FORCE_INVOKE_COURTEOUS_COMPILER
The option value indicating that FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME has been set

See Also:
Constant Field Values

RESET_FORCE_INVOKE_COURTEOUS_COMPILER

public static final java.lang.String RESET_FORCE_INVOKE_COURTEOUS_COMPILER
The option value indicating that FORCE_INVOKE_COURTEOUS_COMPILER_OPTIONNAME has been reset

See Also:
Constant Field Values
Method Detail

storeOption

public void storeOption(java.lang.Object optionName,
                        java.lang.Object optionValue)
Stores the specified option

Parameters:
optionName - The name of the option to be stored
optionValue - The value of the option

retrieveOption

public java.lang.Object retrieveOption(java.lang.Object optionName)
Retreives the stored value for the stored option

Parameters:
optionName - The option name whose value is to be retrieved
Returns:
The value for stored option name

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
The clone method to clone this object

Returns:
The cloned object
Throws:
java.lang.CloneNotSupportedException - if an error occurs