csc 506: software engineering and knowledge engineering

18
Dr. Syed Noman Hasany

Upload: stuart-frost

Post on 30-Dec-2015

43 views

Category:

Documents


2 download

DESCRIPTION

CSC 506: Software Engineering and Knowledge Engineering. Dr. Syed Noman Hasany. Course Outline. Review of known methodologies Analysis of software requirements Real-time software Software cost, quality, testing and measurements Object programming - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CSC 506: Software Engineering and Knowledge Engineering

Dr. Syed Noman Hasany

Page 2: CSC 506: Software Engineering and Knowledge Engineering

Review of known methodologies Analysis of software requirements Real-time software Software cost, quality, testing and measurements Object programming Knowledge engineering issues: knowledge

representation using rules, frames & logic, basics of logical inference, and basics of search.

Page 3: CSC 506: Software Engineering and Knowledge Engineering

Requirements Engineering

Page 4: CSC 506: Software Engineering and Knowledge Engineering

The requirements are the descriptions of the system services and constraints that are generated during the requirements engineering process.o It may range from a high-level abstract

statement of a service or of a system constraint to a detailed mathematical functional specification.

4

Page 5: CSC 506: Software Engineering and Knowledge Engineering

The process of establishing:o the services that the customer requires from a system

and o the constraints under which it operates and is

developed. The outcome is a requirements document, which

may be part of the system development contract.

5

Page 6: CSC 506: Software Engineering and Knowledge Engineering

The MHC-PMS (Mental Health Care-Patient Management System) is an information system that is intended for use in clinics.

The key features of the system are:1. Individual care management

o Clinicians can create records for patients, edit the information in the system, view patient history, etc. The system supports data summaries so that doctors who have not previously met a patient can quickly learn about the key problems and treatments that have been prescribed.

6

Page 7: CSC 506: Software Engineering and Knowledge Engineering

2. Patient monitoring o The system regularly monitors the records of patients

that are involved in treatment and issues warnings if possible problems are detected. Therefore, if a patient has not seen a doctor for some time, a warning may be issued. One of the most important elements of the monitoring system is to keep track of patients who have been sectioned and to ensure that the legally required checks are carried out at the right time.

3. Administrative reporting o The system generates monthly management reports

showing the number of patients treated at each clinic, the number of patients who have entered and left the care system, number of patients sectioned, etc.

7

Page 8: CSC 506: Software Engineering and Knowledge Engineering

8

Page 9: CSC 506: Software Engineering and Knowledge Engineering

Functional requirements Statements of services the system should provide,

how the system should react to particular inputs and how the system should behave in particular situations.

May state what the system should not do. Non-functional requirements

Constraints on the services or functions offered by the system such as timing constraints, constraints on the development process, standards, etc.

Often apply to the system as a whole rather than individual features or services.

Domain requirements Constraints on the system from the application

domain (e.g. medical domain)

9

Page 10: CSC 506: Software Engineering and Knowledge Engineering

A user shall be able to search the appointments lists for all clinics.

The system shall generate each day, for each clinic, a list of patients who are expected to attend appointments that day.

Each staff member using the system shall be uniquely identified by his or her 8-digit employee number.

10

Page 11: CSC 506: Software Engineering and Knowledge Engineering

Problems arise when requirements are not precisely stated.

Ambiguous requirements may be interpreted in different ways by developers and users.

Consider the term ‘search’ in requirement 1 User intention – search for a patient name across all

appointments in all clinics; Developer interpretation – search for a patient name in

an individual clinic. User chooses clinic then search.

11

Page 12: CSC 506: Software Engineering and Knowledge Engineering

In principle, requirements should be both complete and consistent.

Complete They should include descriptions of all facilities

required. Consistent

There should be no conflicts or contradictions in the descriptions of the system facilities.

In practice, it is impossible to produce a complete and consistent requirements document.

12

Page 13: CSC 506: Software Engineering and Knowledge Engineering

Non-functional requirements may affect the overall architecture of a system rather than the individual components. For example, to ensure that performance requirements

are met, you may have to organize the system to minimize communications between components.

A single non-functional requirement, such as a security requirement, may generate a number of related functional requirements that define system services that are required.

13

Page 14: CSC 506: Software Engineering and Knowledge Engineering

14

Page 15: CSC 506: Software Engineering and Knowledge Engineering

Product requirements Requirements which specify that the delivered product must

behave in a particular way e.g. execution speed, reliability, etc.

Organisational requirements Requirements which are a consequence of organisational

policies and procedures development process requirements that specify the programming language, the development environment or process standards to be used, and environmental requirements that specify the operating environment of the system.

External requirements Requirements which arise from factors which are external to

the system and its development process e.g. interoperability requirements, legislative requirements, etc.

15

Page 16: CSC 506: Software Engineering and Knowledge Engineering

16

Product requirementThe MHC-PMS shall be available to all clinics during normal working hours (Mon–Fri, 0830–17.30). Downtime within normal working hours shall not exceed five seconds in any one day.

Organizational requirementUsers of the MHC-PMS system shall authenticate themselves using their health authority identity card.

External requirementThe system shall implement patient privacy provisions as set out in HStan-03-2006-priv.

Page 17: CSC 506: Software Engineering and Knowledge Engineering

The system’s operational domain imposes requirements on the system.o For example, a train control system has to take into

account the braking characteristics in different weather conditions.

Domain requirements be new functional requirements, constraints on existing requirements or define specific computations.

If domain requirements are not satisfied, the system may be unworkable.

17

Page 18: CSC 506: Software Engineering and Knowledge Engineering

This is a domain requirement for a train protection system:o 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.

It is difficult for a non-specialist to understand the implications of this and how it interacts with other requirements.

18