UNIT-5 Behavioral Modeling (UML)
Behavioral
modeling is a way of representing how a system behaves and interacts
over time. It focuses on what the system does, how
objects communicate, and how actions are triggered by events.
It is mainly used
during system analysis and design to understand system
functionality clearly.
Behavioral
modeling helps to:
·
Understand system
functionality
·
Visualize
interaction between components
·
Capture dynamic
behavior of a system
· Improve
communication between developers and clients
Example (Student Login System)
|
Diagram |
Representation |
|
Use Case |
Login, Register,
Logout |
|
Sequence |
Student →Login Form
→ Server → Database |
|
Activity |
Enter ID →Enter
Password → Validate → Access |
|
State |
Logged out →Logging
in → Logged in |
Interaction describes how different objects or components of a system communicate with each other to complete a task. It focuses on message passing and collaboration between objects.
A stereotype is used to extend UML elements with extra meaning. It is written inside. A stereotype is a label that gives special meaning to a UML element.
Interaction
Diagram
Activity
Diagram
An Activity Diagram
is a UML diagram used to show the flow of
actions or steps in a process or system.
It represents:
·
Start and end of
a process
·
Sequence of
activities
·
Decision making
·
Parallel
activities
Example
Start → Enter details → Verify → Result → End
State
Chart Diagram (UML)
A State
Chart Diagram (also called a State Machine Diagram)
is a behavioral diagram in UML used to show the different states of an
object/system and how it changes from one state to another based on events.
It is mainly used to model dynamic behavior of a system.
·
How an object
behaves over time
·
What events
change its state
·
What actions
happen in each state
Assignment -3
- User Registration & Login
- Browse Products
- Add to Cart
- Place Order
- Make Payment
- Admin manages products and orders
- Student and Librarian as actors
- Issue Book
- Return Book
- Search Book
- Pay Fine
- Withdraw Cash
- Check Balance
- Deposit Money
- Change PIN
- Student, Course, Teacher classes
- Student enrolls in Course
- Teacher teaches Course
- Account, Customer, Transaction
- Customer has Account
- Account generates Transaction
- User, Product, Order, Payment
0 comments:
Post a Comment