Presentation is loading. Please wait.

Presentation is loading. Please wait.

(Reference: Jason Roff – UML Beginner’s Guide).  Box  Top section is class name  Second section is class attributes (data members)  Third section.

Similar presentations


Presentation on theme: "(Reference: Jason Roff – UML Beginner’s Guide).  Box  Top section is class name  Second section is class attributes (data members)  Third section."— Presentation transcript:

1 (Reference: Jason Roff – UML Beginner’s Guide)

2  Box  Top section is class name  Second section is class attributes (data members)  Third section is class member functions  Notation  + public access  - private access  # protected access

3 Course -enrollmentLimit -nEnrolledStudents -startTime -endTime -instructor +getInstructor() +getStartTime() +getDuration()

4 -enrollmentLimit:Integer = 20 -nEnrolledStudents: Integer=0 -startTime: Date -endTime: Date -instructor: String -meetingDays[1..7]: Integer -/meetingHoursWeek:float

5  Show relationships with line and association name. Professor Student teaches > takes > Course

6 Professor Course 11..* Professors teach 1 or more courses. Courses have exactly one professor. teaches >

7 Professor Course 11..* teaches > Instructor Graduate Student 0..* Teaching Assistant grades >

8  Objects are differentiated from class with an underline and a class name qualifier Course:Cs350 -enrollmentLimit = 20 -nEnrolledStudents = 24 -startTime : 14:00 -endTime: 14:50 -instructor: Ribler

9  Empty arrow points to base class (superclass) from derived class (subclass) Person Professor StudentTutor Teaching Assistant

10 Car Class Engine Class Composition is expressed with a filled diamond. Aggregation is expressed with a unfilled diamond. List Class Sprite Class

11  Model workflows for use-cases (analysis)  Model object behavior (design)

12 Start Symbol End Symbol Activity Symbol (contains action name) Name of Action Decision Points

13 Create FileUpdate File [new file] [file already exists]

14 Create FileUpdate File [new file] [file already exists] Record Data

15  Indicators that an action has taken place Ready Print File Save File Create New File Print(File, Printer) SaveAs(Filename) CreateNew(Filename)

16  Show concurrency Login Load Grades Load Classes

17 Load Grades Load Classes Display Data

18 Telephone Operator POS System Database Wrapper Determine Type Load Inventory Purchase() Display Error [failure] Change Inventory Store Inventory Display Error [failure]

19  Model interaction between active objects  Consist of two components  Active objects  Interactions between active objects SpaceShip Shoot

20 SpaceShip UFO Shoot X X indicates the end of the objects life.

21 SpaceShip UFO Issue Warning [UFO in Range]

22  Synchronous – Flow is suspended until return from the call. (filled arrow head)  Return – Synchronous message is no longer blocked.  Asynchronous – Non-blocking message. Sender doesn’t wait for reply.  Flat – synchronization is unspecidfied.

23 SpaceShip Missile > X

24 SpaceShip UFO Issue Warning [UFO in Range] Under Threat Surrender Taken Prisoner Imprisoned

25 SpaceShip UFOAsteroid [in alien war] [at peace] shoot

26 ATM Login Prompt for transaction type Logged in


Download ppt "(Reference: Jason Roff – UML Beginner’s Guide).  Box  Top section is class name  Second section is class attributes (data members)  Third section."

Similar presentations


Ads by Google