1. Trang chủ
  2. » Cao đẳng - Đại học

Slide công nghệ phần mềm chương 5 system modeling

66 32 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 66
Dung lượng 769,93 KB

Nội dung

SOFTWARE ENGINEERING Chapter – System Modelling Jul 2013 Topics covered • Context models • Interaction models • Structural models • Behavioral models • Model-driven engineering Chapter System modeling Jul 2013 Chapter System modeling System modeling • the process of developing abstract models of a system, with each model presenting a different view or perspective of that system • representing a system using some kind of graphical notation, which is now almost always based on notations in the Unified Modeling Language (UML) • helps the analyst to understand the functionality of the system and models are used to communicate with customers Jul 2013 Chapter System modeling Existing and planned system models • Models of the existing system • are used during requirements engineering • to help clarify what the existing system does and can be used as a basis for discussing its strengths and weaknesses • then lead to requirements for the new system • Models of the new system • are used during requirements engineering • to help explain the proposed requirements to other system stakeholders • Engineers use these models to discuss design proposals and to document the system for implementation Jul 2013 Chapter System modeling System perspectives • An external perspective • model the context or environment of the system • An interaction perspective • model the interactions between a system and its environment, or between the components of a system • A structural perspective • model the organization of a system or the structure of the data that is processed by the system • A behavioral perspective • model the dynamic behavior of the system and how it responds to events Jul 2013 Chapter System modeling UML diagram types • Activity diagrams • show the activities involved in a process or in data processing • Use case diagrams • show the interactions between a system and its environment • Sequence diagrams • show interactions between actors and the system and between system components • Class diagrams • show the object classes in the system and the associations between these classes • State diagrams • show how the system reacts to internal and external events Jul 2013 Chapter System modeling Use of graphical models • As a means of facilitating discussion about an existing or proposed system • Incomplete and incorrect models are OK as their role is to support discussion • As a way of documenting an existing system • Models should be an accurate representation of the system but need not be complete • As a detailed system description that can be used to generate a system implementation • Models have to be both correct and complete Jul 2013 Chapter System modeling Context models • Illustrate the operational context of a system • show what lies outside the system boundaries • Social and organisational concerns may affect the decision on where to position system boundaries • Architectural models show the system and its relationship with other systems Jul 2013 Chapter System modeling System boundaries • System boundaries are established to define what is inside and what is outside the system • They show other systems that are used or depend on the system being developed • The position of the system boundary has a profound effect on the system requirements • Defining a system boundary is a political judgment • There may be pressures to develop system boundaries that increase / decrease the influence or workload of different parts of an organization Jul 2013 Chapter System modeling The context of the MHC-PMS 10 Jul 2013 Chapter System modeling MDA transformations 52 Jul 2013 Chapter System modeling Multiple platform-specific models 53 Jul 2013 Chapter System modeling 54 Summary • A model is an abstract view of a system that ignores system details Complementary system models can be developed to show the system’s context, interactions, structure and behavior • Context models show how a system that is being modeled is positioned in an environment with other systems and processes • Use case diagrams and sequence diagrams are used to describe the interactions between users and systems in the system being designed Use cases describe interactions between a system and external actors; sequence diagrams add more information to these by showing interactions between system objects • Structural models show the organization and architecture of a system Class diagrams are used to define the static structure of classes in a system and their associations Jul 2013 Chapter System modeling 55 Summary (cont.) • Behavioral models are used to describe the dynamic behavior of an executing system This behavior can be modeled from the perspective of the data processed by the system, or by the events that stimulate responses from a system • Activity diagrams may be used to model the processing of data, where each activity represents one process step • State diagrams are used to model a system’s behavior in response to internal or external events • Model-driven engineering is an approach to software development in which a system is represented as a set of models that can be automatically transformed to executable code Jul 2013 Chapter System modeling More • Read [2] for all other diagrams in UML 56 Jul 2013 57 Chapter System modeling Collaboration diagrams – Example • Collaboration diagram for use-case Login 1: login(uname,pswd) : People 1.2 [succ = true]: welcome : Database : LoginForm 1.1: succ := Verify(uname,pswd) Jul 2013 58 Chapter System modeling Collaboration diagrams – Example • Collaboration diagram for use-case Registers course 2: register 1: submit(uname, psswd) : LoginForm 1.2 [succ = true]: welcome 3: submit(crsOffering) : Student 2.1: create 3.4: beSuccessful 1.1: succ := verify(uname, psswd) regForm : RegisterForm 3.1: reg := FetchReg(crsOffering) 3.3: SetReg(reg) 3.2: AddStudent(code) : Registration : Database Jul 2013 59 Chapter System modeling Collaboration diagrams vs Sequence diagrams -• Sequence Example diagram for use-case Login : LoginForm : People 1: submit(uname, psswd) 1.2: welcome : Database 1.1: verify(uname, psswd) Jul 2013 Chapter System modeling Collaboration diagrams vs Sequence diagrams - Example • Sequence diagram for use-case Register courses : Student regForm : RegisterForm : LoginForm 1: submit(uname, psswd) : Registration : Database 1.1: verify(uname, psswd) 1.2: welcome 2: register 2.1: create submit(crsOffering) 3.1: reg := fetchReg(srcOffering) 3.2: addStudent(code) 3.3: setReg(reg) 3.4: beSuccessful( ) 60 Jul 2013 Chapter System modeling 61 Activity diagrams • An activity diagram is a special kind of a statechart diagram that shows the flow from activity to activity within a system • Activity diagrams address the dynamic view of a system They are especially important in modeling the function of a system and emphasize the flow of control among objects • Focuses on activities Activity diagrams Jul 2013 Chapter System modeling 62 Jul 2013 Activity diagrams • Decisions: A decision involves selecting one control-flow transition out of many control-flow transitions based upon a condition Chapter System modeling 63 Jul 2013 Activity diagrams • Concurrency: Concurrency involves selecting multiple transitions simultaneously For example, while the printer is printing a report, the printer must also monitor for other incoming print requests Chapter System modeling 64 Jul 2013 Chapter System modeling 65 Activity diagrams – Example • Activity diagram for submitting action in LoginForm LoginForm Database Show input for username and password Verify [ psswd invalid ] Reject [ psswd valid ] Welcome swimlane Jul 2013 Chapter System modeling 66 Activity diagrams – Example • Activity diagram for submitting in RegisterForm RegForm Database Registration submit Read course offerings Look for registration [ reg found ] [ reg not found ] Create registration Show success Fetch registration Update registration Add student ... Chapter System modeling Jul 2013 Chapter System modeling System modeling • the process of developing abstract models of a system, with each model presenting a different view or perspective of that system. .. on where to position system boundaries • Architectural models show the system and its relationship with other systems Jul 2013 Chapter System modeling System boundaries • System boundaries are... 2013 Chapter System modeling Sequence diagram for View patient information 23 Jul 2013 Chapter System modeling 24 Sequence diagram for Transfer Data Jul 2013 Chapter System modeling 25 Build a Sequence

Ngày đăng: 11/12/2021, 21:48

TỪ KHÓA LIÊN QUAN