org.semwebcentral.sweetrules.infrastructure
Class SweetCompositeTranslator

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
      extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetCompositeTranslator
          extended byorg.semwebcentral.sweetrules.infrastructure.SweetCompositeTranslator
All Implemented Interfaces:
java.lang.Cloneable, ISweetCompositeTranslator, ISweetTranslator

public class SweetCompositeTranslator
extends AbstractSweetCompositeTranslator

This is an implementation of a composite translator which is returned by TranslatorRepository. It serves the purpose of providing an instantiable face to AbstractSweetCompositeTranslator

TODO: 1) Enhance constructor capability

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

Field Summary
 
Fields inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetCompositeTranslator
 
Fields inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
logger, sourceKBDescriptor, targetKBDescriptor, translatorDescriptor
 
Constructor Summary
SweetCompositeTranslator(ISweetKRDescriptor source, ISweetKRDescriptor target, ISweetKBDescriptor sourceKBDescriptor, ISweetKBDescriptor targetKBDescriptor, ISweetInvocationDescriptor options, ISweetTranslator[] composedTranslators)
          Constructor of the SweetCompositeTranslator class
 
Methods inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetCompositeTranslator
clone, getComposedTranslators, print, setOptionOnAllComposedTranslators, translate
 
Methods inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
getSourceData, getTranslatorDescriptor, loadAllNamespacesAndEntities, setSourceData, setSourceKBDescriptor, setTargetKBDescriptor, setTranslatorDescriptor, trace, writeToTargetKB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semwebcentral.sweetrules.infrastructure.ISweetTranslator
getSourceData, getTranslatorDescriptor, setSourceData, setSourceKBDescriptor, setTargetKBDescriptor, setTranslatorDescriptor
 

Constructor Detail

SweetCompositeTranslator

public SweetCompositeTranslator(ISweetKRDescriptor source,
                                ISweetKRDescriptor target,
                                ISweetKBDescriptor sourceKBDescriptor,
                                ISweetKBDescriptor targetKBDescriptor,
                                ISweetInvocationDescriptor options,
                                ISweetTranslator[] composedTranslators)
                         throws SweetTranslatorException
Constructor of the SweetCompositeTranslator class

Parameters:
source - KR Format of the source data
target - Expected KR Format of the translated data
sourceKBDescriptor - The source KB to be translated
targetKBDescriptor - The target KB to be translated
options - Translator option
composedTranslators - The composed translator to perform this action