OCL - 272 Software Engineering Fall 2008 Instructor Tevfik...

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

View Full Document Right Arrow Icon
272: Software Engineering Fall 2008 Instructor: Tevfik Bultan Lecture 4: Object Constraint Language
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) Combines several visual specification techniques use case diagrams, component diagrams, package diagrams, deployment diagrams, class diagrams, sequence diagrams, collaboration diagrams, state diagrams, activity diagrams Based on object oriented principles and concepts encapsulation, abstraction classes, objects Semi-formal Precise syntax but no formal semantics There are efforts in formalizing UML semantics The Object Management Group (OMG, a computer industry consortium) defines the UML standard The current UML language specification is available at: http://www.uml.org/
Background image of page 2
Examples for UML Tool Support There are tools which support UML Can be used for developing UML models and analyzing them IBM’s Rational Rose is a software development tool based on UML. It has code generation capability, configuration management etc. Microsoft Visio has support for UML shapes and can be used for basic UML diagram drawing. ArgoUML (http://argouml.tigris.org/), open source tool for developing UML models USE (http://www.db.informatik.uni-bremen.de/projects/USE/) an open source tool which supports UML class diagrams and Object Constraint Language
Background image of page 3

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

View Full DocumentRight Arrow Icon
UML UML can be used in all phases of software development specification of requirements, architectural design, detailed design and implementation There are different types of UML diagrams for specifying different aspects of software: Functionality, requirements Use-case diagrams Architecture, modularization, decomposition Class diagrams (class structure) Component diagrams, Package diagrams, Deployment diagrams (architecture) Behavior State diagrams, Activity diagrams Communication, interaction Sequence diagrams, Collaboration diagrams
Background image of page 4
UML Class Diagrams Class diagram describes Types of objects in the system Static relationships among them Two principal kinds of static relationships Associations between classes Subtype relationships between classes Class descriptions show Attributes Operations Class diagrams can also show constraints on associations
Background image of page 5

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

View Full DocumentRight Arrow Icon
Example Class Diagram Order dateReceived isPrepaid number: String price: Money dispatch() close() Product Order quantity: Int price: Money isSatisfied: Bool 1 1..* Ordered Product Constraint for order class Product 1..* 1 Corporate Customer contactName creditRating creditLimit remind() billForMonth(Int) Customer name address creditRating():String Personal Customer creditCardNumber indicates generalization 1 1..* Employee 0..1 1..* Sales Rep {creditRating()=“poor”} indicates that credit rating is always set to poor for a Personal Customer { if Order.customer.creditRating() = “poor” then Order.isPrepaid = true }
Background image of page 6
Sequence Diagrams A sequence diagram shows a particular sequence of messages exchanged between a number of objects
Background image of page 7

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

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

This note was uploaded on 10/04/2011 for the course CEN 5016 taught by Professor Workman,d during the Spring '08 term at University of Central Florida.

Page1 / 79

OCL - 272 Software Engineering Fall 2008 Instructor Tevfik...

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

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