Software Engineering Notes
Software Engineering Notes
Computer Programs
Data structure that enable program to adequately manipulate information
Associated Documentation
Documents describing operations and use of programs
Software Process
set of activities whose goal is development or evolution of software
Specification - what the system should do and its development constraints Evolution changing the software in response to changing demands
Software Crisis
- Exploratory Style - Evolving aspect - Use of intuition of programmers - Use of assembly code - About 100 lines of codes
7
Larger Programs COBOL, FORTRAN Exploratory Style Few 1000s Lines of Code Unstructured programs (use of goto statement)
8
- Structured programming
(only use sequential, selection, iterations)
9
10
If(bal>withdrl){ issue_money = TRUE; goto 110: } elseif (priv_cust == TRUE){ goto 100; else goto 140; activate_cash_dispenser(); print(error);
11
Grant Access
Password Database
12
13
15
16
Software Myths:
17
Software Myths:
18
Software Myths:
19
Software Myths:
20
System software Real time software Business software Engineering and scientific software Embedded software Personal computer software Web based software Artificial intelligence software
21
Software Process
set of activities whose goal is development or evolution of software
Specification - what the system should do and its development constraints Evolution changing the software in response to changing demands
Umbrella activities (SQA, SCM and management) overlays software process model
24
process, methods and tools Software development can be considered as a problem solving loop
25
Linear Sequential Model (Water Fall Model) Prototyping Model RAD Model Evolutionary Model Incremental Model Spiral Model Win-Win Spiral Model Concurrent Development Model Component Based Development Formal Methods Models Fourth Generation Technology Models
26
A systematic, sequential approach to a software engineering which starts at system information engineering level and progresses through analysis, design, coding, testing and maintenance phase Modeled after conventional engineering cycles
Theoretical Way of Developing Software??
27
a. Software Requirement Analysis Requirement gathering process is intensified and focused specially on software Study of information domain Requirements for system and software must be determined and reviewed with customer
29
the software which can be assessed before the code generation Design document is also a part of the
software configuration
30
d. Testing It focuses on the logical intervals of the software (all statements) and functional externals of the software , tests to uncover errors Basic objective: Defined input should produce desired output
31
32
33
Drawback : Difficulty of accommodating change after the process is underway Appropriate when requirements are well
understood
34
Prototyping Model
Customer Developer
Input? Output?
?
35
Prototyping Model
Requirements Gathering : Define overall system objective Track all known requirements Outline areas of further development Quick Design Approach: Results in all user visible aspects
(input approach, output formats etc)
36
Prototyping Model
37
Prototyping Model
* Prototype serves as a tool to identify
software requirements
38
Types of
Prototyping
39
Customer
Developer
40
Customer
Developer
41
The less than ideal choice may become an integral part of the system!!
42
Primarily used for information system applications If requirements are well understood , and modularized , RAD process develops fully functional system within 60 to 90 days
43
44
45
46
47
Evolutionary models are inherently iterative in nature It helps to develop increasingly more complete versions of the target software
48
introduced
System requirements are well understood but details of product extensions or system extensions
49
Incremental Model Spiral Model Win Win Spiral Model Concurrent development Model
50
Incremental Model
It is a combination of linear sequential model philosophy with the iterative philosophy of prototyping paradigm The model is outlined pictorially as below Example of Incremental Model: Word processing Softrware First Increment: the core product (Basic Word Processing Application Software Basic WP requirements are addressed Supplementary features (Known + unknown) are not delivered Core is used by the customer (undergoes detailed review) Helps to plan next development in order to better meet customers need and delivery of additional features and functionality
51
repeated each time until the complete product is produced (final version) Each increment is a stripped down version of the final product Each version fulfills users need and provides a platform for evaluation by the user and hence for their development
52
fewer people Increments can be planned to manage various technical risk (change in hardware platform , OS features etc)
53
54
combines the iterative nature of prototyping model , the control and systematic aspect of linear sequential model It has potential for rapid development of incremental versions of the software Software is developed in a series of incremental releases
Early stage increments: paper model or prototype Subsequent stage releases: more complete version
of required software
55
Work Activities or Task Regions . There are six task regions or frame work activities: Customer Communication: Task for effective communication between customer and developer ii. Planning : Task is to define resources, timeline and other project related information iii. Risk analysis: the task is to assess technical and management risks iv. Engineering: task required to build one or more representations of the application
56
Construction and release: task to construct, test, install and provide support (documentation, training etc)
Customer evaluation: task is to obtain
customer feedback or evaluation (engineering stage versus implementation stage) Spiral model handles the software development process in phase manner, each phase being treated as a project work Spiral model divides the development process into four projects:
57
58
specific to the nature of the project In all cases , umbrella activities are applied (SCM and SQA) All the stages iterative in nature: First Iteration: Results in production of product specification Second Iteration: Results in production of product prototype Next Iteration: Results in production of progressively more sophisticated versions of the software
59
adjustment to the project plan Cost and schedule adjusted on the basis of customer evaluation Project manager adjusts the number of iterations to complete the software Classical model ends when the software is delivered. Spiral model can be applied thru out the life of the software Each project in the Spiral model has a starting point in the project entry point axis, which represents the start of a different type of project Spiral model remains active until the software retires
60
scale projects Spiral model uses Prototyping as a Risk Reduction mechanism. Prototyping is applied at any stage of the product It incorporated systematic approach as suggested by classical life cycle of software in an iterative way (frame-work) It demands direct consideration of technical risk Discussions: Difficult to convince customer that evolutionary approach is controllable High expertise is required to assess considerable risk This is a new model not used widely as linear sequential development approach It will take number of years before the effectiveness of this model is known
61
4 c.
decide upon project requirements form customer Developer asks what is required and customer provides necessary details In reality, developer negotiates with customer for functionality , performance, and other product /system features against cost and time to market Negotiation is successful at Win-Win state: Customer wins by getting a product /system that satisfies majority of his requirements Developer wins by deadline target and achievable budget
62
63
of each pass around the spiral , involving the following activities: Identification of the key stake holders of the system/sub systems
Determination of the stake holders win
condition Negotiation of the stake holders win condition to fit into a set of Win-Win conditions
personnel are associated with more than one activity - might be writing SRS , doing design , coding , testing etc. all simultaneously This shows existence of concurrency of activities occurring in any one phase (requirements change during late development) which can be represented by notations to represent the state of a process (state chart) Existence of concurrency of activities affect the time bound nature of software development process
65
66
schematically as a series of major technical activities, tasks and associated states e.g. analysis, activity can be represented as shown All activities resides concurrently but resides in different states For a Spiral Model : When customer communication activity completed the first iteration and is in state three the analysis activity makes a transition from state one to state two. Now as a part of customer communication activity , the customer signals a change in requirement , analysis activity makes a move to state three Concurrent process model defines a series of events that will trigger transition from state to state for each software engineering activity In general this model is used as a paradigm for client server applications which comprises of a set of functional components
67
client/server applications in two dimensions: System Dimensions: involves three activities (design, assembly, use)
Component dimensions: involves two
be concurrently taking place (a state oriented approach) ii. Design and realization of many components can take place concurrently
68
developments Helps to figure out the actual picture of the state of the project Instead of showing software engineering activities as a sequence of tasks it defines a network of activities existing simultaneous with other activities Events generated in one activity may trigger a state transition of an activity
69
principle of Object Oriented Technology OOT emphasizes creation of class that encapsulates both data and the algorithm (code) that are used to manipulate the data OOT provides very high level of reusability Component assembly model resembles spiral model It is evolutionary in nature and uses iterative approach to develop software It composes applications from prepackaged software components (class)
70
71
Accomplished by examining the data that are to be manipulated by the application and the algorithms that will be applied to accomplish manipulation these data and code are packaged to form a software component or a class Old classes are stored in class libraries This model leads to software reuse Reusability provides measurable benefits to
software engineering processes QSM Inc. report indicates: 70% reduction in development cycle time 84% reduction in project cost 26.2% productivity index versus 16.9 as industry norm
72