How unit 3 is examined
UML notation, modelling and relationships carry the most marks; use case, activity diagram, requirement analysis and stereotypes are single 4-7 mark questions.
Notations
Low weight
Definition. UML (Unified Modeling Language) is the standard graphical language for visualising, specifying, constructing and documenting the artefacts of a software system. UML notations are its standard symbols and text conventions for drawing those models.
Key points.
- A model is a simplified abstraction of the system, built to understand it before coding; modelling manages complexity, gives visualisation and lets stakeholders communicate.
- The four principles of modelling: the choice of model shapes how the problem is solved; every model can be expressed at different levels of precision; the best models are connected to reality; no single model is enough, so a set of nearly independent models is used.
- UML serves visualising, specifying, constructing and documenting a system, and its common notation lets customers, analysts, designers and testers read the same diagram.
- Graphical notations are the symbols: a rectangle for a class, a stick figure for an actor, an oval for a use case, a rounded box for an activity, a box with tabs for a component.
- Textual notations add detail inside the graphics: names, attributes, operations, multiplicity such as 1..*, and constraints in braces such as {ordered}.
- Structural diagrams (class, object, component, deployment) show what the system is; behavioural diagrams (use case, activity, sequence, state) show what it does.
UML is a standard language of graphical and textual notations used to visualise, specify, construct and document a software system.
Answer frame. Open with the UML definition; list its four purposes; give the class, object and component symbols; for modelling, add the four principles; close with UML as the common language between stakeholders.
Asked: [5 marks] (May 2022) Write short notes on Notations. Asked: [7 marks] (May 2022) Explain the importance of modeling and its principles. Asked: [7 marks] (Jun 2025) What is UML, and what purpose does it serve in software development? Discuss its importance in facilitating communication among stakeholders in a project.
Relationships
Medium weight
Definition. A relationship in UML is a connection between two model elements, usually classes, showing how they are linked and how their objects interact.
Diagram.
Key points.
- Association is a structural link between classes, drawn as a plain line with optional name, role and multiplicity; a Customer places Orders.
- Aggregation is a "has-a" whole-part association where the part can exist without the whole, drawn with a hollow diamond at the whole; a Department has Teachers.
- Composition is a stronger aggregation where the part cannot outlive the whole, drawn with a filled diamond; an Order owns its Line items and deleting the order deletes them.
- Generalization (inheritance) is an "is-a" link from a subclass to a superclass, drawn as a solid line with a hollow triangle at the parent.
- Dependency is a weak, temporary "uses" relationship where a change in the supplier may affect the client, drawn as a dashed arrow.
- Relationships show both the structure (association, aggregation, composition, generalization) and the interaction (dependency, messages) between objects.
Association is a link, aggregation is shared whole-part, composition is owned whole-part, generalization is is-a and dependency is uses.
| Relationship | Meaning | Notation | Example |
|---|---|---|---|
| Association | uses / knows | solid line | Student - Course |
| Aggregation | has-a, part independent | hollow diamond | Team - Player |
| Composition | owns, part dies with whole | filled diamond | House - Room |
| Generalization | is-a | hollow triangle | Car - Vehicle |
| Dependency | temporarily uses | dashed arrow | Report - Printer |
Answer frame. Open with the definition; draw the small class diagram with all five notations; describe each in the order association, aggregation, composition, generalization, dependency with one example; close with how they model object interaction.
Asked: [7 marks] (May 2022, Jun 2025) Write short notes on Relationships. Explain the different types of relationships in UML (association, aggregation, composition, inheritance, dependency). How do these relationships help in modeling the interactions between objects? Pitfall: Drawing the diamond at the part instead of at the whole.
Stereotypes
Low weight
Definition. A stereotype is a UML extensibility mechanism that creates a new kind of model element from an existing one, written in guillemets such as <
Key points.
- It extends the UML vocabulary without changing the language itself, so a designer can add domain-specific meaning to an existing element.
- It is written as a name inside double angle brackets << >> placed above or before the element name.
- Common examples are <
> on a class, < >, and the analysis stereotypes < > (user interface), < > (coordination logic) and < > (persistent data). - Other examples include <
> and < > on use case dependencies. - Along with tagged values and constraints, stereotypes form UML's extension mechanisms.
A stereotype, written <
Asked: [5 marks] (May 2022) Write short notes on Stereotypes.
Study of UML based tools Like Rational Rose, Poseidon, etc.
Not asked since 2022
Definition. UML tools are CASE tools used to draw UML diagrams and often to generate code from them.
Key points.
- Rational Rose (IBM) is a commercial tool supporting all UML diagrams, forward code generation and reverse engineering of code into models.
- Poseidon for UML is a Java-based tool derived from ArgoUML, with a community free edition and a paid professional edition.
- Other tools are StarUML, Visio and Enterprise Architect.
- Benefits are consistent diagrams, a shared model repository, documentation and less manual coding.
Conventional v/s OO analysis approach
Not asked since 2022
Definition. Conventional (structured) analysis models the system as processes and data flow; OO analysis models it as interacting objects and classes.
| Basis | Conventional | Object-oriented |
|---|---|---|
| Focus | functions and processes | objects and classes |
| Models | DFD, ER diagram, data dictionary | use case, class, sequence diagrams |
| Data and behaviour | kept separate | encapsulated together |
| Reuse | low | high through inheritance |
| Change | ripples through functions | localised in classes |
Requirement analysis
Low weight
Definition. Requirement analysis is the process of studying, identifying, refining and documenting the needs of stakeholders so that the system to be built is clearly and correctly specified.
Key points.
- Interviews with stakeholders give direct, detailed needs and clear up doubts on the spot.
- Questionnaires collect the views of many users cheaply and quickly.
- Workshops (JAD sessions) bring users and developers together to agree requirements and settle conflicts.
- Use cases capture requirements as actor-system interactions in the user's own terms.
- Prototyping shows a working model early so users can correct misunderstandings.
- The outcome is a documented, verified and prioritised set of requirements in the SRS (Software Requirements Specification).
Requirement analysis identifies, refines and documents stakeholder needs, and its outcome is the SRS.
Answer frame. Open with the definition; explain the five techniques in the order interviews, questionnaires, workshops, use cases, prototyping, saying what each contributes; close with the SRS as the documented result.
Asked: [7 marks] (Jun 2025) What is requirement analysis in the context of software development? Discuss the techniques used in requirement analysis and how they contribute to identifying and documenting the needs of stakeholders?
Use case diagram
Low weight
Definition. A use case diagram shows the actors, the use cases of a system and the associations between them; it describes what the system does for its users.
Key points.
- A use case is a set of actions that the system performs to give an actor a measurable result, drawn as an oval; for example "Withdraw cash".
- An actor is an external user, device or system that interacts with the system, drawn as a stick figure; for example Customer or Bank.
- A flow of events is the step-by-step description of a use case: the main flow is the normal success path, and alternate flows cover errors and exceptions such as a wrong PIN.
- Actors are linked to use cases by association lines, and use cases may be related by <
> and < >.
A use case is a sequence of actions giving an actor a result, an actor is an external role, and the flow of events lists the main and alternate steps.
Answer frame. Define use case, actor and flow of events in turn, each with the ATM example; draw the small diagram; close by writing the main flow and one alternate flow.
Asked: [7 marks] (May 2022) Explain the following with an example: i) Use case ii) Actor iii) Flow of events
Activity diagram
Low weight
Definition. An activity diagram is a UML behavioural diagram that shows the flow of control from one activity to another, like a flowchart, including decisions and parallel flows.
Key points.
- It models the workflow of a use case or an operation as activities (rounded boxes) joined by transitions.
- Notation: filled circle for start, circle with a ring for end, diamond for decision and merge, thick bar for fork and join, and swimlanes to show who is responsible.
- Fork splits one flow into parallel flows and join synchronises them again.
| Basis | Activity diagram | Interaction diagram |
|---|---|---|
| Shows | flow of activities | messages between objects |
| Focus | workflow and control | object collaboration |
| Ordering | decisions, parallel flows | time order of messages |
| Elements | activity, fork, swimlane | object, lifeline, message |
An activity diagram models the flow from activity to activity, whereas an interaction diagram models messages passing between objects.
Answer frame. Open with the definition; draw the order example with a decision, fork-join and swimlanes; explain the notation; add the comparison table; close with the difference of flow versus object interaction.
Asked: [7 marks] (May 2022) What are Activity Diagrams in UML? How is it different from Interaction diagrams? Explain with example.
Analysis class Model
Not asked since 2022
Definition. The analysis class model is the first class model built in analysis, identifying the problem-domain classes without design detail.
Key points.
- Analysis classes are found from use cases and are of three stereotypes: boundary, control and entity.
- They carry responsibilities and attributes but no implementation detail or exact operations.
- They are refined into design classes in the design phase.
Last-minute revision
- UML: standard language to visualise, specify, construct, document.
- Four modelling principles: model choice matters; levels of precision; tied to reality; many models.
- Aggregation hollow diamond; composition filled diamond; generalization hollow triangle; dependency dashed arrow.
- Stereotype is written in << >>; boundary, control, entity.
- Rational Rose (IBM) and Poseidon (ArgoUML based) are UML tools.
- Conventional analysis is process and data-flow based; OO analysis is object based.
- Requirement techniques: interviews, questionnaires, workshops, use cases, prototyping; result is the SRS.
- Use case is an oval, actor a stick figure; flow of events has main and alternate flows.
- Activity diagram: fork, join, decision, swimlane; shows flow, not object messages.
Memory hooks
- Diamonds: hollow is "hangs out" (aggregation), filled is "fixed" (composition).
- Requirement techniques: I-Q-W-U-P (Interview, Questionnaire, Workshop, Use case, Prototype).
- Stereotypes: B-C-E, Boundary Control Entity.
- Activity is the "flowchart", interaction is the "conversation".
Coverage checklist
- Notations: Q7 (5 marks), plus modelling importance (Q5) and UML purpose (Q6).
- Relationships: Q2.
- Stereotypes: Q8.
- Study of UML based tools Like Rational Rose, Poseidon, etc.: no past question.
- Conventional v/s OO analysis approach: no past question.
- Requirement analysis: Q3.
- Use case diagram: Q4.
- Activity diagram: Q1.
- Analysis class Model: no past question.