kit-sdq-emf-refactor-fork / edu.kit.ipd.sdq.emf.refactor

These projects extend EMF Refactor by smell detections that have been transfered from object orientation to metamodeling.
Eclipse Public License 1.0
0 stars 0 forks source link

Missing class shared properties: Should also consider other class properties #12

Closed MishaStrittmatter closed 5 years ago

MishaStrittmatter commented 5 years ago

Currently, missing classes are detected only on the basis of attributes. However, references and inheritances should also be considered.

The smell detection is currently based on this metric: /edu.kit.ipd.sdq.emf.refactor.metrics/src/org/eclipse/emf/refactor/metrics/NEATC.java (number of equal attributes with other classes)

It would be the cleanest solution to implement a new metric (NEPC) which determines the number of equal properties with other classes. The equality of references is similar to the equality of attributes with the addition of the containment and container flags.

MishaStrittmatter commented 5 years ago

The NEPC metric should also compare operations.

MishaStrittmatter commented 5 years ago

fixed and tested => closed