Unit 2 Se
Unit 2 Se
– We can use their feedback to modify the prototype until the customer is satisfied
continuously. Hence, the prototype helps the client to visualize the proposed system and
increase the understanding of the requirements. When developers and users are not sure
about some of the elements, a prototype may help both the parties to take a final decision.
– Some projects are developed for the general market. In such cases, the prototype should
be shown to some representative sample of the population of potential purchasers. Even
though a person who tries out a prototype may not buy the final system, their feedback
may allow us to make the product more attractive to others.
– The prototype should be built quickly and at a relatively low cost. Hence it will always
have limitations and would not be acceptable in the final system. This is an optional
activity.
classes:A class is a blueprint or prototype that defines the attributes (data) and methods
(behaviors) for objects. It represents the structure and capabilities of objects belonging to the
same type. Example: A Car class might have attributes like brand, model, and color, and
methods like start(), stop(), and accelerate().
Objects: Objects are instances of classes, representing individual entities with specific
attributes and behaviors. Each object has its own state (attribute values) and can perform
actions (method calls). Example: If Car is a class, objects could be car1 with brand =
"Toyota" and car2 with brand = "Honda". Each car object behaves independently.
Attributes:
Definition: Attributes are the properties or data members of a class. They represent the
characteristics or data that an object of the class can hold.
Purpose: Describe the state or information about the class.
Operations
Definition: Operations are the methods or functions that define the behavior of the class.
They represent what an object of the class can do or how it interacts.
Purpose: Specify the functionality or actions the class can perform.
PACKAGE DIAGRAM:
A package diagram is represented as a folder shown as a large rectangle with a top attached to
its upper left corner. A package may contain both sub ordinate package and ordinary model
elements. A package diagram in unified modeling language that depicts the dependencies
between the packages that make up a model. A Package Diagram (PD) shows a grouping of
elements in the OO model, and is a Cradle extension to UML. PDs can be used to show
groups of classes in Class Diagrams (CDs), groups of components or processes in Component
Diagrams (CPDs), or groups of processors in Deployment Diagrams (DPDs). There are three
types of layer. They are
o User interface layer
o Domain layer
o Technical services layer
COLLABORATION DIAGRAM:
A collaboration diagram, also called a communication diagram or interaction diagram, a
sophisticated modeling tool can easily convert a collaboration diagram into a sequence
diagram and vice. A collaboration diagram resembles a flowchart that portrays the roles,
functionality and behavior of Individual objects as well as the overall operation of the system
in real time.
PART B
Sketch the UML diagrams for library management system
A use case is a methodology used in system analysis to identify, clarify, and organize system
requirements. The use case is made up of a set of possible sequences of interactions between
systems and users in a particular environment and related to a particular goal. It is represented
using ellipse.Actor is any external entity that makes use of the system being modeled
It certainly seems simple enough—ask the customer, the users, and others what the
objectives for the system or product are, what is to be accomplished, how the
system or product fits into the needs of the business.
Sequence Diagram
Collaboration Diagram
QA204 Consider an ATM system. Identify at least three different actors that interact
with this system.
User
ATM system
Bank Server
Class diagrams are not only used to visualize the static view of the system but
are also used to construct the executable code for forward and reverse
engineering of any system. The class diagram clearly shows the mapping with
object-oriented languages such as Java, C++, etc.