DLR-RM/RAFCON

Implement copy method for every state

franzlst opened this issue · 4 comments

The state (and maybe state model) classes should implement a copy method. The method should create a copy of the state (model). Additional parameters could define whether to calculate a new state id and whether to include sub-states.

Originally created by @franzlst (Franz.Steinmetz@dlr.de) at 2015-11-26 08:53:48+00:00 (moved from RMC internal repository)

This could be used for example when loading libraries. A copy of each loaded library could be stored in a library cache. If a library is required a second time, a copy of the cached library would be cerated, instead of loading the library from the file system.

Originally created by @franzlst (Franz.Steinmetz@dlr.de) at 2015-11-26 08:55:17+00:00 (moved from RMC internal repository)

The copy functionality should also be supported for the models, too. Therefore all models which core-elements have storage functionality like from_dict and to_dict methods has to implement the copy-method, too.

Originally created by @Rbelder at 2016-05-02 13:56:49+00:00 (moved from RMC internal repository)

First implementation and unit-test is made in commit dc39edcb62811b59aa.

Still there is a problem when using the copy method in the clipboard and running the menu-bar test. So the issue stays open.

Originally created by @Rbelder at 2016-05-04 18:08:25+00:00 (moved from RMC internal repository)

Problems of copy-methods are solved and enhancement is in use.

Originally created by @Rbelder at 2016-05-11 15:58:20+00:00 (moved from RMC internal repository)