Docsity

Understanding System Modelling: Behavioural Modelling and Data Modelling, Slides of Software Engineering

Partial preview of the text

Download Understanding System Modelling: Behavioural Modelling and Data Modelling and more Slides Software Engineering in PDF only on Docsity!

P

t II

P

art II

RequirementsSystem Models

Software Engineering

docsity.com

Objectives

•^

To explain why the context of a system should bemodelled as part of the RE processmodelled as part of the RE process

-^

To describe behavioural modelling, data modellingand object modellingand object modelling

-^

To introduce some of the notations used in theUnified Modeling Language (UML)Unified Modeling Language (UML)

-^

To show how CASE workbenches support systemmodellingmodelling

docsity.com

System Modelling

•^

System modelling helps the analyst to understand thef^

ti

lit

f th

t^

d

d l

d t

functionality of the system and models are used tocommunicate with customers.

-^

Different models present the system from differentperspectives– External perspective showing the system’s context

or environment;

  • Behavioural perspective showing the behaviour of

the system;

y^

  • Structural perspective showing the system or data

architecturearchitecture.

docsity.com

Scenario-Based Modeling

docsity.com

Scenario-Based Modeling

1.1 Use Case Diagrams

Example: University Record System

  • A University record system should keep information

about its students and academic staff.

  • The system should be able to handle the following

d^

(f

f^

t^

)

commands (few features).

  • Add and remove university members (students, and academic

staff)

)

  • Add and Delete subjects– Assign and Un-assign subjects to students– Assign and Un-assign subjects to academic staff.

docsity.com

Scenario-Based Modeling

1.1 Use Case Diagrams

  • A set of ACTORS
    • An actor is used to represent something that uses our

system.

  • A set of USE CASES:
    • Each describes a possible kind of interaction between

an actor and the system.

  • A number of RELATIONSHIPS between these

entities (Actors and Use Cases).

  • Relationships are simply illustrated with a line

connecting actors to use cases.

docsity.com

Use-case Diagram

g

Use

‐case

diagram

for

surveillance

function

(Roger

Pressman

Chapter

8,

Sixth

Edition)

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Activity Diagrams consist of activities, states and

transitions between activities and states

  • Activity Diagrams describe
    • How activities are coordinated to provide a service.• The events needed to achieve some operation• How the events in a single use case relate to one

g

  • another• How a collection of use cases coordinate to create• A workflow for an organization

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Action States: Simple Action States
    • A simple action state represents processing.• In the UML, an action state is shown as a shape with a

straight top and bottom and convex arcs on the twoid

d i

l b l d

ith th

f^

ti

sides, and is labeled with the name of an operation or adescription of the processing.

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Action States: Initial and Final states
    • An initial action state indicates the first action state on

an activity diagram.

  • A final action state indicates the last action state on an

ti it

di

activity diagram.

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Flow Transitions
    • A flow transition shows how action states are ordered

or sequenced. There are various types of flowtransitions

Control flow transitions

  • Control-flow transitions– Object-flow transitions

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Control-flow Transitions
    • A control-flow transition indicates the order of action

states. That is, once a source action state completes itsprocessing, a target action state starts its processing

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Control-flow Transitions

docsity.com

Scenario-Based Modeling

1.2 Activity Diagrams

  • Object-flow Transitions
    • An object-flow transition indicates that an action state

inputs or outputs an object.

docsity.com