1 / 23

SWE 205 - Introduction to Software Engineering

SWE 205 - Introduction to Software Engineering. Lecture 12 – System Modeling. Lecture Objectives. To explain why the context of a system should be modelled as part of the RE process To describe behavioural modelling, data modelling and state machine models. System modelling.

Télécharger la présentation

SWE 205 - Introduction to Software Engineering

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SWE 205 - Introduction to Software Engineering Lecture 12 – System Modeling

  2. Lecture Objectives • To explain why the context of a system should be modelled as part of the RE process • To describe behavioural modelling, data modelling and state machine models

  3. System modelling • System modelling helps the analyst to understand the functionality of the system and models are used to communicate with customers.

  4. System modelling • Different models present the system from different perspectives • External perspective showing the system’s context or environment; • Behavioural perspective showing the behaviour of the system; • Structural perspective showing the system or data architecture.

  5. Context models • Context models are used to illustrate the operational context of a system - they show what lies outside the system boundaries. • Developing a simple architectural model is the first step. • Architectural models show the system and its relationship with other systems.

  6. The context of an ATM system Architecture models do not show the relationship Between the other systems in the envirnoment.

  7. Process models • Process models show the overall process and the processes that are supported by the system. • Data flow models may be used to show the processes and the flow of information from one process to another.

  8. Equipment procurement process

  9. Behavioural models • Behavioural models are used to describe the overall behaviour of a system. • Two types of behavioural 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.

  10. Behavioural models • These models show different perspectives so both of them are required to describe the system’s behaviour.

  11. Data-processing models • Data flow diagrams (DFDs) may be used to model the system’s data processing. • DFDs show the processing steps as data flows through a system. • Simple and intuitive notation that customers can understand. • Show end-to-end processing of data.

  12. Order processing DFD

  13. Data flow diagrams • DFDs model the system from a functional perspective. • Each transformation represents a single function or process. • Tracking and documenting how the data associated with a process is helpful to develop an overall understanding of the system.

  14. Data flow diagrams • Data flow diagrams may also be used in showing the data exchange between a system and other systems in its environment.

  15. Insulin pump DFD

  16. State machine models • These model the behaviour of the system in response to external and internal events. • They show the system’s responses to stimuli so are often used for modelling real-time systems.

  17. State machine models • 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. • Statecharts are an integral part of the UML and are used to represent state machine models.

  18. Microwave oven model

  19. Microwave oven state description

  20. Microwave oven stimuli

  21. Microwave oven operation

  22. Key Points • A model is an abstract system view. Complementary types of model provide different system information. • Context models show the position of a system in its environment with other systems and processes. • Data flow models may be used to model the data processing in a system. • State machine models model the system’s behaviour in response to internal or external events

  23. Announcements • Major 1: Today (i.e. Wed November 5, 2008) • 8:00 PM – 9:30 PM (Bld 22, room 130)

More Related