Docsity

System Models-Basics of Software Engineering-Lecture Slides, Slides of Software Engineering

Partial preview of the text

Download System Models-Basics of Software Engineering-Lecture Slides and more Slides Software Engineering in PDF only on Docsity!

Lecture Overview

 System models are abstract descriptions of systems

whose requirements are being analysed

 Objectives - To explain why the context of a system should

be modelled as part of the RE process

 To describe

 Behavioural modelling (FSM, Petri-nets),

 Data modelling and

 Object modelling (Unified Modeling Language, UML)

System Models

 User requirements must be written in such a way that

non-technical experts can understand them, e.g., by using

natural language

 Detailed system requirements may be expressed in a

more technical way however

 One widely used technique is to document the system

specification as a set of system models

 These are graphical representations which describe

business processes and the system to be developed

 They are an important bridge between the analysis and

design processes

“A Picture Paints a Thousand Words”

+Person()

+setName() : void

+setSsn() : void

+setDob() : void

+setSpouse() : void

+setChildren() : Set

+getName() : String

+getSsn() : String

+getDob() : Date

+getSpouse() : Person

+getChildren() : Set

+getAge() : int

#name : String

#ssn : String

#dob : Date

#spouse : Person

#children : Set

Person

+setMajor() : void

+setClassStanding() : void

+computeGpa() : void

-major : String

-classStanding : String

-gpa : float

Student

+Professor()

+setRank() : void

+setTenureDate() : void

+setDepartment() : void

+getRank() : String

+getTenureDate() : Date

+getDepartment() : String

-rank : String

-tenureDate : Date

-department : String

Professor

+CourseOffering()

+setSectionNo() : void

+setCourse() : void

+setInstructor() : void

+setSchedule() : void

+setLocation() : void

+setMaxEnrollment() : void

+get...()

+calcAvailable() : int

-sectionNo : int

-course : Course

-instructor : Professor

-schedule : String

-location : String

-maxEnrollment : int

-enrollment : int

-prerequisites : Set

CourseOffering

0..* -teaches

-is taught by

-is taken by

-takes

«extends»

«extends»

System Model Advantages

 They can be easier to understand than using a verbose

natural language description

 System models can leave out unnecessary details of the

system so way may focus on what is important

 A system representation should maintain all the

information of a system

 An abstraction deliberately simplifies the system and picks

out its most salient characteristics

 Different models can focus on different approaches to

abstraction

Model Types

 Data processing model - showing how the data is processed at

different stages

 Composition model - showing how entities are composed of

other entities

 Architectural model - showing principal sub-systems

 Classification model - showing how entities have common

characteristics

 Stimulus/response model - showing the system’s reaction to

events

Context Models

 Context models are used to illustrate the boundaries of a

system

 Identifying the boundaries of the system to be developed is

not always straightforward

 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

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

Example Process Model

Get cost estimates

Accept delivery of equipment

Check delivered items

Validate specification

Specify equipment requir ed

Choose supplier

Place equipment order

Install equipment

Find suppliers

Supplier database

Accept delivered equipment

Equipment database

Equipment spec.

Checked spec.

Delivery note

Delivery note

Order notification

Installation instructions

Installation acceptance

Equipment details

Checked and signed order form

Order details + Blank order form

Spec. + supplier + estima te Supplier list

Equipment spec.

COMP201 - Software Engineering 11

Within system

boundary

Equipment Procurement Process

docsity.com

Data-Processing Models

 Data flow diagrams are used to model the system’s data

processing

 These show the processing steps as data flows through a

system

 IMPORTANT part of many analysis methods

 Simple and intuitive notation

 Show end-to-end processing of data

Example - Order Processing Data Flow Diagram

Complete order form

Or der details + blank

order form

Valida te order

Record order

Send to supplier

Adjust available budget

Budget file

Orders file

Completed order form

Signed order form

Signed order form

Checked and signed order

  • order notification

Order amount

  • account details

Signed order form

Order details

Data Flow Diagrams

 Data Flow Diagrams have an advantage in that they are

simple and intuitive and can thus be shown to users who

can help in validating the analysis

 Developing data flow diagrams is usually a top-down

process

 We begin by evaluating the overall process we wish to

model before considering sub-processes

 Data flow diagrams show a functional perspective where

each transformation represents a single function or

process which is particularly useful during requirements

analysis since it shows end-to-end processing.

Example: Assignment Hand In

 Exercise : Draw a Data Flow Diagram for how an

assignment is completed and submitted in our

department. What are the data sources used? What are

the processes involved?

Statechart Diagrams

 Statechart Diagrams (or State machine models ) show the

behaviour of the system in response to external and

internal events

 They show the system’s responses to stimuli (the event-

action paradigm) so are often used for modelling real-time

systems

 Statechart diagrams 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 Unified Modeling

Language (UML)

Statechart Diagrams

 An initial state is denoted by a solid circle and is optional

(sometimes the system will start in different places and

thus the initial state should be omitted).

 If required, a final state can also be used; this is denoted

by a solid circle with a ring around it.

 We use a level of abstraction so that we can observe the

essential behaviour of the system we want to model.

 Rounded rectangles are used for states. Each state contains

two components, the state name and a brief description of

the action performed in that state (see next slide).