Class DefaultAttributeProcessor
- java.lang.Object
-
- de.uni_marburg.mdo_over.recombination.crossoverpoint.postprocessing.DefaultAttributeProcessor
-
- All Implemented Interfaces:
IAttributeProcessor
public class DefaultAttributeProcessor extends Object implements IAttributeProcessor
-
-
Constructor Summary
Constructors Constructor Description DefaultAttributeProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptsAttribute(org.eclipse.emf.ecore.EAttribute attribute)ObjectprocessAttribute(org.eclipse.emf.ecore.EObject firstParent, org.eclipse.emf.ecore.EObject secondParent, org.eclipse.emf.ecore.EAttribute attribute)For the given attribute calculates and returns a value by considering the attribute values stored in both of the given objects.
-
-
-
Method Detail
-
acceptsAttribute
public boolean acceptsAttribute(org.eclipse.emf.ecore.EAttribute attribute)
- Specified by:
acceptsAttributein interfaceIAttributeProcessor
-
processAttribute
public Object processAttribute(org.eclipse.emf.ecore.EObject firstParent, org.eclipse.emf.ecore.EObject secondParent, org.eclipse.emf.ecore.EAttribute attribute)
Description copied from interface:IAttributeProcessorFor the given attribute calculates and returns a value by considering the attribute values stored in both of the given objects. The returned value has to conform to the type of the attribute.- Specified by:
processAttributein interfaceIAttributeProcessor- Parameters:
firstParent- first object to considersecondParent- second object to considerattribute- attribute for which a value should be calculated- Returns:
- calculated value
-
-