Professional Documents
Culture Documents
OOAD
OOAD
OOAD
A. Actors: Actors are anything that interacts with the system, such as people, external systems, or
devices. Actors are represented by stick figures or icons.
B. Use cases: A set of scenarios that describes an interaction between a actor and a system. Use cases
are represented by Oval.
C. System Boundary: Rectangle diagram representing the boundary between the actors and the
system.
ii. Extend: Represents the extension of the use case to include optional functionality. Dotted
line with an open arrow is drawn from the extension use case to the base use case. Write
<< extend >> above arrowhead line
iii. Generalization: It is a relationship between a general use case and more specific use case
that inherits features in it. Shows as solid line with a hollow arrow point
Activity diagram is basically a flow chart to represent the flow form one activity to another activity.
The control flow is drawn from one operation to another and this flow can be sequential, branched
or concurrent. This flow can be sequential, branched, or concurrent. Activity diagrams deal with all
type of flow control by using different elements such as fork, join, etc
2. Action or Activity: Represented by rounded-corner rectangles, actions signify the individual steps
or tasks performed within the activity.
Activity
3. Transmission (Flow): When the activity of a state completes, flow of control passes to the next
Action. Represented by arrow symbol
4. Join: Join and Fork have the same notation (either a horizontal or vertical bar). A black bar with
several flows entering in it and one leaving from it. Denoted the end of parallel activities
A class is a description of a set of objects that share the same attributes, operations, relationships, and
semantics • A class diagram is a diagram describing the structure of a system • Shows the system’s: –
Classes, Attributes, Methods and Relationship among classes
CourseSchedule
Course
add(c: Course)
remove (c:
Course
A sequence diagram is a type of interaction diagram that shows how processes operate with one
another and in what order. It is commonly used in software engineering to document and
understand the flow of messages and events in a system. Sequence diagrams are part of the
Unified Modeling Language (UML).
Lifelines: A lifeline is a named element which depicts an individual participant in a sequence diagram. So
basically, each instance in a sequence diagram is represented by a lifeline. Lifeline elements are located
at the top in a sequence diagram.
a. Activation: Thick box over object's life line; drawn when object's method is on the stack
b. Message: Optionally indicated using a dashed arrow with a label indicating the return value.
Different arrowheads for normal/ concurrent (asynchronous) methods
Design Class Di agrams contain class or interface names, classes, method and simple attributes. These
are sufficient for basic class definitions. Elaborate from associations to add reference attributes.
Example:
class ProductSpecification {
int price;
String description;
public ProductSpecification()
price=20;
description="good";
{ return price;
}}
class SalesLineItem
{ int quantity;
public SalesLineItem(int q)
quantity=q;
int p1=p.price;
return st;
}}
class Sale
int t=s.subTotal();
return t;
}}
System.out.println(s.total());
}}