uml as a specification language for embedded systems. by, mir ahmed ali, asst. professor, ecm...

32
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School of Electronics, SNIST.

Upload: dale-rodney-bryan

Post on 05-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML as a Specification Language for

Embedded Systems.

By,Mir Ahmed Ali,Asst. Professor,

ECM department,SNIST.

By,Prof. Narsiah sir,

Director of

School of Electronics, SNIST.

Page 2: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 2

Software Development Life Cycle:

The various stages that comes during the development of a software are : Analysis Requirements Design Coding Implementation Testing Maintenance.

Page 3: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 3

Design Phase:

Once all the requirements are completed ie. both functional and non-functional , then the next phase is design phase.

During this phase, the results of analysis and the requirement phase are implemented with the help of diagrams and the language used to draw diagram is UML.

Page 4: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 4

History of UML

Page 5: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 5

History of UML….

In the beginning, there were three principal methods:

• The Booch method, devised by Grady Booch,

• Object-oriented Modeling Technique (OMT), devised by Jim Rumbaugh,

• Object-oriented Software Engineering (also known as Objectory), devised by Ivar Jacobson.

The three methods had many ideas on common, yet different notation for expressing those ideas (for example, OMT classes were represented by rectangle boxes, whereas in Booch methods they were represented as cloud shapes).

Page 6: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 6

UUMMLL

UnifiedUnified:

Unification of earlier object-oriented analysis and design methods.

Same concepts and notation through the whole development lifecycle.~~

~~ Modeling:Modeling:

• Representing in terms of Models or Diagrams

• Diagrams emphasize something about the system

Language:Language:

• A graphical language~~

Page 7: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 7

Cont….

Later all these three methods were Unified with a common notation and a new modeling language came into existence known as Unified Modeling Language.

In the year 1997, a new version UML 1.0 was released by an organization known as OMG.

To use UML we have various software's like Rational Rose, Umbrella ,TogetherJ , Net Beans, Eclipse and so on….

Page 8: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 8

UML

The Unified Modeling Language (UML), in the fieldof software engineering, is a standardized specificationlanguage for object modeling.

Unified Modeling Language is defined as industry standard general-purpose modeling language that consists of graphical and textual notations that describes the various aspects of software systems.

UML is defined as a visual modeling language that provides a set of rules to creates a blue print of a software.

Page 9: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 9

Acc. to Grady Booch….

According to Booch , it is defined as a language for

1. Visualizing2. Specifying3. Constructing4. Documenting

the artifacts of a software intensive system.

Page 10: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 10

More on UML………….

UML is not dependent on any programming language or any technology. A language for modeling object oriented systems.

It’s a standard maintained by Object Management Group.

The main goal of UML was that they need a standard notation to describe the structure and behavior of the system.

UML is a language for communicating about the system and its requirements.

Page 11: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 11

Importance of Modeling…….

Page 12: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 12

Why do we model?

To understand requirementsTo communicate with everyone involved in the project i.e. customer, analyst, domain expert, designerTo manage complexity

Page 13: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 13

Basic Buildling blocks:

In UML, they are three kinds of building blocks:

1. Things2. Relationships3. Diagrams

Things represents objects in a model. Relationships is connection between

things so that they can communicate with each other by sending messages.

Diagrams is collection of things and relationships in a meaningful format.

Page 14: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 14

Types of Things:

1. Class2. Interface3. Collaboration4. Use-case5. Active Class6. Node7. Component8. Interaction9. State Machine10. Package11. Note

Page 15: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 15

Types of Relationships

1. Dependency2. Association3. Generalization4. Realization

Page 16: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 16

Types of Diagrams:

The UML diagrams are categorized into two:

1. Structural Diagrams or Static Diagrams

2. Behavioural Diagrams or Dynamic Diagrams

Page 17: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 17

Structural Diagrams

Structural modeling assists in understanding and communicating the elements that make up a system and the functionality the system provides.

Page 18: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 18

Types of Structural Diagrams

1. Class Diagrams2. Object Diagrams3. Component Diagrams4. Deployment Diagrams

Page 19: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 19

Behavioural Diagrams

Behavioural Modeling assists in understanding and communicating how elements interact with each other and collaborate to provide the functionality of the system.

Page 20: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 20

Types of Behavioural Diagrams

1. Use Case Diagrams2. Sequence Diagrams3. Collaboration Diagrams4. State Chart Diagrams5. Activity Diagrams

Page 21: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 21

Use Case diagrams

It is a technique which is used to capture the functional requirements of the system.

This diagram consists of use cases , actors and relationships between them.

A Use Case represents a unit of interaction (for a type of functionality) between a user (human or machine) and the system.

An actor can be any entity that performs a role with in a given system or machine or human.

Page 22: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 22

Class Diagrams

Provides a structural view of the classes of a system, their features and the inter-relationships between the classes.

Probably the most popular UML diagram used to convey system structure.

Page 23: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 23

Sequence Diagrams

This diagram displays the time sequence of the objects participating in the interaction. This consists of the vertical dimension (time) and horizontal dimension (different objects).

Page 24: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 24

Collaboration Diagram

This diagram displays the interaction between objects and their links to one another irrespective of time. Numbers are used to show the sequence of messages.

Page 25: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 25

State Diagrams

State diagrams are used to describe the behaviour of a system.

State diagrams describe all of the possible states of an object as events occur. In other words it describes how an object changes its state that govern its behavior in response to stimuli from the environment

Each diagram usually represents objects of a single class and track the different states of its objects through the system.

Page 26: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 26

State Chart Diagram….

Page 27: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 27

Activity Diagrams

Activity diagrams describe the workflow behaviour of a system.

Activity diagrams are similar to state diagrams because activities are the state of doing something.

The diagrams describe the state of activities by showing the sequence of activities performed.

A key feature of Activity diagrams is the ease of showing parallelism.

Page 28: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 28

Page 29: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 29

Component Diagram

Component Diagram displays the high level packaged structure of the code itself. 

Dependencies among components are shown, including source code components, binary code components, and executable components. 

Some components exist at compile time, at link time, at run times well as at more than one time.

Page 30: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 30

Deployment Diagram

Deployment Diagram describes the hardware components and their relationships.

In other words, this diagram consists of objects known as Nodes and these nodes are connected to each other with the help of association relationship.

Examples of Nodes are Servers , Systems or Printers.

Page 31: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 31

Any Questions…………….

Page 32: UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School

UML for Embedded Systems. 32