MBPLE

Other topics that do not fit in any of categories.

Moderator: Moderators

MBPLE

Postby ida-electra.dahl@samares-engineering.com » Thu Jan 28, 2021 9:34 am

Hello,
I have tested MBPLE both in Cameo Systems Modeler 19.0 SP3 and SP4. There are some things I am unable to do, and I was wondering if anyone can help me?

1. The Variation Point type "Element Tag" seems to only work for Enumerate Features
I have tried using "Element Tag" variation points with Features that are boolean, but it does not show correctly with the preview. However, if I use enumerate Features, it works just fine. This seems to be a bug?

2. I am unable to change the "when" property on a Time event. I have tried Primitive Property, Element Property and Tag Property, but not correspind. I believe Primitive Property should work, as it is essentially a string, but it seems that somehow the "when" property is actually not typed at all? And for this reason cannot be changed? I have used time events on transitions to self in a state machine, and would like to be able to change the interval at which it transitions. A workaround is, of course, to create multiple transitions with different time events and then use Existence Variation Points on them, but that is a pretty messy solution...

3. I have trouble writing validation rules for relations between enumerate features, as I have trouble accessing the enumerate literal values of the feature. If anyone could provide me with an example of a validation rule relation between two enumerate features, that would be extremely helpful!

Thank you,
Ida
ida-electra.dahl@samares-engineering.com
Forum Newbie
Forum Newbie
 
Posts: 10
Posts Rating:0
Joined: Fri Apr 05, 2019 3:14 am

Re: MBPLE

Postby ogirdor » Tue Mar 16, 2021 8:15 am

Hello Ida,

I do not have much experience with MBPLE, but I have tested it a little bit in SP4. Regarding your third question: if I have an enum "MyEnum" in Package "MyPackage" with literals "Lit1", "Lit2" and "Lit3", then you can refer to the first literal in an OCL validation rule by writing "MyPackage::MyEnum::Lit1". If the names you are using include spaces, replace them with underscores.
ogirdor
Forum Beginner
Forum Beginner
 
Posts: 61
Posts Rating:17
Joined: Wed Jun 03, 2020 4:41 am

Re: MBPLE

Postby ida-electra.dahl@samares-engineering.com » Tue Mar 16, 2021 9:13 am

Hello ogridor,

Thank you for this! I have tested, an with this I am able to compare specific enumeration literals. I didn't know they have the same access sematic as stereotypes when writing OCL, but now I do. Thank you very much!
ida-electra.dahl@samares-engineering.com
Forum Newbie
Forum Newbie
 
Posts: 10
Posts Rating:0
Joined: Fri Apr 05, 2019 3:14 am


Return to Other

Who is online

Users browsing this forum: No registered users and 0 guests