|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infai.emo.matcher.impl.PositionComparator
public class PositionComparator
Class for comparing the positions of the model-elements in the tree-notation of the model.
Class should only be used for critical decisions to determine which alternative is the best one.
Field Summary | |
---|---|
private Model |
leftModel
The left model for the comparison. |
private Matching |
matching
The matching that contains the results of the comparison of both models. |
private Model |
rightModel
The right model for the comparison. |
Constructor Summary | |
---|---|
PositionComparator(Matching previousMatching,
Model leftModel,
Model rightModel)
Initialize the comparator with the matching and the models. |
Method Summary | |
---|---|
Matching |
compare()
This method compares the maximum matching-entries for each element of the models by analyzing the matching. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Model leftModel
Mapping
private Model rightModel
Mapping
private Matching matching
Matching
Constructor Detail |
---|
public PositionComparator(Matching previousMatching, Model leftModel, Model rightModel)
previousMatching
- the matching for analysis and modification.leftModel
- the left model of the comparison.rightModel
- the right model of the comparison.Method Detail |
---|
public Matching compare()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |