org.semwebcentral.sweetrules.infrastructure
Interface ISweetCompositeTranslator

All Superinterfaces:
java.lang.Cloneable, ISweetTranslator
All Known Implementing Classes:
AbstractSweetCompositeTranslator

public interface ISweetCompositeTranslator
extends ISweetTranslator

An interface for translators with additional facility to compose translators by cascading Invoking the translate method automatically performs cascading The extension from ISweetTranslator means that a composite translator can be "viewed" as a simple translator w.r.t the translate API as cascading is done automatically NB: The translation is using String objects for data

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

Method Summary
 ISweetTranslator[] getComposedTranslators()
          API to facilitate viewing of the composed translators
 void setOptionOnAllComposedTranslators(ISweetInvocationDescriptor invocationDescriptor)
          Sets the option on all composed translators
 
Methods inherited from interface org.semwebcentral.sweetrules.infrastructure.ISweetTranslator
clone, getSourceData, getTranslatorDescriptor, print, setSourceData, setSourceKBDescriptor, setTargetKBDescriptor, setTranslatorDescriptor, translate
 

Method Detail

getComposedTranslators

public ISweetTranslator[] getComposedTranslators()
API to facilitate viewing of the composed translators

Returns:
the composed translator array

setOptionOnAllComposedTranslators

public void setOptionOnAllComposedTranslators(ISweetInvocationDescriptor invocationDescriptor)
                                       throws SweetTranslatorException
Sets the option on all composed translators

Parameters:
invocationDescriptor - The new option set
Throws:
SweetTranslatorException - if an error occurs