-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
107 additions
and
107 deletions.
There are no files selected for viewing
112 changes: 56 additions & 56 deletions
112
smells/org.emftext.refactoring.smell.calculation/metamodel/calculation.ecore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="calculation" nsURI="http://modelrefactoring.org/smell/calculation" | ||
nsPrefix="calculation"> | ||
<eClassifiers xsi:type="ecore:EClass" name="CalculationModel"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="calculations" upperBound="-1" | ||
eType="#//Calculation" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Calculation" abstract="true"> | ||
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> | ||
<details key="documentation" value="Calculations are registered at the extension point 'org.emftext.refactoring.smell.calculation'. When extending, provide a subclass either of 'Structure' or of 'Metric'!"/> | ||
</eAnnotations> | ||
<eOperations name="calculate" lowerBound="1" eType="#//CalculationResult"> | ||
<eParameters name="model" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
<eParameters name="threshold" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> | ||
</eOperations> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="monotonicity" lowerBound="1" | ||
eType="#//Monotonicity"/> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" lowerBound="1" | ||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""/> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" | ||
defaultValueLiteral="" iD="true"/> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="smellMessage" lowerBound="1" | ||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EEnum" name="Monotonicity"> | ||
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> | ||
<details key="documentation" value="<b>increasing:</b> the higher the calculated
	value, the better the quality satisfaction
</br></br>
<b>decreasing:</b> the lower the calculated
	value, the better the quality satisfaction"/> | ||
</eAnnotations> | ||
<eLiterals name="INCREASING"/> | ||
<eLiterals name="DECREASING" value="1"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="CalculationResult"> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="resultingValue" lowerBound="1" | ||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="causingObjectsGroups" upperBound="-1" | ||
eType="#//CausingObjectsGroup" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Structure" eSuperTypes="#//Calculation"> | ||
<eOperations name="calculate" eType="#//CalculationResult"> | ||
<eAnnotations source="de.devboost.emfcustomize.EcoreModelRefactorer"/> | ||
<eParameters name="model" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
<eParameters name="threshold" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> | ||
</eOperations> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="pattern" eType="ecore:EClass platform:/plugin/org.eclipse.incquery.patternlanguage/model/generated/PatternLanguage.ecore#//Pattern"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Metric" eSuperTypes="#//Calculation"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="CausingObjectsGroup"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="namedCausingObjects" lowerBound="1" | ||
upperBound="-1" eType="#//NamedCausingObject" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="NamedCausingObject"> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="causingObject" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
</eClassifiers> | ||
</ecore:EPackage> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="calculation" nsURI="http://modelrefactoring.org/smell/calculation" | ||
nsPrefix="calculation"> | ||
<eClassifiers xsi:type="ecore:EClass" name="CalculationModel"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="calculations" upperBound="-1" | ||
eType="#//Calculation" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Calculation" abstract="true"> | ||
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> | ||
<details key="documentation" value="Calculations are registered at the extension point 'org.emftext.refactoring.smell.calculation'. When extending, provide a subclass either of 'Structure' or of 'Metric'!"/> | ||
</eAnnotations> | ||
<eOperations name="calculate" lowerBound="1" eType="#//CalculationResult"> | ||
<eParameters name="model" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
<eParameters name="threshold" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> | ||
</eOperations> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="monotonicity" lowerBound="1" | ||
eType="#//Monotonicity"/> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" lowerBound="1" | ||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""/> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" | ||
defaultValueLiteral="" iD="true"/> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="smellMessage" lowerBound="1" | ||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" defaultValueLiteral=""/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EEnum" name="Monotonicity"> | ||
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel"> | ||
<details key="documentation" value="<b>increasing:</b> the higher the calculated
	value, the better the quality satisfaction
</br></br>
<b>decreasing:</b> the lower the calculated
	value, the better the quality satisfaction"/> | ||
</eAnnotations> | ||
<eLiterals name="INCREASING"/> | ||
<eLiterals name="DECREASING" value="1"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="CalculationResult"> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="resultingValue" lowerBound="1" | ||
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="causingObjectsGroups" upperBound="-1" | ||
eType="#//CausingObjectsGroup" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Structure" eSuperTypes="#//Calculation"> | ||
<eOperations name="calculate" eType="#//CalculationResult"> | ||
<eAnnotations source="de.devboost.emfcustomize.EcoreModelRefactorer"/> | ||
<eParameters name="model" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
<eParameters name="threshold" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFloat"/> | ||
</eOperations> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="pattern" eType="ecore:EClass platform:/plugin/org.eclipse.incquery.patternlanguage/model/generated/PatternLanguage.ecore#//Pattern"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="Metric" eSuperTypes="#//Calculation"/> | ||
<eClassifiers xsi:type="ecore:EClass" name="CausingObjectsGroup"> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="namedCausingObjects" lowerBound="1" | ||
upperBound="-1" eType="#//NamedCausingObject" containment="true"/> | ||
</eClassifiers> | ||
<eClassifiers xsi:type="ecore:EClass" name="NamedCausingObject"> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> | ||
<eStructuralFeatures xsi:type="ecore:EReference" name="causingObject" eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EObject"/> | ||
</eClassifiers> | ||
</ecore:EPackage> |
102 changes: 51 additions & 51 deletions
102
smells/org.emftext.refactoring.smell.calculation/metamodel/calculation.genmodel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" | ||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.emftext.refactoring.smell.calculation/src-gen" | ||
editDirectory="/org.emftext.refactoring.smell.calculation.edit/src-gen" editorDirectory="/org.emftext.refactoring.smell.calculation.editor/src-gen" | ||
modelPluginID="org.emftext.refactoring.smell.calculation" modelName="Calculation" | ||
editPluginClass="org.emftext.refactoring.smell.calculation.provider.CalculationEditPlugin" | ||
editorPluginClass="org.emftext.refactoring.smell.calculation.presentation.CalculationEditorPlugin" | ||
testsDirectory="/org.emftext.refactoring.smell.calculation.tests/src-gen" testSuiteClass="org.emftext.refactoring.smell.calculation.tests.CalculationAllTests" | ||
importerID="org.eclipse.emf.importer.ecore" complianceLevel="7.0" copyrightFields="false" | ||
usedGenPackages="platform:/plugin/org.eclipse.incquery.patternlanguage/model/generated/PatternLanguage.genmodel#//patternLanguage platform:/plugin/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel#//types platform:/plugin/org.eclipse.xtext.xbase/model/Xbase.genmodel#//xbase"> | ||
<foreignModel>calculation.ecore</foreignModel> | ||
<genPackages prefix="Calculation" basePackage="org.emftext.refactoring.smell" disposableProviderFactory="true" | ||
ecorePackage="calculation.ecore#/"> | ||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="calculation.ecore#//Monotonicity"> | ||
<genEnumLiterals ecoreEnumLiteral="calculation.ecore#//Monotonicity/INCREASING"/> | ||
<genEnumLiterals ecoreEnumLiteral="calculation.ecore#//Monotonicity/DECREASING"/> | ||
</genEnums> | ||
<genClasses ecoreClass="calculation.ecore#//CalculationModel"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference calculation.ecore#//CalculationModel/calculations"/> | ||
</genClasses> | ||
<genClasses image="false" ecoreClass="calculation.ecore#//Calculation"> | ||
<genFeatures property="Readonly" createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/monotonicity"/> | ||
<genFeatures property="Readonly" createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/description"/> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/name"/> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/smellMessage"/> | ||
<genOperations ecoreOperation="calculation.ecore#//Calculation/calculate"> | ||
<genParameters ecoreParameter="calculation.ecore#//Calculation/calculate/model"/> | ||
<genParameters ecoreParameter="calculation.ecore#//Calculation/calculate/threshold"/> | ||
</genOperations> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//CalculationResult"> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//CalculationResult/resultingValue"/> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference calculation.ecore#//CalculationResult/causingObjectsGroups"/> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//Structure"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference calculation.ecore#//Structure/pattern"/> | ||
<genOperations ecoreOperation="calculation.ecore#//Structure/calculate"> | ||
<genParameters ecoreParameter="calculation.ecore#//Structure/calculate/model"/> | ||
<genParameters ecoreParameter="calculation.ecore#//Structure/calculate/threshold"/> | ||
</genOperations> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//Metric"/> | ||
<genClasses ecoreClass="calculation.ecore#//CausingObjectsGroup"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference calculation.ecore#//CausingObjectsGroup/namedCausingObjects"/> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//NamedCausingObject"> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//NamedCausingObject/name"/> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference calculation.ecore#//NamedCausingObject/causingObject"/> | ||
</genClasses> | ||
</genPackages> | ||
</genmodel:GenModel> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" | ||
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.emftext.refactoring.smell.calculation/src-gen" | ||
editDirectory="/org.emftext.refactoring.smell.calculation.edit/src-gen" editorDirectory="/org.emftext.refactoring.smell.calculation.editor/src-gen" | ||
modelPluginID="org.emftext.refactoring.smell.calculation" modelName="Calculation" | ||
editPluginClass="org.emftext.refactoring.smell.calculation.provider.CalculationEditPlugin" | ||
editorPluginClass="org.emftext.refactoring.smell.calculation.presentation.CalculationEditorPlugin" | ||
testsDirectory="/org.emftext.refactoring.smell.calculation.tests/src-gen" testSuiteClass="org.emftext.refactoring.smell.calculation.tests.CalculationAllTests" | ||
importerID="org.eclipse.emf.importer.ecore" complianceLevel="7.0" copyrightFields="false" | ||
usedGenPackages="platform:/plugin/org.eclipse.incquery.patternlanguage/model/generated/PatternLanguage.genmodel#//patternLanguage platform:/plugin/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel#//types platform:/plugin/org.eclipse.xtext.xbase/model/Xbase.genmodel#//xbase"> | ||
<foreignModel>calculation.ecore</foreignModel> | ||
<genPackages prefix="Calculation" basePackage="org.emftext.refactoring.smell" disposableProviderFactory="true" | ||
ecorePackage="calculation.ecore#/"> | ||
<genEnums typeSafeEnumCompatible="false" ecoreEnum="calculation.ecore#//Monotonicity"> | ||
<genEnumLiterals ecoreEnumLiteral="calculation.ecore#//Monotonicity/INCREASING"/> | ||
<genEnumLiterals ecoreEnumLiteral="calculation.ecore#//Monotonicity/DECREASING"/> | ||
</genEnums> | ||
<genClasses ecoreClass="calculation.ecore#//CalculationModel"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference calculation.ecore#//CalculationModel/calculations"/> | ||
</genClasses> | ||
<genClasses image="false" ecoreClass="calculation.ecore#//Calculation"> | ||
<genFeatures property="Readonly" createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/monotonicity"/> | ||
<genFeatures property="Readonly" createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/description"/> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/name"/> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//Calculation/smellMessage"/> | ||
<genOperations ecoreOperation="calculation.ecore#//Calculation/calculate"> | ||
<genParameters ecoreParameter="calculation.ecore#//Calculation/calculate/model"/> | ||
<genParameters ecoreParameter="calculation.ecore#//Calculation/calculate/threshold"/> | ||
</genOperations> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//CalculationResult"> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//CalculationResult/resultingValue"/> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference calculation.ecore#//CalculationResult/causingObjectsGroups"/> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//Structure"> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference calculation.ecore#//Structure/pattern"/> | ||
<genOperations ecoreOperation="calculation.ecore#//Structure/calculate"> | ||
<genParameters ecoreParameter="calculation.ecore#//Structure/calculate/model"/> | ||
<genParameters ecoreParameter="calculation.ecore#//Structure/calculate/threshold"/> | ||
</genOperations> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//Metric"/> | ||
<genClasses ecoreClass="calculation.ecore#//CausingObjectsGroup"> | ||
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference calculation.ecore#//CausingObjectsGroup/namedCausingObjects"/> | ||
</genClasses> | ||
<genClasses ecoreClass="calculation.ecore#//NamedCausingObject"> | ||
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute calculation.ecore#//NamedCausingObject/name"/> | ||
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference calculation.ecore#//NamedCausingObject/causingObject"/> | ||
</genClasses> | ||
</genPackages> | ||
</genmodel:GenModel> |