1 / 21

Chapter 5: System Models

Chapter 5: System Models. Chapter 8 in textbook. Objectives. Understand modelling Understand context models Understand behaviour models Understand object models Understand data models. Overview. What is modelling? Context models Behavioural models Data models Object models. Modeling.

haracha
Download Presentation

Chapter 5: System Models

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. Chapter 5: System Models Chapter 8 in textbook

  2. Objectives • Understand modelling • Understand context models • Understand behaviour models • Understand object models • Understand data models

  3. Overview • What is modelling? • Context models • Behavioural models • Data models • Object models

  4. Modeling • A model is an abstract view of a system • We create a model to gain better understanding of an entity, for example a model of a plane is a small plane. • When the entity is software, the model takes a different form.

  5. A software model A software model must be capable of representing : • the information that the software transforms, • the functions that enable the transformation to occur, and • the behavior of the system as the transformation takes place.

  6. Types of models • Context models • Behaviour models • Data models • Object models

  7. Context models • Context models are used to illustrate the operational context of a system - they show what lies outside the system boundaries.

  8. Context model for ATM

  9. Behavior 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. • These models show different perspectives so both of them are required to describe the system’s behaviour.

  10. Data Processing Models • Data flow diagrams (DFDs) may be used to model the system’s data processing. • These show the processing steps as data flows through a system. • Read book.

  11. 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 from the system’s environment, so are often used for modelling 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. • Statecharts are an integral part of the UML and are used to represent state machine models.

  12. Statecharts • Allow the decomposition of a model into sub-models (see following slide). • A brief description of the actions is included following the ‘do’ in each state. • Can be complemented by tables describing the states and the stimuli.

  13. Microwave oven state model

  14. Microwave oven state description

  15. Microwave oven stimuli

  16. Microwave oven operation

  17. Data model • Used to describe the logical structure of data processed by the system. • An entity-relation-attribute model sets out the entities in the system, the relationships between these entities and the entity attributes • Widely used in database design. Can readily be implemented using relational databases.

  18. Data dictionaries • Data dictionaries are lists of all of the names used in the system models. Descriptions of the entities, relationships and attributes are also included. • Advantages • Support name management and avoid duplication; • Store of organisational knowledge linking analysis, design and implementation; • Many CASE workbenches support data dictionaries.

  19. Data dictionary entries

  20. Object models • Object models describe the system in terms of object classes and their associations. • An object class is an abstraction over a set of objects with common attributes and the services (operations) provided by each object. • Various object models may be produced • Inheritance models; • Aggregation models; • Interaction models. • Read book

  21. DVD Player With your team decide on the stimuli and states for a DVD player. Draw the state diagram

More Related