Hi Andrea,
I retrieved your mail and tried to find a solution.
I clearly not found anyone.
In fact, in Orion, the idea is to have a link between each version at
entity level. It means that a class that has been renamed know its previous
version with its previous name.
In 2 different mse files, there is no link between these entities. We have
to postulate that an entity from the second version is linked to an entity
of the first version. For that, we need to use heuristics... which is not
deterministic.
So, I found 2 possible ways:
- we match the name of the entities. If they match, there is a link. But,
all rename of entities would provide inconsistencies in the understanding
of the model.
- we don't match anything and only remove changed entities to add the
updated one, without link between them.
I am not sure about an easy way to develop this feature. But someone has
probably an idea...
Cheers,
Jannik
2012/8/3 Andrea Caracciolo <andyy.mailbox(a)gmail.com>
On Aug 2, 2012, at 9:25 PM, jannik.laval wrote:
Hi Andrea,
On Jul 31, 2012, at 3:11 PM, Andrea Caracciolo <andyy.mailbox(a)gmail.com>
wrote:
Hi Jannik,
Are you saying that this feature can't be added because some already
implemented actions are not always working as expected ? Did i understand
correctly ?
The feature can be added, but is not :)
Do you think you can fix it ?
Do you need help with it ?
I attached a small code snippet which might help developing a possible
solution…
<orion.txt>
It seems to be a good first approach, but I think that loading all the 2nd
model to remove it after is not efficient.
A solution could be to read the mse file and create only the necessary
entities using orion methods.
Indeed it's not very efficient. It takes around 10 min to compare 2 small
sized models (5mb MSE each).
I will try to do something during August.
If you need it, you can also propose source code, and I can review it.
I'm looking forward to use it. Please keep me informed.
I will send you some code in case i start working on it.
Cheers,
Andrea
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
~~Dr. Jannik Laval~~
École des Mines de Douai
Enseignant-chercheur
http://www.jannik-laval.eu