Lecture 14 16 Activity Diagram
Lecture 14 16 Activity Diagram
Analysis Model:
System
Modeling
Requirements Analysis
Analysis Modeling
Approaches
Structured analysis
Considers data and the processes that transform the data as
separate entities
Data is modeled in terms of only attributes and relationships (but
no operations)
Processes are modeled to show the 1) input data, 2) the
transformation that occurs on that data, and 3) the resulting
output data
Object-oriented analysis
Focuses on the definition of classes and the manner in which they
7
collaborate with one another to fulfill customer requirements
Procedural/Structured Analysis
Scenario-based
modeling
Flow-oriented
modeling
Class-based
modeling
Behavioral
modeling
Class diagrams
Analysis packages
CRC models
Collaboration diagrams
State diagrams
Sequence diagrams
8
Scenario-Based Modeling
Activity Diagram
NOTATION
2. Transition
Activity1()
1. Activities
Activity2()
NOTATION - 2
[x>0]
[x>0]
Activity1()
[x=0]
[x<0]
3. Decision Diamond
[x=0]
[x<0]
NOTATION - 3
Notation - 3
Start Marker
Stop Marker
Notation - 4
Developers
Swimlane
Testers
Swimlane
Markers
Swimlane
Application/Department/Group/Role Boundaries
Activity Diagrams
Transitions
Transitions
Branching
Branching
Fork
Join
Swimlanes (1)
A swimlane specifies a locus of activities
To partition the activity states on an activity diagram into
groups
each group representing the business organization responsible for
those activities
Swimlanes (2)
exactly
one
swimlane,
but
Librarian
[borrower]
[returning]
[returner]
Wait in queue
[borrowing]
Record return
Record borrowing
Prepare for next
member
The ATM will service one customer at a time. A customer will be required to insert an
ATM card and enter a personal identification number (PIN) - both of which will be sent
to the bank for validation as part of each transaction. The customer will then be able to
perform one or more transactions.
The card will be retained in the machine until the customer indicates that he/she desires
no further transactions, at which point it will be returned. The ATM will communicate
each transaction to the bank and obtain verification that it was allowed by the bank. If
the bank determines that the customer's PIN is invalid, the customer will be required to
re-enter the PIN before a transaction can proceed.
If the customer is unable to successfully enter the PIN after three tries, the card will be
permanently retained by the machine, and the customer will have to contact the bank to
get it back. If a transaction fails for any reason other than an invalid PIN, the ATM will
display an explanation of the problem, and will then ask the customer whether he/she
wants to do another transaction.
The ATM will also maintain an internal log of transactions to facilitate resolving ambiguities
arising from a hardware failure in the middle of a transaction. Entries will be made in the
log when the ATM is started up and shut down, for each message sent to the Bank (along
with the response back, if one is expected), for the dispensing of cash, and for the receiving
of an envelope.
Log entries may contain card numbers and amounts, but for security will never contain a
PIN. To avail ATM facility, a customer is required to open/have an account in the bank and
apply for the ATM card. A customer can have one or more accounts and for each account,
only one ATM card will be provided.
The bank also provides SMS updates for every transaction of customers account. To obtain
SMS updates, customer is required to register his/her mobile number against his account in
the bank.