SysMLv1: Cameo Simulation Toolkit: StateMachine deepHistory 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 InnerComposite" be printed after responding to the following signal events: 'ToInner', '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 'ToInner' is received the state machine will enter state 'InnerComposite', so the entry Behavior of 'InnerComposite' will print "Enter InnerComposite". Then 'DeepStateA' is entered (which will print "Enter DeepStateA"). When 'AtoB' is received the state machine will enter 'DeepStateB' (and print "Enter DeepStateB"). When signal 'LeaveComposite' and then 'ToHistory' are received, the deep history will direct the state machine to RE-ENTER 'DeepStateB' VIA both 'Composite' and 'InnerComposite', so the entry Behavior of 'InnerComposite' is invoked and "Enter InnerComposite" 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