|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<Tuple>
org.infai.emo.matcher.util.Mapping
public class Mapping
This class contains a mapping between two models.
The mapping contains tuples, each containing one element of the first model an one element of the second model.
In this context the mapping is a complete cross product that maps each element of the first model to each element of the second model.
Note: Donīt swap this mapping with the second phase of the difference detection-algorithm.
Tuple
,
Serialized FormField Summary | |
---|---|
private boolean |
crossProduct
This flag indicates if the models where mapped using a full cross product. |
private Model |
leftModel
The left model of the mapping. |
private Model |
rightModel
The right model or the mapping. |
Constructor Summary | |
---|---|
Mapping()
An empty mapping without models. |
|
Mapping(Model model1,
Model model2,
boolean crossProduct)
Method that builds the mapping between the two models by creating tuples for every possible pair of elements of the models. |
Method Summary | |
---|---|
Mapping |
getInvertedMapping()
Inverts the tuples of the Mapping, thus the element-order of the tuples will be switched. |
Model |
getLeftModel()
|
Model |
getRightModel()
|
boolean |
isCrossProduct()
Whether a full cross-product was used for the mapping. |
java.lang.String |
toString()
|
Methods inherited from class java.util.HashSet |
---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Field Detail |
---|
private Model leftModel
Model
private Model rightModel
Model
private boolean crossProduct
Constructor Detail |
---|
public Mapping(Model model1, Model model2, boolean crossProduct)
leftModel
- the model that provides the first elements of the tuples.rightModel
- the model that provides the second elements of the tuples.crossProduct
- indicates if the mapping shall be built using a cross product or not.false
the mapping will only contain tuples of elements of the same meta-type.leftModel
,
rightModel
,
crossProduct
Mapping()
Method Detail |
---|
public Mapping getInvertedMapping()
Tuple
public java.lang.String toString()
toString
in class java.util.AbstractCollection<Tuple>
public Model getLeftModel()
leftModel
public Model getRightModel()
rightModel
public boolean isCrossProduct()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |