Tags and keywords
In the following BDD fragment and StateMachine setup, if the state machine is initialised and in inner 'StateA', how many times will "Enter B" be printed after responding to the following signal events: 'AtoB', 'LeaveComposite', 'ToHistory'?
video_sim
Watch a high resolution version of the video on Vimeo.
When signal 'AtoB' is received the state machine will enter inner 'StateB' and print "Enter B". When signal 'LeaveComposite' and then 'ToHistory' are received, the shallow history will direct the state machine to RE-ENTER the 'StateB', so the entry Behavior is invoked and "Enter B" is printed a 2nd time.
To celebrate the launch of our comprehensive new SysMLv2/MBSE course we are offering a 50% DISCOUNT off all SysMLv2 group course bookings fully pre-paid by 30th April 2026. This deal ends soon! Contact us now to apply!
