Comp 468 Lecture Slide Chapter 03 (Unified Modeling Language)
Comp 468 Lecture Slide Chapter 03 (Unified Modeling Language)
◦ Diagram extensions
Unified Modelling Language
▪ UML is a standard language for modeling software systems.
▪ UML is a notation that resulted from the unification of OMT (Object
Modeling Technique) and OOSE (Object-Oriented Software
Engineering).
▪ Serves as a bridge between the requirements specification and the
implementation.
▪ Provides a means to specify and document the design of a software
system.
▪ It is process and programming language independent.
▪ It is a general-purpose language used to create visual designs for a
system
▪ Is particularly suited to object-oriented program development.
Cont…
Asynchronous message
when the message caller does not wait for the receiver to
process the message and return before sending other
messages to other objects within the system.
Cont..
Return message
It indicates that the
message receiver is done
processing the message
and is returning control
over to the message caller.
Triggered by a
synchronous message
always implies a return
message.
Participant creation message
deletion: an X at bottom of
object's lifeline
◦ Java doesn't explicitly delete
objects; they fall out of scope and
are garbage-collected
Example
Diagrams in the UML: State chart diagram
It is a technique that you can use to describe how your
system behaves and responds.
State chart diagrams describe the dynamic behavior of an
individual object as a number of states and transitions
between these states
◦ A state represent a particular set of values for an object
Given a state, a transition represents a future state the
object can move to and the conditions associated with the
change of state
A state is a condition satisfied by the attributes of an object
◦ A state can be computed from the values of several attributes
Cont…
How to draw?
▪ A state is depicted by a rounded
rectangle
▪ A transition is depicted by open
arrows connecting two states
▪ States are labeled with their name
▪ A small solid black circle
indicates the initial state
▪ A circle surrounding a small
solid black circle indicates a final
state
Cont….
Example: an Incident object in FRIEND can exist in
four states:
Active: denotes a situation that requires a response (e.g., an
ongoing fire, a traffic accident)
Inactive: denotes a situation that was handled, but for which
reports are yet to be written
Closed: denotes a situation that has been handled and
documented
Archived: is a closed incident whose documentation has been
moved to off-site storage
Cont….
Account
Admin
Announcement
Supervisor
Assessment
Acceptance
letter
Department
Head
Assessment security
form/letter
Notification
Student
Applicant
Database
Manager
Field
category
Thank you for your attention!