It is getting very weird:
I have a subtype of MooseModel for which it works:
ModelSub1 new add: (Parameter new name: 'toto' ; mode: 'inMode' ; yourself ) ; asMSEString
---> ((Parameter (id: 1) (name 'toto') (mode 'inMode')))
and yet another subtype (in the same image) of this one for which it does not work:
ModelSub2 new add: (Parameter new name: 'toto' ; mode: 'inMode' ; yourself ) ; asMSEString
---> ((Parameter (id: 1) (name 'toto')))
There is nothing to me in the methods added by ModelSub2 that would justify changing the behavior of MSE exporting.
I am currently tracing in // the 2 instructions above. And I do see that the meta description does not include the 'mode' property for the ModelSub2
but why ???
nicolas
On 08/09/2014 16:41, Tudor Girba wrote:
Hi,
I cannot reproduce the problem.
Here is what I did:
FAMIXClass compile: 'mode <MSEProperty: #mode type: #String> ^ mode'; compile: 'mode: aString mode := aString'. MooseModel resetMeta. cls := FAMIXClass new mode: 'test'. model := MooseModel new. model add: cls. model asMSEString
==> ( (FAMIX.Class (id: 1) (mode 'test')))
Cheers, Doru
On Mon, Sep 8, 2014 at 3:50 PM, Nicolas Anquetil <nicolas.anquetil@inria.fr mailto:nicolas.anquetil@inria.fr> wrote:
nope I did set it and I checked it in the model nicolas On 08/09/2014 15:20, Tudor Girba wrote:
Could it be that it is nil? Doru On Mon, Sep 8, 2014 at 3:15 PM, Nicolas Anquetil <nicolas.anquetil@inria.fr <mailto:nicolas.anquetil@inria.fr>> wrote: I defined a new property: mode <MSEProperty: #mode type: #String> <MSEComment: 'The mode (input/output) for this parameter'> ^ mode I reinitialized the meta model I set the property for an entity but the property is not exported in "model asMSEString" :-( any suggestion? nicolas _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch> https://www.iam.unibe.ch/mailman/listinfo/moose-dev -- www.tudorgirba.com <http://www.tudorgirba.com> "Every thing has its own flow" _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com http://www.tudorgirba.com
"Every thing has its own flow"
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev