Class CrossoverPointRecombination
- java.lang.Object
-
- de.uni_marburg.mdo_over.recombination.crossoverpoint.CrossoverPointRecombination
-
- All Implemented Interfaces:
IRecombinationStrategy
public class CrossoverPointRecombination extends Object implements IRecombinationStrategy
A recombination strategy based on the notion of a crossover point as discussed in the papers A Generic Construction for Crossovers of Graph-Like Structures and Towards a configurable crossover operator for model-driven optimization. * In short, the crossover point specifies which model elements should be identified when two parts of the given parent models are recombined.An
IInferenceStrategy
needs to be provided specifying the desired crossover point. A crossover point may containModelNode
s for which the respective original nodes in the parents differ with regard to their attribute values. Additionally, attribute values might depend on the underlying model (e.g., derived attributes). For these cases anIAttributeProcessor
needs to specify how the respective attribute values can be calculated for the offspring of the recombination. A Henshin engine needs to be provided as graph transformation rules are used to recombine model parts.- Author:
- S. John
-
-
Constructor Summary
Constructors Constructor Description CrossoverPointRecombination(IInferenceStrategy strategy, IAttributeProcessor attributeProcessor, org.eclipse.emf.henshin.interpreter.Engine engine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.eclipse.emf.ecore.EObject>
recombine(CoSpan firstSplit, CoSpan secondSplit)
Recombines two parent solutions (represented by splits) and creates two or more EMF models as offspring.
-
-
-
Constructor Detail
-
CrossoverPointRecombination
public CrossoverPointRecombination(IInferenceStrategy strategy, IAttributeProcessor attributeProcessor, org.eclipse.emf.henshin.interpreter.Engine engine)
-
-
Method Detail
-
recombine
public List<org.eclipse.emf.ecore.EObject> recombine(CoSpan firstSplit, CoSpan secondSplit)
Description copied from interface:IRecombinationStrategy
Recombines two parent solutions (represented by splits) and creates two or more EMF models as offspring.- Specified by:
recombine
in interfaceIRecombinationStrategy
- Parameters:
firstSplit
- the first parent represented by a splitsecondSplit
- the second parent represented by a split- Returns:
- a list containing the roots of the offspring models created as recombinations of the input splits
-
-