org.semwebcentral.sweetrules.infrastructure
Class SweetKBMergeDescriptor

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.SweetKBMergeDescriptor
All Implemented Interfaces:
ISweetKBMergeDescriptor

public class SweetKBMergeDescriptor
extends java.lang.Object
implements ISweetKBMergeDescriptor

Created on Oct 25, 2004 Implementation of the KB merge descriptor

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

Field Summary
private  ISweetKBDescriptor[] sourceKBDescriptors
          The source KB descriptor
private  ISweetKBDescriptor targetKBDescriptor
          The target KB descriptor
 
Constructor Summary
SweetKBMergeDescriptor(ISweetKBDescriptor[] sources, ISweetKBDescriptor target)
          The KB merge descriptor
 
Method Summary
 ISweetKBDescriptor[] getSourceKBDescriptors()
          Retrieves the source KBs that need to be merged
 ISweetKBDescriptor getTargetKBDescriptor()
          Returns the target KBs that need to be merged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceKBDescriptors

private ISweetKBDescriptor[] sourceKBDescriptors
The source KB descriptor


targetKBDescriptor

private ISweetKBDescriptor targetKBDescriptor
The target KB descriptor

Constructor Detail

SweetKBMergeDescriptor

public SweetKBMergeDescriptor(ISweetKBDescriptor[] sources,
                              ISweetKBDescriptor target)
The KB merge descriptor

Parameters:
sources - The sources to be merged Note: The sources specified in the mergeDescriptor must be unique after merging and should not cause conflicts
target - The merged target
Method Detail

getSourceKBDescriptors

public ISweetKBDescriptor[] getSourceKBDescriptors()
Description copied from interface: ISweetKBMergeDescriptor
Retrieves the source KBs that need to be merged

Specified by:
getSourceKBDescriptors in interface ISweetKBMergeDescriptor
Returns:
The descriptors of the source KBs

getTargetKBDescriptor

public ISweetKBDescriptor getTargetKBDescriptor()
Description copied from interface: ISweetKBMergeDescriptor
Returns the target KBs that need to be merged

Specified by:
getTargetKBDescriptor in interface ISweetKBMergeDescriptor
Returns:
The target KB descriptor