org.infai.emo.matcher.action
Class ModelMatcher

java.lang.Object
  extended by org.infai.emo.matcher.action.ModelMatcher

public class ModelMatcher
extends java.lang.Object

This class controls the matching- mapping- and diff-building-sequence.

Version:
1.0.0
Author:
Stanley Hillner

Field Summary
private  Matching baseMatch
          The final matching that serves as the basis for the Mapping.
private  ModelComparator comparator
          The main class that controls the order of the comparison.
private  MapModel mapModel
          The built EMF-Model from the mapping.
 
Constructor Summary
ModelMatcher(Matching baseMatch, ModelComparator comparator)
          Constructor initializes the Matcher by setting required data.
 
Method Summary
 DiffModel getDiff(MapModel mapModel)
           
 MapModel getMapping()
          Method returns the mapping between both models.
 MapModel getMappingWithConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseMatch

private Matching baseMatch
The final matching that serves as the basis for the Mapping.

See Also:
Matching

comparator

private ModelComparator comparator
The main class that controls the order of the comparison.

See Also:
ModelComparator

mapModel

private MapModel mapModel
The built EMF-Model from the mapping. This will be added to the Difference-Model later.

See Also:
MatchModel
Constructor Detail

ModelMatcher

public ModelMatcher(Matching baseMatch,
                    ModelComparator comparator)
Constructor initializes the Matcher by setting required data.

Parameters:
baseMatch - basic matching for the mapping.
comparator - the class that controlled the matching-sequence.
See Also:
baseMatch, comparator
Method Detail

getMapping

public MapModel getMapping()
Method returns the mapping between both models. This mapping depends on the previously calculated matching of the model-elements and corresponds to the second phase oft the difference-detection-algorithm.

Returns:
The mapping between the models. Therefore the MatchModel is returned.
See Also:
mapModel

getMappingWithConfiguration

public MapModel getMappingWithConfiguration()

getDiff

public DiffModel getDiff(MapModel mapModel)
Returns:
the DiffModel which contains the differences between both models.
See Also:
DiffModel