org.wsmo.mediator
Interface Mediator

All Superinterfaces:
Entity, TopEntity
All Known Subinterfaces:
GGMediator, OOMediator, WGMediator, WWMediator

public interface Mediator
extends TopEntity


Method Summary
 void addSource(TopEntity src)
          add a source component to this mediator.
 Identifier getMediationService()
          Returns the mediation service of this mediator.
 TopEntity getTarget()
          Returns the target component of this mediator.
 java.util.Set listSources()
          Returns set of the source components for this mediator.
 void removeSource(Identifier id)
          remove a source component from this mediator.
 void removeSource(TopEntity src)
          remove a source component from this mediator.
 void setMediationSerivice(Identifier medServiceID)
          Sets the ID of the service which performs the actual mediation.
 void setTarget(TopEntity target)
          Sets the target component of this mediator.
 
Methods inherited from interface org.wsmo.common.TopEntity
addMediator, addNamespace, addOntology, findNamespace, getDefaultNamespace, getWsmlVariant, listMediators, listNamespaces, listOntologies, removeMediator, removeMediator, removeNamespace, removeNamespace, removeOntology, removeOntology, setDefaultNamespace, setDefaultNamespace, setWsmlVariant
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Method Detail

listSources

java.util.Set listSources()
                          throws SynchronisationException
Returns set of the source components for this mediator. Depending on the type of the mediator, the source component may be a TopEntity such as WebService, Goal, ...

Returns:
: The set of the source components for this mediator.
Throws:
SynchronisationException
See Also:
TopEntity

addSource

void addSource(TopEntity src)
               throws SynchronisationException,
                      InvalidModelException
add a source component to this mediator.

Parameters:
src - a source component of this mediator.
Throws:
SynchronisationException
InvalidModelException
See Also:
removeSource(TopEntity src), removeSource(Identifier id)

removeSource

void removeSource(TopEntity src)
                  throws SynchronisationException,
                         InvalidModelException
remove a source component from this mediator.

Parameters:
src - : a source component to remove.
Throws:
SynchronisationException
InvalidModelException
See Also:
removeSource(Identifier id)

removeSource

void removeSource(Identifier id)
                  throws SynchronisationException,
                         InvalidModelException
remove a source component from this mediator.

Parameters:
src - : a source component to remove.
Throws:
SynchronisationException
InvalidModelException
See Also:
removeSource(TopEntity src)

getTarget

TopEntity getTarget()
                    throws SynchronisationException
Returns the target component of this mediator. Depending on the type of the mediator, the target component may be a TopEntity such as WebService, Goal, ...

Returns:
: The target component (TopEntity) of this mediator.
Throws:
SynchronisationException
See Also:
setTarget(TopEntity target)

setTarget

void setTarget(TopEntity target)
               throws SynchronisationException,
                      InvalidModelException
Sets the target component of this mediator. Depending on the type of the mediator, the target component may be a TopEntity such as WebService, Goal, ...

Parameters:
target - : The new target component.
Throws:
SynchronisationException
InvalidModelException
See Also:
getTarget()

getMediationService

Identifier getMediationService()
                               throws SynchronisationException
Returns the mediation service of this mediator.

Returns:
: The identificator of the mediation service of this mediator.
Throws:
SynchronisationException
See Also:
setMediationSerivice(Identifier medServiceID)

setMediationSerivice

void setMediationSerivice(Identifier medServiceID)
                          throws SynchronisationException,
                                 InvalidModelException
Sets the ID of the service which performs the actual mediation.

Parameters:
newServiceID - The ID of the service which performs the actual mediation.
Throws:
SynchronisationException
InvalidModelException