Lezione 4. Requirements [S2001, Cap. 5] [AC96, Cap. 1]

Slides:



Advertisements
Presentazioni simili
Trieste, 26 novembre © 2005 – Renato Lukač Using OSS in Slovenian High Schools doc. dr. Renato Lukač LinuxDay Trieste.
Advertisements

Anno Diaconale f Federazione delle Chiese Evangeliche in Italia ufficio volontariato internazionale via firenze 38, roma tel. (+39) fax.
Preposizioni semplici e articolate
Centro Internazionale per gli Antiparassitari e la Prevenzione Sanitaria Azienda Ospedaliera Luigi Sacco - Milano WP4: Cumulative Assessment Group refinement.
I numeri, l’ora, I giorni della settimana
L’esperienza di un valutatore nell’ambito del VII FP Valter Sergo
Cache Memory Prof. G. Nicosia University of Catania
Teoria e Tecniche del Riconoscimento
TAV.1 Foto n.1 Foto n.2 SCALINATA DI ACCESSO ALL’EREMO DI SANTA CATERINA DEL SASSO DALLA CORTE DELLE CASCINE DEL QUIQUIO Foto n.3 Foto n.4.
1 Teaching Cloud Computing and Windows Azure in Academia Domenico Talia UNIVERSITA DELLA CALABRIA & ICAR-CNR Italy Faculty Days 2010.
A. Oppio, S. Mattia, A. Pandolfi, M. Ghellere ERES Conference 2010 Università Commerciale Luigi Bocconi Milan, june 2010 A Multidimensional and Participatory.
Modalità di ricerca semantica nelle Biblioteche digitali Maria Teresa Biagetti DIPARTIMENTO DI SCIENZE DOCUMENTARIE LINGUISTICO-FILOLOGICHE E GEOGRAFICHE.
EBRCN General Meeting, Paris, 28-29/11/20021 WP4 Analysis of non-EBRCN databases and network services of interest to BRCs Current status Paolo Romano Questa.
DG Ricerca Ambientale e Sviluppo FIRMS' FUNDING SCHEMES AND ENVIRONMENTAL PURPOSES IN THE EU STRUCTURAL FUNDS (Monitoring of environmental firms funding.
Frontespizio Economia Monetaria Anno Accademico
1.E un algoritmo ricorsivo: Tutti le istanze di oggetti raggiungibili da un oggetto persistente diventano anchessi persistenti.
© and ® 2011 Vista Higher Learning, Inc.4B.1-1 Punto di partenza Italian uses two principal tenses to talk about events in the past: the passato prossimo.
Cancer Pain Management Guidelines
Che ore è? Che ore Sono?.
Un DataBase Management System (DBMS) relazionale client/server.
Raffaele Cirullo Head of New Media Seconda Giornata italiana della statistica Aziende e bigdata.
SOCIOLOGIA DEI PROCESSI CULTURALI E COMUNICATIVI Prof.ssa Donatella Padua A.A. 2011/12 A.A. 2011/12.
HDM Information Design notation v.4. HDM Information Design.
Programmazione 1 9CFU – TANTE ore
C Consiglio Nazionale delle Ricerche - Pisa Iit Istituto per lInformatica e la Telematica Reasoning about Secure Interoperation using Soft Constraints.
Biometry to enhance smart card security (MOC using TOC protocol)
TIPOLOGIA DELLE VARIABILI SPERIMENTALI: Variabili nominali Variabili quantali Variabili semi-quantitative Variabili quantitative.
Ufficio Studi UNIONCAMERE TOSCANA 1 Presentazione di Riccardo Perugi Ufficio Studi UNIONCAMERE TOSCANA Firenze, 19 dicembre 2000.
Ergo : what is the source of EU-English? Standard British English? Standard American English? Both!!!! See morphology (use of British.
LInnovazione di Prodotto. Lo sviluppo di nuovi prodotti e nuovi servizi: una vecchia sfida per le imprese innovative. [emilio bellini]
Comunicazione on-line, reti e virtualità Matteo Cristani.
Fanno ormai parte della nostra vita di tutti i giorni….
2000 Prentice Hall, Inc. All rights reserved. 1 Capitolo 3 - Functions Outline 3.1Introduction 3.2Program Components in C++ 3.3Math Library Functions 3.4Functions.
Queuing or Waiting Line Models
Introduzione Grid1 Introduzione ai Sistemi Grid. Introduzione Grid2 Generalità Un sistema Grid permette allutente di richiedere lesecuzione di un servizio.
Chistmas is the most loved holiday of the years. Adults and children look forward to Chistmas and its magical atmosphere. It is traditional to decorate.
VARO SRL LOGISTIC, QUALITY, SERVICE
ATE / 31 Lezione 3 i sistemi automatici di misurazione - gli ATE.
Compito desame del Svolgimento della Sezione 5: CONTROLLORI Esempio preparato da Michele MICCIO.
Concord A tool for the analysis and concordances of the terminological constituents P. Plini, N. Mastidoro* * - Èulogos, Rome Institute for Atmospheric.
Francesca Pizzorni Ferrarese 05/05/2010
2 3 4 RISERVATEZZA INTEGRITA DISPONIBILITA 5 6.
Project Review byNight byNight December 6th, 2011.
Scheda Ente Ente Privato Ente Pubblico. 2ROL - Richieste On Line.
UNIVERSITÀ DEGLI STUDI DI PAVIA FACOLTÀ DI ECONOMIA, GIURISPRUDENZA, INGEGNERIA, LETTERE E FILOSOFIA, SCIENZE POLITICHE. Corso di Laurea Interfacoltà in.
Motor Sizing.
Bando Arti Sceniche. Per poter procedere è indispensabile aprire il testo del Bando 2ROL - Richieste On Line.
21 marzo 2002 (ri-)Avvisi: Giovedi 28 marzo la lezione e sospesa. Nuovo indirizzo di Spedire messaggi e esercizi solo.
Project Review Novembrer 17th, Project Review Agenda: Project goals User stories – use cases – scenarios Project plan summary Status as of November.
Project Review Novembrer 17th, Project Review Agenda: Project goals User stories – use cases – scenarios Project plan summary Status as of November.
Architettura software La scelta architetturale: MVA (Model – View – Adapter/Control) The view is completely decoupled from the model such that view and.
UG40 Energy Saving & Twin Cool units Functioning and Adjustment
Analysis and Development of Functions in REST Logic: Application to the «DataView» Web App UNIVERSITA’ DEGLI STUDI DI MODENA E REGGIO EMILIA DIPARTIMENTO.
Collection & Generics in Java
EMPOWERMENT OF VULNERABLE PEOPLE An integrated project.
A PEACEFUL BRIDGE BETWEEN THE CULTURES TROUGH OLYMPICS OLYMPIC CREED: the most significant thing in the olympic games is not to win but to take part OLYMPIC.
Lezione n°27 Università degli Studi Roma Tre – Dipartimento di Ingegneria Corso di Teoria e Progetto di Ponti – A/A Dott. Ing. Fabrizio Paolacci.
Italian 1 -- Capitolo 2 -- Strutture
Prof. G.PassianteCorso di Economia dell’innovazione - A.A. 2012/13 The Process Handbook: A Tool for Business Process Redesign.
Ratifica dei trattati internazionali - Italia Art. 87 Costituzione “Il Presidente della Repubblica…ratifica i trattati internazionali, previa, quando occorra,
1 Acceleratori e Reattori Nucleari Saverio Altieri Dipartimento di Fisica Università degli Studi - Pavia
IL GIOCO DEL PORTIERE CASISTICA. Caso n. 1 Il portiere nella seguente azione NON commette infrazioni.
Titolo evento Luogo, data Seminario INSPIRE Bologna, luglio 2012 Profili, strumenti ed implementazioni dei metadati Antonio Rotundo Agenzia per l’Italia.
MSc in Communication Sciences Program in Technologies for Human Communication Davide Eynard Facoltà di scienze della comunicazione Università della.
WRITING – EXERCISE TYPES
X. Specifications (IV).
The Behavioral Insight Team
BTEC Performing Arts Homework Task Due on Enrolment Day Weds 28th
Place Title / Heading Here
Transcript della presentazione:

Lezione 4. Requirements [S2001, Cap. 5] [AC96, Cap. 1] Functional, non-functional, domain requirements User requirements System and software requirements Requirements languages The requirements document Requirements analysis [AC96]

What is a requirement? It may range from a high-level abstract statement of a service or of a system constraint to a detailed mathematical functional specification… …since requirements may serve a dual function May be the basis for a bid for a contract - therefore must be open to interpretation (client ==> potential developers) May be the basis for the contract itself - therefore must be defined in detail (developer ==> potential client)

Requirements definition/specification Requirements definition (user requirements) A statement in natural language plus diagrams of the services the system provides and its operational constraints. Based on information from Client, and written for him (or even by him) Requirements specification (system requirements) A structured document setting out detailed descriptions of the system services. Written as a contract between Client and Developer Software specification (software requirements) A detailed software description which can serve as a basis for a design or implementation. Written for technical developers (design team, programmers…). May be omitted……...

Requirements definition/spec. - example

Requirements readers

Functional, non-functional, domain requirements Requirements engineering is the process of establishing the services that the Client requires from a system and the constraints under which it operates and is developed Requirements may be functional or non-functional Functional requirements describe system services or functions, often expressed in terms system reactions to inputs from the environment Non-functional requirements are constraints on the services offered by the system, and on the development process Domain requirements (funct./non funct.)come from the application domain of the system and reflect characteristics of that domain

Functional requirements - examples ‘The user shall be able to search either all of the initial set of databases or select a subset from it’. ‘The system shall provide appropriate viewers (*) for the user to read documents in the document store’. (*) User intention - special purpose viewer for each document type (*) Developer interpretation - Provide a text viewer that shows the contents of the document ‘Every order shall be allocated a unique identifier (ORDER_ID) which the user shall be able to copy to the account’s permanent storage area’.

Non-functional requirements On: Reliability, response time, storage capacity, I/O device capability, data representation. On: CASE system, programming language or development method Non-functional requirements may be more critical than functional requirements. If these are not met, the system is useless

Non-functional requirement types

Non-functional requirements examples Product requirement 4.C.8 It shall be possible for all necessary communication between the APSE and the user to be expressed in the standard Ada character set Organisational requirement 9.3.2 The system development process and deliverable documents shall conform to the process and deliverables defined in XYZCo-SP-STAN-95 External requirement 7.6.5 The system shall not disclose any personal information about customers apart from their name and reference number to the operators of the system

Verifiable non-functional reqs. Vs. goals A system ‘goal’ The system should be easy to use by experienced controllers and should be organised in such a way that user errors are minimised. A verifiable non-functional requirement Experienced controllers shall be able to use all the system functions after a total of two hours training. After this training, the average number of errors made by experienced users shall not exceed two per day. … nevertheless, goals are helpful to developers as they convey the intentions of the Client

Requirements measures

Non functional requirements conflicts ... are common in complex systems Example: Spacecraft system Req.1 - System should fit into 4Mbytes of memory Req.2 - System should be written in ADA However, it may be impossible to compile an ADA program with the required functionality into 4Mbytes: drop one of the requirements...

Domain requirements Derived from the application domain; describe system features that reflect the domain May be new functional requirements, constraints on existing requirements or define specific computations Problems: Understandability. Requirements are expressed in the language of the application domain. This is often not understood by software engineers developing the system Implicitness. Domain specialists understand the area so well that they do not think of making the domain requirements explicit

Example: Library system domain requirements ‘There shall be a standard user interface to all databases which shall be based on the Z39.50 standard’ (a standard for this Library). ‘Because of copyright restrictions, some documents must be deleted immediately on arrival. Depending on the user’s requirements, these documents will either be printed locally on the system server for manually forwarding to the user or routed to a network printer’.

Example: train system domain requirement The deceleration of the train shall be computed as: Dtrain = Dcontrol + Dgradient where Dgradient is 9.81ms2 * compensated gradient/alpha and where the values of 9.81ms2 /alpha are known for different types of train.

User requirements Should describe functional and non-functional requirements so that they are understandable by non-technical system-users. Externally visible behaviour User requirements are defined using natural language, tables and diagrams. Problems: Lack of clarity, ambiguity (‘Dogs must be carried’) Precision is difficult without making the document difficult to read Requirements confusion Functional and non-functional requirements tend to be mixed-up Requirements amalgamation Several different requirements may be expressed together

Example: Editor grid requirement 2.6 Grid facilities ‘To assist in the positioning of entities on a diagram, the user may turn on a grid in either centimetres or inches, via an option on the control panel. Initially, the grid is off. The grid may be turned on and off at any time during an editing session and can be toggled between inches and centimetres at any time. A grid option will be provided on the reduce-to-fit view but the number of grid lines shown will be reduced to avoid filling the smaller diagram with grid lines’.

Problems in the Editor grid requirement Grid requirement mixes three different kinds of requirement Conceptual functional requirement (the need for a grid) Non-functional requirement (grid units) Non-functional UI requirement (grid switching)

Editor example: structured presentation

Editor example: detailed user requirement

System and software requirements More detailed specifications of user requirements Serve as a basis for the Design in principle Reqs. and Design are separated (WHAT vs. HOW) in practice they are interdependent May be used as part of the system contract May be complemented with, or expressed by system models (Entity-Relation, Data-Flow, Petri nets, Communicating Finite State Machines, Statecharts, Basic LOTOS…)

Alternatives to NL specification

Structured natural language specifications A limited form of natural language may be used to express requirements This removes some of the problems resulting from ambiguity and over-flexibility and imposes a degree of uniformity on a specification Often supported by a forms-based approach

Form-based req. spec. - Editor example

PDL (Program Descr. Language)-based requirements definition Requirements may be defined operationally using a programming language (e.g. Java) enriched by constructs for further flexibility Most appropriate in two situations Where an operation is specified as a sequence of actions and the order is important When hardware and software interfaces have to be specified Disadvantages are The PDL may not be sufficiently expressive to define domain concepts The specification will be taken as a design rather than a specification

PDL Example: Part of an ATM specification

System requirements: interface specification Most systems must operate with other systems and the operating interfaces must be specified as part of the requirements Three types of interface may have to be defined Procedural interfaces Data structures that are exchanged Data representations Formal notations are an effective technique for interface specification

PDL interface description Il costrutto ‘Interface’ di Java è molto adatto alla specifica… di interfacce

Requirements document structure Introduction Describe need for the system and how it fits with business objectives Glossary Define technical terms used Functional requirements definition (user reqs.) Describe the services to be provided Non-functional requirements definition (user reqs.) Define constraints on the system and the development process System Architecture helps structuring requirements around subsystems

System and software requirements specification System models Detailed specification of functional requirements System models Define models showing system components and relationships System evolution Define fundamental assumptions on which the system is based and anticipated changes Appendices System hardware platform description Database requirements (as an ER model perhaps) May include USER MANUAL and TEST PLAN Index

Analisi dei requisiti [AC96, fig 1.1]

La fase di Analisi Sottofase I (linguaggio naturale +...) Studia e definisce il problema da risolvere Stretta interazione con il committente Sottofase I (linguaggio naturale +...) 1. studio di fattibilità 2. comprensione del dominio (==> glossario) 3. stesura (raccolta e definizione) dei requisiti 4. ispezione dei requisiti Sottofase II (linguaggio formale) 5. specifica formale dei requisiti ==> modello astratto del sistema …’analisi’

1. Studio di fattibilità Valutazione di costi, benefici e rischi Disponibilità di librerie SW? HW adatto alle prestazioni attese? Uso di tecnologie non consolidate? Valore di mercato al tempo di consegna? Output n scenari di sviluppo, con relativi tempi e costi Società specializzate nel puro studio di fattibilità

2. Comprensione del dominio Comprensione dei concetti e termini usati dal Committente per parlare del sistema e del suo contesto. Lo Sviluppatore acquisisce la competenza del Committente, non viceversa ==> migliore interazione Input: documenti dal Committente e altri reperiti autonomam. Es. strutture organizzative/commerciali, caratteristiche di impianti, leggi fisiche Output: Glossario Insieme chiuso e sintetico di definizioni che rifletta la complessità del dominio. Può includere descrizioni di algoritmi, procedure d’ufficio, ...

Stesura del Glossario

3. Stesura dei requisiti Ha valore contrattuale… (stesura e ispezione)

Il documento dei requisiti Ha valore contrattuale… .. ma è soggetto a cambiamenti ‘tardivi’. E’ scritto in linguaggio naturale Ogni requisito cattura un aspetto o vincolo, completo e indipendente, del sistema Requisiti obbligatori, desiderabili, opzionali (==> contratto) Non dovrebbe contenere: inconsistenze (req. ==><== req.) ambiguità (req. ?!) imprecisioni terminologiche (req. ==><== glossario) ridondanze (req ==> req.) dettagli tecnici e rif. alla soluzione-implementazione

Dovrebbe essere completo Elenca tutte e sole le esigenze del Committente Usa tutti e soli i termini del Glossario Dovrebbe essere ben strutturato bilanciando la granularità dei requisiti minimizzando riferimenti in avanti. Lemmario: elenco dei termini usati nei requisiti, ciascuno con lista di puntatori ai requisiti che lo usano. Facilita la ricerca di inconsistenze o ridondanze in requisiti semanticamente vicini

4. Ispezione dei requisiti Boehm: “Trovare e riparare un difetto nel software consegnato costa 100 volte meno che farlo durante l’analisi dei requisiti”. Fagan: “la maggior parte degli errori si manifesta dopo la consegna del sistema, ma ha origine durante l’analisi dei requisiti”.

È economica e rivela il 60% degli errori [Boehm] ESEMPIO Lettura strutturata È economica e rivela il 60% degli errori [Boehm] ESEMPIO Analisi dei requisiti di CTC (Centralised Traffic Controller) delle ferrovie nordamericane - 1990 10 gruppi di analisti in parallelo Dei 92 difetti del documento dei requisiti 77 vengono trovati durante l’ispezione dei requisiti 15 nelle fasi successive Ogni gruppo trova mediamente ‘solo’ 25 difetti. L’ispezione parallela e ridondante paga.

5. Specifica formale (dei requisiti…) [AC96] Descrizione tecnica del comportamento di un sistema che risponde ai requisiti enfasi sull’osservatore esterno: sistema come black box ==> Modello astratto del sistema primo passo dalla caratterizzazione verso la soluzione del problema

Specifica simultanea dei requisiti (problema) e di un modello astratto del sistema (soluzione) User Requirements Formal specification P3 P1 R1 ... P2 Modello formale astratto del sistema, dal comportamento osservabile desiderato R2 ... R3 ... In linguaggio naturale ??? In linguaggio formale eseguibile, analizzabile