System behavior

We define system behavior to have an accurate idea of what the system does, as well as to clearly describe the interactions between components of the system. As this is a very simple application, we can clearly describe application behavior with the aid of a diagram. We will make use of a state diagram to properly describe this behavior.

State diagrams: A state diagram is used to describe the behavior of systems. A state diagram describes a system utilizing different possible states. In a state diagram, there exists a finite number of possible states that a system can be in.

The following is the state diagram for our system, taking into consideration the defined use cases:

Each circle in the preceding diagram represents a ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.