Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy FM doesn't keep internal state #33

Open
surli opened this issue Oct 29, 2013 · 0 comments
Open

Copy FM doesn't keep internal state #33

surli opened this issue Oct 29, 2013 · 0 comments
Labels

Comments

@surli
Copy link
Collaborator

surli commented Oct 29, 2013

I think this error is related to the #26 issue related to the internal and synctactic description of FMs.

If I have a really complex FM created in merging many ones (around 80 FMs merged) I had some problems trying to serialize them to keep their textual representation. Mathieu explains me why because the internal representation cannot be easily serialized.

Then I compute the merge each time I need to use my complex FM which is very time consuming (cf issue #31). To avoid waiting too much, I decided to make copies of this complex FM and work on these, using the syntax "newFM = copy complexFM".

But apparently I have the same problems I had with the serialization of FMs : the copy seems not to be a clone of the previous FM.

Then is it possible either to change the way "copy" works to make proper clones ? Or to add another keyword maybe "clone" to make real clones instead of copy based on an incomplete serialization?

I'll try to formalize the scenario with a unit test as soon as I'll be able to build the project.

surli added a commit that referenced this issue Feb 6, 2014
…ted to #33

I overrided the method copy inside
FeatureModelVariableWithSynchronizedFormula.java to really create a new
FeatureModelVariableWithSynchronizedFormula object instead of other
kind of FMV.
I created a really small unit test to check if the counting works well
for configuration variable instead of FM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant