SysMLv1: Cameo Simulation Toolkit: StateMachine shallowHistory Pseudostate [with mini video]

Gallery
Tutorial

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'?
Click on the image to view it full size
Watch simulation
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.
We are offering a 30% discount off all SysML/MBSE course bookings secured by 31st March 2025! Contact us now to apply!
Up next
Notes
Snippets (quotes/extracts)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)
Visit also
Visit also (backlinks)
External links