What is meant by a state-based system?
reactive system that behaves differently to evetns depending on what state its in
How do we describe a reacitve system?
What is meant by the alphabet of a state machine?
What is meant by “Completing a Machine”?
Add in to a state machine diagram all missing transitions from the alphabet
What can be specified by a state machine?
Can capture different levels of abstraction: high level control and low level behaviour
What is contained in a UML Frame label?
frame type code
name of UML element
What is the difference between a Behavioural State MAchine and a Protocol State MAchine?
Behavioural:
Protocol:
Why is nondeterminism an issue? WHat is a fix?
Means to next state is unknown, could choose arbitrary transition out of options
Use preconditions; add guards to each conflicting tranisition
How are events presented to a UML state machine?
one at a time
How are transitions enabled in a UML state machine?
What is meant by “Run-to-Completion” when refering to state machine semantics?
All triggered events must be processed before the triggering event is considered finished
What are the 2 methods of composing state machines?
- concurrent state machines; 2 independent state machines inside a state.
With nested UML state machines, which transitions take precedence if there is a name coflict? substate or superstate
Substate; to do with inheritance & overriding
Where do we enter/exit a substate?
Enter at default initial state
Can exit from any/all active substates
How can a child subclass be compatible with its parent superclass?
What is the difference between a state diagram and an activity diagram?
State: all activity happens on transitions
states are quiescent (nothing happens in states)
Activity: all activity happens in nodes
flows represent transfer of control