ie.deri.wsmx.mediation.flora
Class FloraMediator

java.lang.Object
  extended byie.deri.wsmx.mediation.flora.FloraMediator
All Implemented Interfaces:
Mediator

public class FloraMediator
extends java.lang.Object
implements Mediator

This class is a Flora2 instances mediator. It is able to provide for given source instance the corresponding target instances. Based on a set of mapping rules it calls a prolog engine and builds the target instances.


Constructor Summary
(package private) FloraMediator()
          The role of this constructor is to avoid the direct instantiation of this class from outside of the package.
 
Method Summary
 java.lang.StringBuffer mediate(java.lang.String sourceOntology, java.lang.String targetOntology, java.lang.StringBuffer payload)
          Calls the mediator and returns back the mediated payload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloraMediator

FloraMediator()
The role of this constructor is to avoid the direct instantiation of this class from outside of the package. For being able to use a FloraMediator object you can use the FloraMediatorFactory in the following way:

Mediator mediator = FloraMediatorFactory.createMediator();

Method Detail

mediate

public java.lang.StringBuffer mediate(java.lang.String sourceOntology,
                                      java.lang.String targetOntology,
                                      java.lang.StringBuffer payload)
Description copied from interface: Mediator
Calls the mediator and returns back the mediated payload

Specified by:
mediate in interface Mediator
Parameters:
sourceOntology - the source ontology ID
targetOntology - the target ontology ID
payload - the subject of the mediation (instances from the source ontology)
Returns:
the mediated payload (instances from the target ontology)