vitruv-tools / Vitruv-Domains-ComponentBasedSystems

Vitruv domains for component-based systems
Eclipse Public License 1.0
1 stars 7 forks source link

Cleanup PCM and Java utilities #4

Closed HeikoKlare closed 2 years ago

HeikoKlare commented 7 years ago

Currently, helper methods for querying and modifying PCM and Java models are spread across different helper classes in the PCM-Java applications projects. Most of these helpers are specific for one of the metamodels but not for the application between them.

We should centralize them in the domain.*.util projects (or in secondary util projects if they have dependencies that are unwanted in the main util project). I suggest implementing separate util classes at least for querying and modifying models in each domain (e.g. PcmModelQueryUtils and PcmModelManpulationUtils).

We could discuss if the util scheme used in the commons project, defining util classes for the different metaclasses that can be used as extensions on them, can be reasonably applied here as well. Potentially most methods cannot be directly assigned to a single metaclass and the remaining methods yield only few methods for a single metaclass. Having many utility classes defining only few methods and only for one metaclass may require high effort to import all classes required in one context and to search for a functionality in the utility classes. This will potentially result in reimplementations of functionality as it requires less effort than searching and importing it.

HeikoKlare commented 2 years ago

Utilities have been moved to the applications repository in vitruv-tools/Vitruv-Applications-ComponentBasedSystems#204 and this repository will be archived since it is no longer needed.