OOM-use case, class, sequence(CSE)
OOM-use case, class, sequence(CSE)
Week 1-2 : Model use case diagrams for the specified projects
A use case diagram is a diagram that shows a set of use cases and actors and their
relationships
Use cases
Actors
Dependency, generalization, and association relationships
Packages, instances of use cases
Notes and constraints
Apply use case diagrams to model the static use case view of a system by modeling
Identify the actors that surround the system by considering which groups
require help from the system to perform their tasks; which groups are needed to
execute the system’s functions; which groups interact with external hardware
or other software systems; and which groups perform secondary functions for
administration and maintenance
Organize actors that are similar to one another in a generalization /
specialization hierarchy
Where it aids understandability, provide a stereotype for each such actor
Populate a use case diagram with these actors and specify the paths of
communication from each actor to the system’s use cases
Establish the context of the system by identifying the actors that surround it.
For each actor, consider the behavior that each expects or requires the system to
provide.
Name these common behaviors as use cases.
2
Factor common behavior into new use cases that are used by others; factor variant
behavior into new use cases that extend more main line flows.
Model these use cases, actors, and their relationships in a use case diagram.
Adorn these use cases with notes that assert nonfunctional requirements; we may have
to attach some of these to the whole system
AIM : To analyze, design and model use case diagram for ATM system
3
SCENARIO : The customer carries out following operations through ATM system
1.
2.
3.
1.
AIM : To analyze, design and model use case diagram for Railway reservation system
4
SCENARIO : The passenger carries out following operations through the system
1.
2.
3.
1.
1. Librarian
2. Student
Librarian :
1. Add Publication
2. Add books
3. Add Branch
4. Add Student
5. Issue Book
6. Add student issue book
7. Apply Penalty
8. Change Password
9. View Reports
Student
1. Search Book
2. Return Book
3. Pay Penalty
USE DIAGRAM:
Week 3-4 : Model class diagrams for the above specified projects
Class diagrams are used to model the static design view of a system. Graphically, a class diagram is a
collection of vertices and arcs. A class diagram shows a set of
6
Classes
Interfaces
Collaborations
Relationships.
May contain notes and constraints.
May also contain packages or subsystems
Uses:
Modeling Techniques
To model a schema
AIM : To analyze, design and model class diagram for ATM system
1.
2.
3.
1.
1.
Class Diagram
AIM : To analyze, design and model class diagram for railway reservation system
1.
2.
3.
1.
1.
Class Diagram
AIM : To analyze, design and model class diagram for library management system
1.
2.
3.
1.
1.
Class Diagram
Interaction Diagrams
Sequence Diagrams
A sequence diagram is an interaction diagram that emphasizes the time ordering of messages
Graphically it is a table that shows objects arranged along the X axis and messages
ordered in increasing time along the Y axis
Place the objects that participate in the interaction at the top of your diagram, across
the X axis, object that initiates the interaction at the left, and increasingly more
subordinate objects to the right
Place the messages that these objects send and receive along the Y axis, in order of
increasing time from top to bottom