Behavioral models are the models that are used to describe the overall behavior of a system.
- Two types of behavioral model are:
- Data processing models that show how data is processed as it moves through the system.
- State machine models that show the systems response to events.
- These models show different perspectives so both of them are required to describe the system’s behavior.
1. Data Processing Model
Data processing models is the modeling diagram that uses the data flow diagrams to model the system’s data processing.
- It shows the processing steps as data flows through a system.
- Simple and intuitive notation that customers can understand.
- Show end-to-end processing of data.
An example of the order processing DPM can be shown as:
2. State Machine Model
State machine model is the modeling technique that models the behavior of the system in response to external and internal events.
- They show the system’s responses to stimuli so are often used for modeling real-time systems.
- State machine models show system states as nodes and events as arcs between these nodes. When an event occurs, the system moves from one state to another.
- State charts are an integral part of the UML and are used to represent state machine models.
- State charts allow the decomposition of a model into sub-models.
An example of state machine model can be shown by drawing the state chart of Microwave oven model as shown below:
Fig: Microwave oven model
91 total views, 0 views today