Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mastering UML with Rational Rose 2002

Similar presentations


Presentation on theme: "Mastering UML with Rational Rose 2002"— Presentation transcript:

1 Mastering UML with Rational Rose 2002
Information System Engineering Introduction to UML Source Mastering UML with Rational Rose 2002

2 Mastering UML with Rational Rose 2002
Introduction NOW, Systems must be developed in "Internet time." This faster pace has increased the need for flexible systems. System changes must happen fast This is where the Unified Modelling Language (UML) enters the picture. UML is the industry standard modelling notation for object oriented systems, and is the premiere platform for rapid application development Source Mastering UML with Rational Rose 2002

3 Mastering UML with Rational Rose 2002
Introduction to Object Oriented With object oriented programming, developers create blocks of code, called objects. These objects are then used by the various applications. Should one of the objects require modification, a developer needs to make the change only once Source Mastering UML with Rational Rose 2002

4 Mastering UML with Rational Rose 2002
Object Oriented Advantages One of the primary advantages of the object oriented paradigm is the ability to build components once and then use them over and over again (Reusability) The benefit of flexibility can be realized only by designing an object oriented system well. This requires knowledge of some principles of object orientation: Encapsulation Inheritance Polymorphism Source Mastering UML with Rational Rose 2002

5 Mastering UML with Rational Rose 2002
Object Oriented Advantages cont. Encapsulation means combining a piece of information with the specific behaviour that acts upon that information, then packaging these into an object. Another way to look at encapsulation is that we divide the application into small parts of related functionality The benefit of encapsulation is that it limits the effects of changes to the system Example: Bank Account Object (Information: account number, balance, customer name, address, account type, interest rate, and opening date), (Behaviour: open, close, deposit, withdraw, change type, change customer, and change address) As a result, any changes to the banking system regarding accounts can simply be implemented in the account object Source Mastering UML with Rational Rose 2002

6 Mastering UML with Rational Rose 2002
Object Oriented Advantages cont. Inheritance is a mechanism that lets you create new objects based on old ones One of the major benefits of inheritance is ease of maintenance. When something changes that affects all child objects, only the parent object needs to change—the child objects will automatically inherit the changes Example: Mammals There are hundreds of different types of mammals: dogs, cats, humans, whales, and so on. Each of these has certain characteristics that are unique and certain characteristics that are common to the whole group, such as having hair and being warm blooded. In object oriented terms, there is a mammal object that holds the common characteristics. This object is the parent of the child objects cat, dog, human, whale, etc. The dog object inherits the characteristics of the mammal object, and has some additional dog characteristics of its own, One of the major benefits of inheritance is ease of maintenance. When something changes that affects all mammals, only the parent object needs to change—the child objects will automatically inherit the changes. Source Mastering UML with Rational Rose 2002

7 Mastering UML with Rational Rose 2002
Object Oriented Advantages cont. Polymorphism means having many forms or implementations of a particular functionality Example: Graphic drawing system we might be building a graphic drawing system. When the user wants to draw something, be it a line, circle, or rectangle, the system issues a draw command. The system is comprised of many types of shapes, each of which contains the behaviour to draw itself. So, when the user wants to draw a circle, the circle object's draw command is invoked. By using polymorphism, the system figures out as it is running which type of shape is being drawn. Source Mastering UML with Rational Rose 2002

8 Mastering UML with Rational Rose 2002
System Development Life Cycle Requirements Collection Requirements Analysis System Design System Development System Testing System Deployment System Maintenance Source Mastering UML with Rational Rose 2002

9 Mastering UML with Rational Rose 2002
System Modeling – How? A model helps you plan a system before you build it Take the business needs of the users Map them into requirements that your team can use and understand Take these requirements and generate code from them By mapping the requirements to the code, you can ensure that the requirements are actually met by the code, and that the code can easily be traced back to the requirements Business Needs Requirements Model Code Source Mastering UML with Rational Rose 2002

10 Mastering UML with Rational Rose 2002
Visual Modeling is the process of taking the information from the model and displaying it graphically using a standard set of graphical elements A standard is vital to realizing one of the benefits of visual modeling: communication Communication between users, developers, analysts, testers, managers, and anyone else involved with a project After creating these models, we can show them to all interested parties, and those parties can glean the information they find valuable from the model. For example, users can visualize the interactions they will make with the system from looking at a model. Analysts can visualize the interactions between objects from the models. Developers can visualize the objects that need to be developed and what each one needs to accomplish. Testers can visualize the interactions between objects and prepare test cases based on these interactions. Project managers can see the whole system and how the parts interact. And chief information officers can look at high−level models and see how systems in their organization interact with one another. All in all, visual models provide a powerful tool for showing the proposed system to all of the interested parties. Source Mastering UML with Rational Rose 2002

11 Mastering UML with Rational Rose 2002
Visual Modeling – What can we Model? How the system works on several levels The interactions between the users and a system The interactions of objects within a system The interactions between systems Source Mastering UML with Rational Rose 2002

12 Mastering UML with Rational Rose 2002
UML - Unified Modeling Language UML DIAGRAMS Business Use Case diagram Use Case diagram Activity diagram Sequence diagram Collaboration diagram Class diagram Statechart diagram Component diagram Deployment diagram These model diagrams illustrate different aspects of the system Source Mastering UML with Rational Rose 2002

13 Mastering UML with Rational Rose 2002
Rational Rose is a visual modeling tool to aid in the analysis and design of object oriented software systems It is used to model the system before any code is written Rational Rose will help developers by generating code (C++, Ada, CORBA, Java, COM objects, Visual Basic, XML) Rose can reverse engineer code and create a model based on an existing system When a change occurs to the model, Rose can modify the code to incorporate the change Source Mastering UML with Rational Rose 2002

14 Mastering UML with Rational Rose 2002
Rational Rose – Different Versions Rose Modeler, which allows you to create a model for your system, but will not support code generation or reverse engineering Rose Professional, which allows you to generate code in one language Rose Enterprise, which allows you to generate code for the different languages we previously mentioned. A model can have components that are generated in different languages .Net Tdx, allows the generation of code to the .Net framework Source Mastering UML with Rational Rose 2002


Download ppt "Mastering UML with Rational Rose 2002"

Similar presentations


Ads by Google