ScheduledResource and SimulatedLinkingResource should not store model reference

Description

When going through the code I noticed, that the simulation entities in SimuComFramework for processing resources (ScheduledResource.java) and linking resources (SimulatedLinkingResource.java) store a reference to the ProcessingResourceSpecification and the LinkingResource respectively. While this creates no issue for SimuCom, it can lead to severe memory leaks and inconsistencies in SimuLizar. Changes to the runtime model of SimuLizar are done on a copied in memory instance of the model, which is thereafter used by subsequent users. The old model instance should be garbage collected, once no user refers to it anymore. By keeping a model reference from the simulation entities the GC of the entire ResourceSet is prevented (due to bidirectional references in EMF).

We should remove the model references, as they are not really needed.

Environment

None

Assignee

Unassigned

Reporter

Sebastian Krach

Labels

None

Requirement Category

None

External issue URL

None

Epic Link

Affects versions

Priority

Major