Simulating State Machines with Transition Guards

Starting point for “ask and learn more about MagicDraw”

Moderator: Moderators

Simulating State Machines with Transition Guards

Postby rosswoodruffe@gmail.com » Tue Oct 22, 2019 8:20 am

I'm new to Cameo Systems Modeller and I've been trying to simulate a simple state machine. I'd like the SM to transition to one of two states depending on the value of a property owned my the block that contains the SM. So if "x>100" it will transition to one state, but otherwise it will transition to the other.

I've tried various languages for the guard expression, but the simulation just does nothing when it gets to the event for the transition. The value property is showing up as a simulation variable and I don't get any error messages. I've tried using two different transitions (one for each condition), a decision node and even just having a single transition, without any events and the simulation still does nothing.

I'm obviously missing something but I have not idea what so I'd really appreciate some help.

Thanks,

Ross
rosswoodruffe@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:1
Joined: Tue Oct 22, 2019 7:15 am

Re: Simulating State Machines with Transition Guards

Postby beccared09@gmail.com » Thu Feb 17, 2022 5:53 pm

This is a late response, but in case someone else is looking for the answer,
A Practical Guide to SysML, 3rd Edition queue
By Sanford Friedenthal, Alan Moore, Rick Steiner
Section 11.7. covers this topic. The variable as a value property, this is a change event
beccared09@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 16
Posts Rating:0
Joined: Thu May 14, 2020 2:35 pm


Return to New to MagicDraw

Who is online

Users browsing this forum: No registered users and 1 guest