lbeurerkellner / ttc2020

0 stars 5 forks source link

[Bugfix] Use four instead of one ResourceSet in performance benchmark #1

Open dstrueber opened 4 years ago

dstrueber commented 4 years ago

In the unfixed version, the performance benchmark loads each of the four pairs of metamodels into the same resource set (within the "getModel()" method). The problem is that the metamodels have the same namespace URIs over the different scenarios, violating a global assumption of EMF: ResourceSet.getPackageRegistry().getEPackage(nsURI) returns a single package, and not a list of packages. Since my code relies on this global assumption, I submit a fix, which ensures that each pair of metamodels (together with the instances) is loaded into a separate ResourceSet.