Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [papyrus-rt-dev] Question about Trigger Guards

The constraint is not owned by the trigger but by the transition. It's the stereotype that distinguishes a trigger guard from the transition's guard. So if you have a constraint that doesn't have the stereotype, you don't know if it's a trigger guard or a transition guard.

BTW import is not yet adding the RTGuard stereotypes, but there is a bug for it.

--
Ernesto.
 

On Tue, Feb 7, 2017 at 11:21 AM Christian Damus <give.a.damus@xxxxxxxxx> wrote:
Hi, Team,

I am now working on support for state machine inheritance in the state machine diagram.  Along the way, I have updated a few of the utilities that support presentation of decorations in the diagram (and the explorer) to use the façade API to simplify access to the details of potentially inherited elements.

However, I have a test failure in the State Machine Diagram Tests in the validation of the decorations for transitions:  a transition that is supposed to show the shield decoration for a trigger guard and a gear decoration for a transition effect is now not showing the guard decoration.

It turns out that the reason for this is that the trigger guard constraint in the test model does not have the «RTGuard» stereotype applied.  It is my understanding from the UML-RT Profile Specification that this stereotype is required to designate a constraint as a trigger guard, so the façade API will not report a guard for a trigger when this stereotype is missing.  The reason being that, otherwise, the constraint is merely informative (I suppose).

My questions are:  should the façade API and the tooling not ignore constraints for triggers that omit this stereotype?  Should the tooling not apply this stereotype to the constraint that it creates for a trigger guard?

Thanks,

Christian
_______________________________________________
papyrus-rt-dev mailing list
papyrus-rt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/papyrus-rt-dev
--
Ernesto Posse
Zeligsoft

Back to the top