Beruflich Dokumente
Kultur Dokumente
Requirements identification
Conceptual design
Logical design
Physical design
Requirements gathering
Complex task, implies knowing the problem and identifying stakeholder’s needs
There are user, funcional, non-functional, hardware, software,…, requirements
Gathering techniques include observation, questionaires, prototyping
After the problem is known, it can be modeled and analyzed
Requirements must be shared between all stakeholders, revised, negotiated,…
They correspond to an interpretation of a reality, which can have multiple perspectives
Most of the time they are interdisciplinary
o “client” can have a marketing, commercial, taxbasedinterpretation
o It is one of the most complex taks in a programming project
Some errors are uncovered too late…in the implementation
Concepts
E-R model
Chen’s example:
Deals only with static aspects of the world (entities, relationships and properties)
Must be well documented
Does not allow for the representation of dynamic aspects (dataflows)
Easy to use, even by non-technical people, easy to translate to a database schema
We’ll see later the mapping to the relational model is very easy
It's a “semantic”, or “extended”, data model; no reference is made to physical aspects of data
Is used to allow more information to be available
Augments the semantic expressiveness
Top-down methodology: from most abstract concepts to most specific
There are several software tools to help build models
o They produce documentation, and help translate to the relational model
Concepts 1
Entity: any Object in our world (eg: student, course,...). Entities have instances
Property: data about a specific entity (eg: age, name, weight,...)
Relationship: entity linking two or more entity types (eg: attends)
o A role can be defined for each end of a relationship
Subtypes: student is a subtype of person
Concepts 2
An entity is represented by a rectangl
A set of the entity’s properties must have unique values (it is used as the identity)
o Can be a natural one (eg VAT Number) or artificial (eg a “code”)
Concepts (3)
Concepts (4)
Concepts (5)
Entities and relationships can be identified from texts, interviews, and own knowledge
In a textual description care should be taken when writing; subject translates to entities,
verbs generally translate to relationships
Must use a coherent, clear writing style, free of ambiguities
o Easy to read, easy to understan
Our interpretation
Multiplicity
Relationships have a “multiplicity”, which specifies how many elements of each entity can
participate in the relationship
Eg, one student can only sign for only one degree
A degree can have zero or N students
It’s a (semantic) restriction
o It depends on laws, regulations, professional practices, practical restrictions
E-R diagram
Ternary relacionships
Multiplicity must be represented in another way
Given an occurrence of a pair of entities, how many of the other can be??
Some options
Examples