Sie sind auf Seite 1von 6

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

SOFTWARE ENGINEERING DEPARTMENT

LAB 01
Introduction to UML modeling, Star UML modeling tool, assignment of projects to groups
The purpose of this laboratory session is to introduce you to UML and its use in software development process and installation of StarUML. Book:Schaums outlines UML second Edition by Simon Bennett, John Skelton, ken lunn Why use UML? Around 1995, five OO methods shared 75% of the market OMT led with 34-40% of market, hence UML was based on the OMT method Booch and Schlaer Mellor were also popular All other methods shared remaining 25% of the market, including corporate-defined OO methods Unified Modeling Language The three amigos created UML in 1997-8 Grady Booch James Rumbaugh Ivar Jacobson Their three 1999 books are instant classics: The UML: User Guide The UML: Reference Manual The Unified Software Development Process Introduction to UML UML is defined by the Object Management Group (www.omg.org), a worldwide consortium of OO product vendors First standardized in 1997 UML1.5 (March 2003) UML 2.0 and 2.1 now are in use Booch, Rumbaugh, and Jacobson all work for Rational Software Inc. (rational.com)
Software Requirements Engineering 3rd Semester- SE UET Taxila

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

SOFTWARE ENGINEERING DEPARTMENT At a deeper level primarily of interest to Model Driven Architecture (MDA) CASE tool vendors underlying the UML notation is the UML meta-model that describes the semantics of the modeling elements. It isn't something a developer needs to learn. UML Lineage UML not only replaced the methods by Booch, Rumbaugh, and Jacobson, but also borrowed from: Fusion (Operation description & message numbering) Embley (Singleton class) Meyer (Pre- and post-conditions) Shlaer and Mellor (Object life cycles) Martin and Odell (Classification) Wirfs-Brock (Responsibilities) Harel (State charts) Gamma, et al (Patterns) So UML borrowed from all of the best ideas UML is NOT a methodology UML is NOT a process UML is NOT proprietary (Now under the OMG) UML is strictly Notations Three ways to apply UML UML as sketch UML as blue print UML as Programming Language Agile Modeling It emphasizes UML as sketch Three Perspectives to Apply UML Conceptual Specification Implementation Different perspectives with UML For example, here is a brief version of the Play a Dice Game use case: Play a Dice Game: Player requests to roll the dice. System presents results: If the dice face value totals seven, player wins; otherwise, player loses.

Software Requirements Engineering

3rd Semester- SE

UET Taxila

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

SOFTWARE ENGINEERING DEPARTMENT

UML Diagrams UML 2 defines 13 basic diagram types, divided into two general sets: Structural Modeling Diagrams Structure diagrams define the static architecture of a model 1. Package diagrams are used to divide the model into logical containers or 'packages' and describe the interactions between them at a high level 2. Class or Structural diagrams define the basic building blocks of a model: the types, classes and general materials that are used to construct a full mode. Behavioral Modeling Diagrams Behavior diagrams capture the varieties of interaction and instantaneous state within a model as it 'executes' over time. 1. Use Case diagrams are used to model user/system interactions. They define behavior, requirements and constraints in the form of scripts or scenarios 2. Activity diagrams have a wide number of uses, from defining basic program flow, to capturing the decision points and actions within any generalized process 3. State Machine diagrams are essential to understanding the instant to instant condition or "run state" of a model when it executes 4. Communication diagrams show the network and sequence of messages or communications between objects at run-time during a collaboration instance 5. Sequence diagrams are closely related to Communication diagrams and show the sequence of messages passed between objects using a vertical timeline 6. timing Diagrams fuse Sequence and State diagrams to provide a view of an object's state over time and messages which modify that state
Software Requirements Engineering 3rd Semester- SE UET Taxila

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

SOFTWARE ENGINEERING DEPARTMENT Interaction Overview diagrams fuse Activity and Sequence diagrams to provide allow interaction fragments to be easily combined with decision points and flows UML and OOA&D How should responsibilities be allocated to classes of objects? How should objects collaborate? What classes should do what? UML has 13 diagrams, but three types are most commonly used Use case modeling Class modeling Interaction modeling with patterns Just because English has 600,000 words doesnt mean you need to use them all 3000 is plenty for most occasions What is StarUML StarUML is a software modeling platform that supports UML (Unified Modeling Language). Description StarUML - The Open Source UML/MDA Platform. StarUML is an open source project to develop fast, flexible, extensible, featureful, and freely-available UML/MDA platform running on Win32 platform. The goal of the StarUML project is to build a software modeling tool and also platform that is a compelling replacement of commercial UML tools such as Rational Rose. Installation of StarUML 1. Follow the link to download the StarUML 2. Save its setup 3. After complete download Double click the .exe file and run its setup. Give the path for installation and click install. This way installation will start. Finish the installation and launch the StarUML. Modeling With StarUML StarUML supports 11 UML diagram types. The user can freely create and manage different diagrams as needed.

Software Requirements Engineering

3rd Semester- SE

UET Taxila

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

SOFTWARE ENGINEERING DEPARTMENT


1. After starting SU, a template box titled "New Project by Approach" may be present: if it is,

select "Empty Project" and press "Ok". Approach.

It is suggested that you uncheck "Set Default

2. Open a New proect.


3. You will find the following window.

Software Requirements Engineering

3rd Semester- SE

UET Taxila

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING

SOFTWARE ENGINEERING DEPARTMENT

You can explore the tool in detail and discuss it.

Software Requirements Engineering

3rd Semester- SE

UET Taxila