SYSC_3303_UML.9

SYSC_3303_UML.9 - SYSC 3303 Real-Time Concurrent Systems...

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

View Full Document Right Arrow Icon
1 SYSC 3303 Real-Time Concurrent Systems Review of the UML (Unified Modeling Language) Class Diagrams, Object Diagrams, Collaboration Diagrams Modeling Concurrency with the UML and Recent Changes to the UML Copyright © 2001-2004 D.L. Bailey and 2007 L.S. Marshall, Systems and Computer Engineering, Carleton University revised July 9 th , 2007
Background image of page 1

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

View Full DocumentRight Arrow Icon
SYSC 3303 - Modelling Concurrency with the UML 2 What's in This Set of Slides? • Review of key elements of UML class diagrams, object diagrams, and collaboration diagrams – all students should be familiar with the UML from one or more of SYSC 1101, SYSC 2004, SYSC 3100, COMP 1006, COMP 3004, … • For more information, consult The Unified Modeling Language User Guide , Grady Booch, James Rumbaugh, Ivar Jacobson, Addison-Wesley, 1999, ISBN 0-201-57168-4 OMG Unified Modeling Language Specification, Version 1.4 (http://www.omg.org/technology/documents/formal/uml.htm)
Background image of page 2
SYSC 3303 - Modelling Concurrency with the UML 3 UML Notation for Classes ClassName compartment for attributes compartment for operations compartment for responsibilities compartment for name
Background image of page 3

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

View Full DocumentRight Arrow Icon
SYSC 3303 - Modelling Concurrency with the UML 4 Complex name class DisklessWorkstation Class Names • Every class has a name - usually a noun or short noun phrase drawn from the system being modeled • Convention: capitalize the first letter of every word in a class name • A class may be drawn showing only its name
Background image of page 4
SYSC 3303 - Modelling Concurrency with the UML 5 Complex attributes real imaginary Attributes • An attribute name is usually a noun or short noun phrase • Convention: capitalize the first letter of every word in the attribute except the first letter • Attributes can be drawn showing only their names, as in this example
Background image of page 5

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

View Full DocumentRight Arrow Icon
SYSC 3303 - Modelling Concurrency with the UML 6 attributes Complex real : Float imaginary : Float = 0 Attributes • Can also specify an attribute’s class and a default initial value
Background image of page 6
SYSC 3303 - Modelling Concurrency with the UML 7 Operations Complex operations plus() minus() times() dividedBy() magnitude() • An operation name is usually a verb or short verb phrase • Convention: capitalize the first letter of every word in an operation except the first letter • Operations can be drawn showing only their names, as in this example
Background image of page 7

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

View Full DocumentRight Arrow Icon
SYSC 3303 - Modelling Concurrency with the UML 8 Complex operations plus(c : Complex) : Complex minus(c: Complex) : Complex times(c: Complex) : Complex dividedBy(c:Complex) : Complex magnitude() : Float Operations • Can also specify an operation by stating its signature (name, type and default value (if any) of all parameters; and return type for functions)
Background image of page 8
SYSC 3303 - Modelling Concurrency with the UML 9 Responsibilities Complex responsibilities Responsibilities -- models the mathematical concept of a complex number • Responsibilities are presented as free- form text
Background image of page 9

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

View Full DocumentRight Arrow Icon
SYSC 3303 - Modelling Concurrency with the UML 10 Additional Class Notation •A n italicized class name indicates that the class is
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 58

SYSC_3303_UML.9 - SYSC 3303 Real-Time Concurrent Systems...

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

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