Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Chapter 3:

software modeling and design.

Refer note for full answer.


Design Modeling in Software
Engineering
• Design modeling in software engineering represents the features of
the software that helps engineer to develop it effectively, the
architecture, the user interface, and the component level detail.
Design modeling provides a variety of different views of the system
like architecture plan for home or building. Different methods like
data-driven, pattern-driven, or object-oriented methods are used for
constructing the design model. All these methods use set of design
principles for designing a model.
•Data design:

It represents the data objects and their interrelationship in an entity-relationship diagram. Entity-relationship
consists of information required for each entity or data objects as well as it shows the relationship between
these objects. It shows the structure of the data in terms of the tables. It shows three type of relationship –
One to one, one to many, and many to many. In one to one relation, one entity is connected to another entity.
In one many relation, one Entity is connected to more than one entity. un many to many relations one entity is
connected to more than one entity as well as other entity also connected with first entity using more than
one entity.

•Architectural design:

It defines the relationship between major structural elements of the software. It is about decomposing the
system into interacting components. It is expressed as a block diagram defining an overview of the system
structure – features of the components and how these components communicate with each other to share
data. It defines the structure and properties of the component that are involved in the system and also the
inter-relationship among these components.
•User Interfaces design:

It represents how the Software communicates with the user i.e. the behavior of the system. It refers to
the product where user interact with controls or displays of the product. For example, Military, vehicles,
aircraft, audio equipment, computer peripherals are the areas where user interface design is implemented.
UI design becomes efficient only after performing usability testing. This is done to test what works and
what does not work as expected. Only after making the repair, the product is said to have an optimized
interface.

•Component level design:

It transforms the structural elements of the software architecture into a procedural description of
software components. It is a perfect way to share a large amount of data. Components need not be
concerned with how data is managed at a centralized level i.e. components need not worry about issues
like backup and security of the data.
What Is Data Modelling In Software
Engineering?
.
• Data modelling is the process used to
structure how data is stored, as well as
modelling relationships within the data.
• A Engineering defines all the respective
data objects which are proceed within
the system. The relationship between the
data objects and the type of the extra
information's, which is Relevant to their
relationship.
Entity

• An Entity may be an object with a physical


existence – a particular person, car, house, or
employee – or it may be an object with a
conceptual existence – a company, a job, or a
university course.

• 1. Strong Entity
• 2. Weak Entity
Attributes

• Attributes are the properties that define the entity type. For
example, Roll_No, Name, DOB, Age, Address, and Mobile_No
are the attributes that define entity type Student. In ER
diagram, the attribute is represented by an oval.
• 1. Key Attribute
• 2. Composite Attribute
• 3. Multivalued Attribute
• 4. Derived Attribute
Relationship

• A Relationship Type represents the association between entity


types. For example, ‘Enrolled in’ is a relationship type that
exists between entity type Student and Course. In ER diagram,
the relationship type is represented by a diamond and
connecting the entities with lines.
1. Unary Relationship:
• When there is only ONE entity set participating in a relation,
the relationship is called a unary relationship. For example, one
person is married to only one person.
2. Binary Relationship:
• When there are TWO entities set participating in a relationship,
the relationship is called a binary relationship. For example, a
Student is enrolled in a Course.
Cardinality
• 1. One-to-One: When each entity in each entity set can take
part only once in the relationship, the cardinality is one-to-one.
Let us assume that a male can marry one female and a female
can marry one male. So the relationship will be one-to-one.
• 2. One-to-Many: In one-to-many mapping as well where each
entity can be related to more than one relationship and the
total number of tables that can be used in this is 2. Let us
assume that one surgeon deparment can accomodate many
doctors. So the Cardinality will be 1 to M. It means one
deparment has many Doctors.
• total number of tables that can used is 3.
• 3. Many-to-One: When entities in one entity set can take part
only once in the relationship set and entities in other entity sets
can take part more than once in the relationship set, cardinality
is many to one. Let us assume that a student can take only one
course but one course can be taken by many students. So the
cardinality will be n to 1. It means that for one course there can
be n students but for one student, there will be only one
course.
• 4. Many-to-Many: When entities in all entity sets can take part
more than once in the relationship cardinality is many to many.
Let us assume that a student can take more than one course
and one course can be taken by many students. So the
relationship will be many to many.
• the total number of tables that can be used in this is 3.

You might also like