26UMLSEVI - CMSC 132: Object-Oriented Programming II...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 132: Object-Oriented Programming II Unified Modeling Language (UML) Department of Computer Science University of Maryland, College Park
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
UML (Unified Modeling Language) UML is a modeling language for Specifying Visualizing Constructing Documenting object-oriented software
Background image of page 2
Motivation Difficult to describe and analyze Use UML to help Visualize design of software Provide abstract model of software
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Goals Provide a software “blueprint” Simple yet clear abstraction for software Describe software design Clearly Concisely Correctly
Background image of page 4
History of UML Started in 1994 Combines 3 leading OO methods OMT (James Rumbaugh) OOSE (Ivar Jacobson) Booch (Grady Booch)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
UML Diagrams UML provides a number of diagrams that Describe a model of all or part of system From a particular point of view With varying level of abstraction Using certain set of notations System Model 1 Model 2 View 1 View 3 View 2
Background image of page 6
Class Diagram Represents (static) structure of system A class diagram displays Information for class Relationships between classes
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Class Diagram Battery load() 1 2 Time now() PushButton state push() release() 1 1 1 1 1 2 blinkIdx blinkSeconds() blinkMinutes() blinkHours() stopBlinking() referesh() LCDDisplay SimpleWatch Class Association Multiplicity Attributes Operations Class diagrams represent structure of system
Background image of page 8
Class Diagrams Information for class contains Name State Behavior
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Class Diagram Class name is required Other information optional State, behavior Types, visibility…
Background image of page 10
UML Class Diagrams Java Code Different representation of same information Name, state, behavior of class Relationships between classes Should be able to derive one from the other Motivation UML Java Implement code based on design written in UML Java UML Create UML to document design of existing code
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 41

26UMLSEVI - CMSC 132: Object-Oriented Programming II...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online