SE4 (Very Short Summary)
SE4 (Very Short Summary)
● Functional Requirements
○ Define what a system should do.
○ Example: "Send an email when a customer signs up."
● Non-Functional Requirements
○ Define how the system should perform.
○ Example: "The system must handle 10,000 transactions per second."
4. Unified Modeling Language (UML)
● Definition
○ UML is a standardized language used to model software solutions, system
behaviors, and business processes.
● Categories of UML Diagrams
○ Structural Diagrams – Represent system structure (e.g., classes, components).
○ Behavioral Diagrams – Show system behavior (e.g., interactions, workflows).
● Structure of a Class
○ Name (Top)
○ Attributes (Middle)
○ Methods (Bottom)
● Relationships in Class Diagrams
○ Association – A basic relationship between two classes.
○ Aggregation – A "has-a" relationship where the child object can exist
independently.
○ Composition – A "strong has-a" relationship where the child cannot exist
independently.
● Visibility Modifiers
○ + (Public) – Accessible by all.
○ # (Protected) – Accessible within the class and derived classes.
○ - (Private) – Accessible only within the class.
1. Object Diagram
● Represents a snapshot of instances of classes at a given time.
● Shows real-world examples of objects and their relationships.
● Key Elements:
○ Objects (Instances of classes)
○ Attributes (With values)
○ Links (Relationships between objects)
Example:
If a Class Diagram has a Car class, an Object Diagram could show an instance of a car:
makefile
Copy code
Car1: Car
Color = Red
Brand = Toyota
3. Package Diagram
● Used to organize large systems into smaller, manageable parts.
● Groups related classes, interfaces, and components.
● Helps in modularization of the system.
Example:
A Bank System can have different packages:
● AccountManagement
● TransactionProcessing
● CustomerSupport
4. Component Diagram
● Represents physical components in a system.
● Shows how software components interact via interfaces.
● Used for high-level system design.
Example:
In a web application, components could be:
5. Deployment Diagram
● Represents hardware and software deployment in a system.
● Shows physical architecture, including servers, devices, and databases.
● Nodes (hardware) and artifacts (deployed software components) are connected.
Example:
6. Profile Diagram
● Used for customizing UML for a specific domain.
● Defines stereotypes, tagged values, and constraints.
● Helps in extending UML for specialized applications.
Example:
Example:
A Car object contains:
● Engine
● Wheels
● Seats
8. Behavioral Diagrams
● Focus on system behavior and interactions.
● Includes Use Case, Activity, State Machine, and Interaction Diagrams.
Example:
Online Order Process:
Example:
For an ATM Machine:
Example:
For a Login Process:
Example:
For an Online Order System: