Package org.eclipse.epsilon.flexmi
Class AttributeStructuralFeatureAllocator
- java.lang.Object
-
- org.eclipse.epsilon.flexmi.AttributeStructuralFeatureAllocator
-
public class AttributeStructuralFeatureAllocator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AttributeStructuralFeatureAllocator.HungarianAllocator
Class implementing the Hungarian algorithm for attribute to feature allocation Adapted from https://github.com/amirbawab/Hungarian-Algorithm
-
Field Summary
Fields Modifier and Type Field Description static Map<org.eclipse.emf.ecore.EClass,StringSimilarityProvider>
eClass2StringSimilarityProvider
protected StringSimilarityProvider
stringSimilarityProvider
-
Constructor Summary
Constructors Constructor Description AttributeStructuralFeatureAllocator()
AttributeStructuralFeatureAllocator(org.eclipse.emf.ecore.EClass eclass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
allocate(List<String> values, List<String> slots)
Map<Node,org.eclipse.emf.ecore.EStructuralFeature>
allocate(NamedNodeMap attributes, List<org.eclipse.emf.ecore.EStructuralFeature> structuralFeatures)
protected String
removePrefix(String str)
-
-
-
Field Detail
-
eClass2StringSimilarityProvider
public static Map<org.eclipse.emf.ecore.EClass,StringSimilarityProvider> eClass2StringSimilarityProvider
-
stringSimilarityProvider
protected StringSimilarityProvider stringSimilarityProvider
-
-
Method Detail
-
allocate
public Map<Node,org.eclipse.emf.ecore.EStructuralFeature> allocate(NamedNodeMap attributes, List<org.eclipse.emf.ecore.EStructuralFeature> structuralFeatures)
-
-