Executing Call Event Trigger in STM using CST

Moderator: Moderators

Executing Call Event Trigger in STM using CST

Postby bradley.ayres.ctr@afit.edu » Fri Sep 29, 2017 6:37 am

I've been able to simulate execution of signal, time, and change events in a state machine using Cameo Simulation Toolkit but am having trouble with call events. How do you enable a transition that has a call event as the trigger? I've attached my example state machine. Thanks!

State Machine Module.mdzip
You do not have the required permissions to view the files attached to this post.
bradley.ayres.ctr@afit.edu
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Thu Oct 15, 2015 11:45 am

Re: Executing Call Event Trigger in STM using CST

Postby bradley.ayres.ctr@afit.edu » Fri Sep 29, 2017 11:43 am

I see from the CST User's Guide that triggers can only be signal, time, or change events. Call Events are not supported. Is there a plan to add that feature in the future?
bradley.ayres.ctr@afit.edu
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Thu Oct 15, 2015 11:45 am

Re: Executing Call Event Trigger in STM using CST

Postby chanon_s » Mon Oct 02, 2017 3:58 am

Dear Customer

Call events have been supported since CST 18.2. Please see this link for the user guide of call events.

In addition to simulate a transition with a call event, you need to call that matching operation, specified in the call event trigger on that transition, for example, via a CallOperationAction in an activity diagram or a CallMessage in a sequence diagram. That operation must not have any method specified. Otherwise, the behavior which is specified on that method's operation will be invoked and call event occurrence will not be generated to the event pool.

Moreover, you can use the diagram context menu to trigger a call event when running simulation. You can do this by right clicking a transition with call event specified > Simulation > Fire Transition, as displayed in the image below:

fire_transition.png


Sincerely

Chanon S.
No Magic Customer Support
You do not have the required permissions to view the files attached to this post.
chanon_s
Customer Support
Customer Support
 
Posts: 91
Posts Rating:7
Joined: Thu Dec 04, 2014 2:21 am

Re: Executing Call Event Trigger in STM using CST

Postby bradley.ayres.ctr@afit.edu » Mon Oct 02, 2017 7:04 am

Thank you so much! I greatly appreciate the help.
bradley.ayres.ctr@afit.edu
Forum Newbie
Forum Newbie
 
Posts: 9
Posts Rating:0
Joined: Thu Oct 15, 2015 11:45 am


Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 0 guests

cron