Se Notes Unit 1
Se Notes Unit 1
REGULATION :
1
UNIT- I
Software Characteristics:
2
Fig 1.1: Failure curve for Hardware
It indicates that hardware exhibits high failure rates early in its life. Defects are
corrected, and failure rate drops to a steady-state level for some period of time. As time
passes, the failure rate rises again as hardware components suffer from cumulative
effects of dust, temperature and other environmental maladies. Simply hardware begins
to wear out.
Software doesn’t wear out so it should take form of idealized curve. Undiscovered
defects will cause high failure rates early in its life of a program. However these are
corrected and curve flattens the actual curve shows that during its life software will
undergo change. As changes are made, it is likely that errors will be introduced, causing
failure rate curve to spike again. Before curve can return to original state, another change
is requested, causing curve to spike again. Slowly failure rate level begins to rise – the
software is deteriorating due to change.
Evolution of Software:
1950’s-60’s (mid): Batch orientation, limited distribution
3
1970’s mid-1980’s (late): distributed systems, low cost h/w, and consumer impact
Software is determinate is the order and timing of its inputs, processing, and outputs is
predictable (Ex compiler, file management utilities)
Indeterminate if the order and timing of its input, processing, and outputs is not
predictable in advance. (Ex: networking software, operating system components)
Application Software: This is designed to help users in order to perform a specific task.
Applications in this area process business or technical data.Ex:C,JAVA
Engineering and Scientific Software: Engineering and scientific software have been
characterized by "number crunching" algorithms (which performs complex, lengthy and
complex numeric calculations).However modern applications are moving away from
numeric algorithms to computer-aided design, system simulation.
Embedded Software: It resides within a product or system and is used to implement and
control features and functions of end-user and system itself.
4
Software Myths:
• Propagate misinformation and confusion
• Three types of myths
- Management myth
- Customer myth
- Practitioner’s myth
Myth (1)
-Already we have a book of standards and procedures for building software wont that
provide my people with everything they need to know?
Reality: The book of standards may very well exist but is it used? Are software practitioners
aware of its existence? Is it complete? Is it adaptable?
Myth (2)
-If we get behind schedule we can add more programmers and can catch up.
Reality: As new people are added, people who were working must spend time educating the
newcomers, thereby reducing amount of time spent on productive development effort.
Myth (3)
-Outsourcing the software project to third party, we can relax and let that party build it.
Reality: If an organization doesn’t understand how to manage and control software projects
internally, will face struggle when it outsources projects.
Customer Myths:
Myth (1)
-General statement of objective is enough to begin writing programs, the details can
be filled in later.
Reality: Unambiguous requirements can be developed only through efficient and continuous
communication between developer and customer.
Myth (2)
5
Reality: When requirement changes are requested early cost impact is relatively small. However
as time passes cost impact grows rapidly.
Practitioner Myths:
Myth (1)
Reality: Industry data indicate that between 60 and 80 percent of all effort expended on
software will be expended after it is delivered to customer for first time.
Myth (2)
Reality: Formal technical reviews have been found more effective than actual testing
Myth (3)
Myth (4)
Reality: S.E is not about creating documents. It is about creating quality. Better quality leads to
reduced rework.
Definitions Software
Engineering:
Process - Foundation for software Engineering. It defines a framework that must be established
for effective delivery of software engineering technology. This provides a basis for management
control of software projects.
Methods: Provide technical how-to’s for building Software. Methods encompass a broad array
of tasks that include
- Communication
- Requirements Analysis
- Design Modeling
- Program Construction
- Testing
- Support
Process Framework
A Process Framework establishes the foundation for a complete software process by
identifying a small number of framework activities that are applicable to all s/w projects,
regardless of size/complexity and set of umbrella activities which are applicable across entire
s/w process
Communication: This activity involves heavy communication and collaboration with customer
and encompasses requirements gathering.
7
Planning: It establishes a software project plan for software engineering work that follows. It
describes technical tasks to be conducted, risks that are likely, resources that will be required,
work product to be produced and a work schedule.
Modeling: This activity encompasses creating models that allows customer to better understand
software requirements and design.
Deployment : The software is delivered to customer who evaluates the delivered product and
provides feedback.
Each Software engineering action is represented by a number of task sets. The task set that best
accommodates the needs o project and characteristics of team is chosen.
8
Umbrella Activities
Software Project Tracking and Control: Asses progress against project plan and take
necessary action to maintain schedule.
Software Quality Assurance: Defines and conducts activities required to ensure quality
Work Product Preparation and Production: encompasses activities required to create work
products such as documents, forms, logs reports etc.
Reusability Management: Defines criteria for work product reuse and establishes mechanisms
to achieve reusable components.
Measurement: Defines and collects process, project and product measures that assist team in
delivering software that meets customer needs
Risk Management: Assesses risks that may affect outcome of project and quality
Assess the process model followed by an organization and rate the organization with different
levels
1. A Continuous Model
2. A Staged Model
Continuous Model:
- Levels are called capability levels.
9
-Each process area is assessed against specific goals and practices and is rated according to the
following
capability levels.
– Level 0:Incomplete
– Level 1:Performed
– Level 2:Managed
– Level 3:Defined
– Level 4:Quantitatively managed
– Level 5:Optimized
Incomplete
-Process is adhoc. Objective and goal of process areas are not known
Performed
All the specific goals and practices process area have been satisfied but performance may not
be stable they do not meet some specific objectives such as quality, cost and schedule
Managed
-Activities are monitored, reviewed, evaluated and controlled to achieve a given purpose and
cost, schedule, quality are maintained. These companies have some planned processes within
teams and teams are made to represent them for projects handled by them. However processes
are not standardized across organization.
Defined
-All level2 criteria have been satisfied and in addition process are well defined and are
followed throughout the organization
10
Quantitatively Managed
-Metrics and indicators are available to measure the process and quality
Optimized (perfect&complete)
-Use of innovative ideas and techniques, statistical quality control and other methods for
process improvement.
In addition to specific goals and practices for each process area 5 generic goals correspond to
capability levels. In order to achieve a particular capability level the generic goal for that level
and generic practices correspond to the goal must be achieved.
Staged Model
- This model is used if you have no clue of how to improve the process for quality software.
- It gives a suggestion of what things other organizations have found helpful to work first
- Levels are called maturity levels
11
Process Patterns
• The software process can be defined as a collection of patterns that define a set of
activities, actions, work tasks, work products and/or related behaviors.
• Patterns can be defined at any level of abstraction. In some cases it is used to define
complete process (e.g. prototyping).In other situations patterns can be used to describe
an important framework activity (e.g. planning) or a task within a framework
activity(e.g. project-estimating).
• Pattern Template
-Pattern Name: The pattern given a meaningful name that describes its function within
the software process. (e.g. requirements unclear)
-Intent: The objective of pattern is described briefly. For ex the objective of pattern is to
build a model that can be assessed iteratively by stakeholders.
-Task pattern: defines a software engineering action or work task that is part o process
(e.g. requirements gathering)
- Stage pattern: defines a framework activity for the process (e.g. communication)
-Phase Pattern: defines sequence of framework activities that occur with the process (ex
spiral model or prototyping)
Initial Context: The condition under which pattern applies are described. Prior to
initiation of pattern the following conditions must be met.
For example:
Ex: Requirements are hazy or non-existent i.e., stakeholders are unsure of what they
want. that is they cannot describe software requirements in detail.
12
Solution: The implementation of pattern is described ex: A description of prototyping
process is described here.
Resulting Context: The conditions that ill result once the pattern has been successfully
implemented are described.
Ex: A software prototype that identifies basic requirements are approved by stakeholders
And a prototype may evolve through a series of increments to become production
software.
Related Patterns: A list of process patterns that are related to this one are provided.
Known Uses and Examples: The specific instances in which pattern are applicable are
indicated.
Process Assessment
• It attempts to keep a check on the current state of the software process with the intention
of improving it.
Software Process
Software Process
Assessment
13
• SPICE(ISO/IEC 15504):standard defines a set of requirements or software process
assessment
• ISO 9001:2000 for software: is a generic standard that applies to any organization that
wants to improve overall quality of products, systems or services that it provides.
Process Models
• Process Models help in the software development
• They Guide the software team through a set of framework activities
• Process Models may be linear, incremental or evolutionary
Waterfall Model
• Used when requirements are well understood in the beginning
• Also called classic life cycle model
• A systematic, sequential approach to Software development
• Begins with customer specification of Requirements and progresses through planning,
modeling, construction and deployment.
Disadvantages:
• Real projects rarely follow the sequential flow since they are always iterative
• The model requires requirements to be explicitly spelled out in the beginning, which is
often difficult
• A working model is not available until late in the project time span
14
Incremental Process Model
• Linear sequential model is not suited for projects which are iterative in nature
• Incremental model suits such projects
• Used when initial requirements are reasonably well-defined and compelling need to
provide limited functionality to users quickly and then refine and expand on that
functionality in later releases
It combines elements of waterfall model in an iterative fashion.
The incremental model applies linear sequences in a staggered ashion as calendar time
progresses.Each linear sequence provides deliverable increments of software.For ex word
processing sotware developed sing incremental paradigm might deliver basic file
management,editing,and document production functions in 1st increment ;more sophisticated
editing and document production capabilities in 2 nd increment;spelling and grammar
checking in 3rd increment; etc
As a result, plan is developed for the next increment Plan addresses the modification of
core product to better meet the needs of customer
• Process is repeated until the complete product is produced
The incremental process model unlike prototyping and other evolutionary approaches,is
iterative in nature.But unlike prototyping,the incremental model focuses on delivery of an
operational product with each increment.
15
This model is particularly useul when staffing is unavailable for a complete implementation
by business deadline that has been established for the project.
16
Team # n
Modeling
Business modeling Data modeling Process modeling
Construction
Component reuse automatic code generation testing
Team # 2
Modeling
Communicatio Business modeling Data modeling Process modeling
n
Construction
Component reuse automatic code generation testing
Team # 1
Planning
Construction
Component reuse automatic code generation testing
12
Prototyping Model
• Mock up or model( throw away version) of a software product
• Used when customer defines a set of objective but does not identify input,output,or
processing requirements
• Developer is not sure of:
– efficiency of an algorithm
– adaptability of an operating system
17
– human/machine interaction
Disadvantages:
• In a rush to get it working, overall software quality or long term maintainability are
generally overlooked
18
Spiral Model
• This is a model proposed by boehm it is an evolutionary model which combines the best
feature of the classical life cycle and the iterative nature of prototype model
• Unlike other process models that end when software is delivered,the spiral model can be
adapted to apply through out the life of computer software.Therefore the first circuit
around the spiral represent a “concept development project” which starts at the core of
the spiral and contines for multiple iterations until concept development is complete.If
the concept is to be developed into an actual product,process proceeds outward on the
spiral and a “new product development project “commences.The new product will
evolve through a number of iterations around the spiral.Later,a circuit around spiral
might be used to represent a “product enhancement project”.The spiral remains operative
until the software is retired.
20
19
Concurrent Development Model
This is sometimes called concurrent engineering.This is represented
schematically as a series of framework activities,software engineering actions
and tasks,and their associated states.
Fig provides schematic representation of one software engineering task within
modelling activity.The activity modelling may in any one of these states at any
given time.Similarly other activities can be represented in a similar manner.
All activities exist concurrently but reside in different states.
For ex.early in a project communication activity has completed its first iteration
and exists in awaiting changes state.The modelling activity wchich existed in
none state while initial communication was completed now makes a transition to
underdevelopment state.If however customer indicates changes in requirements
must be made,the modelling activity moves from under development to awaiting
changes state
The concurrent process model dfines a series of events that will trigger transition
from state to state for each software engineering activities,actions and tasks.
This model is applicable to all types of software development and provides
correct pictre of accurate state of a project.
20
Unified Process Model
This model is proposed by ivan jacobson,grady booch,rumbaugh
This is a use-case driven,architecture-centric,iterative and incremental software process.
This is a framework for object-oriented software engineering sing UML.
The inception phase of Unified Process(UP) encompasses oth customer communication
and planning activities.By colloborating with customer,business requirements for the
software are identified.Fundamental business requirements are expressed through a set of
preliminary use-cases that describes what features and functions are desired by major
class of sers. Architecture at this point is nothing but outline of features and
functions.Planning identifies resources,assesses major risks,defines a schedule.
The elaboration phase encompasses communication,planning and
modelling.Elaboration reines and expands preliminary use-cases
Fig
21
The prodction phase cooincides with deployment activity .During tis phase on-going
use of software is monitored,and defect reports and request for changes are submitted
and evaluated.
Team s/wprocess
The goal of TSP is to ils a team that organises itself to produce high quality s/w.
TSP objectives
1) Build self directed teams that plan & track their goals
2) Show manager how to coach and motivate their teams.
3) Accelerate software process improvement by making CMM level 5 normal and
expected.
22
4) Facilitate university teaching to pgrade team skills
TSP uses wide variety of scripts & standards that serve to guide team members in their
work.Scripts define specific activities.
23