A packaging controller uses the state hierarchy shown below. Working and Executing are composite states, each with one region. Normal entry into Working selects Ready; normal entry into Executing selects Warming.
The controller behaves as follows:
A pause occurs after 5 s in Running. It exits Working into a separate Suspended state and records history for Working's region. Nothing progresses while suspended.
Consider two independent resumptions from this same recorded situation. One resume transition targets the shallow history vertex (HHH) in Working's region. The other targets the deep history vertex (H∗H^*H∗) in that region. Neither resume transition has an effect.
For each resumption, give the active leaf state immediately after entry, before any positive time passes, and the delay from resumption until the first completed part. Give exact state names and delays in seconds to the nearest whole second. Unfinished production was discarded when Running was exited.
Unlock full course notes by signing up
Ordering transition behaviours
A motor controller is in the simple state Ready when a go event is dispatched. The external transition to the simple state Running is labelled go [available] / reserve(). The value of available is true.
Ready has exit behaviour logReadyExit(), and Running has entry behaviour startMotor(). No other behaviours are defined. Arrange the following checks and behaviours in their execution order for this transition.
Checking guard boundaries
An account controller has one region and no nested states. Open is active, and its only outgoing transitions are shown below. Balance can be any real-valued amount in dollars. The model specifies no transition priorities.
Which statements correctly assess the diagram and the proposed repair? Select all that apply.
Counting concurrent configurations
A scanner controller's Operating state contains three orthogonal regions: Mode, Supply, and Cover. A configuration here specifies one active leaf state in each region. The figure lists the available states.
Count the permitted configurations in each variant below. Treat each variant independently, and enter exact integers.
Base model: every combination of the listed states is permitted.
Tracing a session timeout
A kiosk session enters Active at time t=0 st=0\ \text{s}t=0 s. On every entry to Active, a relative time event after(18 s) is scheduled for 18 seconds later. Exiting Active cancels that pending occurrence. The logging behaviours do not change this timing.
The diagram's refresh loop is an external self-transition; ping is an internal response. Events arrive and are processed immediately in this order: ping at 4 s, refresh at 6 s, ping at 12 s, refresh at 19 s, and ping at 27 s. Transition processing takes negligible time, and no further events arrive.
At what time does the session enter Expired? Answer in seconds measured from t=0t=0t=0, to the nearest whole second.