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.
At a balance of zero, a close event selects Approved because its transition is drawn higher.
At a balance of zero, a close event executes both outgoing transitions sequentially because their guards overlap.
Changing Review's guard to balance < 0 gives exactly one enabled close transition for every real balance.
At a balance of zero, a close event enables both outgoing transitions because both guards are true.
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.
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.
Resuming nested states after a pause
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:
Every entry into Warming starts a fresh 8 s warm-up. Completion immediately takes the controller into Running.