On 8 avr. 09, at 14:43, Alexandre Bergel wrote:
Hi All,
Running HismoTest raises an error. Apparently, FAMIXSourceAnchor
seems to be not properly fame described.
A "MooseModel resetMeta does not help. FAMIXSourceAnchor is a
subclass of MooseEntity, whereas in its annotation states it is a
subclass of Object. I tried to replace Object by MooseEntity but
same result.
FamixSourceAnchor is correctly described (at least with respect to
FamixEntity, which itself does not declare MooseEntity as its Fame
superclass - might be a problem but right now, no bug is raised)
The problem is directly related to the message I sent one week ago,
about 'How do you programmatically define/load Famix?'
SampleData for Hismo did not use the MooseModel metaTower but instead
initialize its own metatower with FamixEntity subclasses. It used to
work but it does not work anymore since FamixSourceAnchor is not a
subclass of FamixEntity.
Thus the preferred way is to use MooseModel metaTower (see
SampleData#readMSEStream:)
I also add a mutator in famix model in order to be able to load Hismo
sample data. HismoTest is runnable again even if there is some
regression (as well as ImportingMSE). I dont have time to look into
details but feel free to ask.
--
Simon