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.
We are offering a 30% discount off all SysML/MBSE course bookings secured by 31st March 2025! Contact us now to apply!