UNIT 1 Class
UNIT 1 Class
Software: Software is
(1) Instructions (computer programs) that provide desired features, function,
and performance, when executed
(2) Data structures that enable the programs to adequately manipulate information,
(3) Documents that describe the operation and use of the programs.
Characteristics of Software:
(1) Software is developed or engineered; it is not manufactured in the classical sense.
(2) Software does not “wear out”
(3) Although the industry is moving toward component-based construction,
most software continues to be custom built.
Software Engineering:
(1) The systematic, disciplined quantifiable approach to the development,
operation and maintenance of software; that is, the application of
engineering to software.
(2) The study of approaches as in (1)
EVOLVING ROLE OF SOFTWARE:
Software takes dual role. It is both a product and a vehicle for delivering a product.
As a product: It delivers the computing potential embodied by computer
Hardware or by a network of computers.
As a vehicle: It is information transformer-producing, managing, acquiring,
modifying, displaying, or transmitting information that can be as simple as single
bit or as complex as a multimedia presentation. Software delivers the most
important product of our time-information.
- It transforms personal data
- It manages business information to enhance competitiveness
- It provides a gateway to worldwide information networks
- It provides the means for acquiring information
The role of computer software has undergone significant change over a span of little more
than 50 years
- Dramatic Improvements in hardware performance
- Vast increases in memory and storage capacity
- A wide variety of exotic input and output options
Mid-1990s:
The pervasiveness of computers and software spawned a rash of books by neo-
luddites.
Later 1990s:
Yourdon reevaluated the prospects of the software professional and
suggested “the rise and resurrection” of the American programmer.
The impact of the Y2K “time bomb” was at the end of 20th century
2000s progressed:
Johnson discussed the power of “emergence” a phenomenon that explains
what happens when interconnections among relatively simple entities result
in a system that “self-organizes to form more intelligent, more adaptive
behavior”.
Yourdon revisited the tragic events of 9/11 to discuss the continuing impact
of global terrorism on the IT community
Wolfram presented a treatise on a “new kind of science” that posits a
unifying theory based primarily on sophisticated software simulations
Daconta and his colleagues discussed the evolution of “the semantic web”.
Today a huge software industry has become a dominant factor in the economies of the
industrialized world.
THE CHANGING NATURE OF SOFTWARE:
The 7 broad categories of computer software present continuing challenges for software
engineers:
1) System software
2) Application software
3) Engineering/scientific software
4) Embedded software
5) Product-line software
6) Web-applications
7) Artificial intelligence software.
System software: System software is a collection of programs written to service
other programs.
The systems software is characterized by
- heavy interaction with computer hardware
- heavy usage by multiple users
- concurrent operation that requires scheduling, resource sharing, and
sophisticated process management
- complex data structures
- multiple external interfaces
E.g. compilers, editors and file management utilities.
Application software:
- Application software consists of standalone programs that solve a specific
business need.
- It facilitates business operations or management/technical decision making.
- It is used to control business functions in real-time
E.g. point-of-sale transaction processing, real-time manufacturing process control.
Beliefs about software and the process used to build it- can be traced to the earliest
days of computing myths have a number of attributes that have made them
insidious.
Management myths: Manages with software responsibility, like managers in
most disciplines, are often under pressure to maintain budgets, keep schedules
from slipping, and improve quality.
Myth: We already have a book that’s full 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? Does it reflect modern software engineering
practice?
Myth: If we get behind schedule, we can add more programmers and catch up.
Reality: Software development is not a mechanistic process like manufacturing.
As new people are added, people who were working must spend time educating
the new comers, thereby reducing the amount of time spend on productive
development effort. People can be added but only in a planned and well
coordinated manner.
Myth: If I decide to outsource the software project to a third party, I can just relax and let
that firm built it.
Reality: If an organization does not understand how to manage and control
software projects internally, it will invariably struggle when it outsources software
projects.
Customer myths: The customer believes myths about software because software
managers and practitioners do little to correct misinformation. Myths lead to false
expectations and ultimately, dissatisfaction with the developer.
Myth: A general statement of objectives is sufficient to begin with writing
programs - we can fill in the details later.
Tools
Methods
Process
A quality focus
The foundation for software engineering is the process layer. Software engineering
process is the glue that holds the technology layers. Process defines a framework that
must be established for effective delivery of software engineering technology.
The software forms the basis for management control of software projects and
establishes the
context in which
- technical methods are applied,
- work products are produced,
- milestones are established,
- quality is ensured,
- And change is properly managed.
Software engineering methods rely on a set of basic principles that govern area of
the technology and include modeling activities.
Software engineering tools provide automated or semi automated support for the
process and the methods. When tools are integrated so that information created by one
tool can be used by another, a system for the support of software development, called
computer-aided software engineering, is established.
A PROCESS FRAMEWORK:
Software process must be established for effective delivery of software engineering
technology.
A process framework establishes the foundation for a complete software process
by identifying a small number of framework activities that are applicable to all
software projects, regardless of their size or complexity.
The process framework encompasses a set of umbrella activities that are
applicable across the entire software process.
Each framework activity is populated by a set of software engineering actions
Each software engineering action is represented by a number of different task
sets- each a collection of software engineering work tasks, related work products,
quality assurance points, and project milestones.
In brief
"A process defines who is doing what, when, and how to reach a certain goal."
A Process Framework
- establishes the foundation for a complete software process
- identifies a small number of framework activities
- applies to all s/w projects, regardless of size/complexity.
- also, set of umbrella activities
- applicable across entire s/w process.
- Each framework activity has
- set of s/w engineering actions.
- Each s/w engineering action (e.g., design) has
collection of related tasks (called task sets): work tasks
work products
(deliverables) quality
milestones.
Generic Process Framework:
It is applicable to the vast majority of software projects
- Communication activity
- Planning activity
- Modeling activity
- analysis action
- requirements gathering work task
- elaboration work task
- negotiation work task
- specification work task
- validation work task
- design action
- data design work task
- architectural design work task
- interface design work task
- component-level design work task
- Construction activity
- Deployment activity
The specific goals (SG) and the associated specific practices(SP) defined for project planning are
SG 1 Establish estimates
SP 1.1 Estimate the scope of the project
SP 1.2 Establish estimates of work product and task
attributes SP 1.3 Define project life cycle
SP 1.4 Determine estimates of effort and cost
SG 2 Develop a Project Plan
SP 2.1 Establish the budget and
schedule SP 2.2 Identify project
risks
SP 2.3 Plan for data management
SP 2.4 Plan for needed knowledge and
skills SP 2.5 Plan stakeholder
involvement
SP 2.6 Establish the project plan
SG 3 Obtain commitment to the plan
SP 3.1 Review plans that affect the
project SP 3.2 Reconcile work and
resource levels SP 3.3 Obtain plan
commitment
In addition to specific goals and practices, the CMMI also defines a set of five generic
goals and related practices for each process area. Each of the five generic goals
corresponds to one of the five capability levels. Hence to achieve a particular capability
level, the generic goal for that level and the generic practices that correspond to that goal
must be achieved. To illustrate, the generic goals (GG) and practices (GP) for the
project planning process area are
Pattern Name: The pattern is given a meaningful name that describes its function within the
software process.
Initial Context: The conditions under which the pattern applies are described prior to the
initiation of the pattern, we ask
(1) What organizational or team related activities have already occurred.
(2) What is the entry state for the process
(3) What software engineering information or project information already exists
Resulting Context: The conditions that will result once the pattern has been successfully
implemented are described. Upon completion of the pattern we ask
(1) What organizational or team-related activities must have occurred
(2) What is the exit state for the process
(3) What software engineering information or project information has been developed?
Known Uses: The specific instances in which the pattern is applicable are
indicated Process patterns provide and effective mechanism for describing any
software process.
The patterns enable a software engineering organization to develop a hierarchical process
description that begins at a high-level of abstraction.
Once process pattern have been developed, they can be reused for the definition of process
variants-that is, a customized process model can be defined by a software team using the pattern
as building blocks for the process models.
PROCESS ASSESSMENT
The existence of a software process is no guarantee that software will be delivered on
time, that it will meet the customer’s needs, or that it will exhibit the technical characteristics that
will lead to long-term quality characteristics. In addition, the process itself should be assessed to
be essential to ensure that it meets a set of basic process criteria that have been shown to be
essential for a successful software engineering.
Software
Software
Lead
Software Capability
Motivat
A Number of different approaches to software process assessment have been proposed over the
past few decades.
Standards CMMI Assessment Method for Process Improvement (SCAMPI) provides a five
step process assessment model that incorporates initiating, diagnosing, establishing, acting &
learning. The SCAMPI method uses the SEI CMMI as the basis for assessment.
CMM Based Appraisal for Internal Process Improvement (CBA IPI) provides a diagnostic
technique for assessing the relative maturity of a software organization, using the SEI CMM as
the basis for the assessment.
SPICE (ISO/IEC15504) standard defines a set of requirements for software process assessments.
The intent of the standard is to assist organizations in developing an objective evaluation of the
efficacy of any defined software process.
ISO 9001:2000 for Software is a generic standard that applies to any organization that wants to
improve the overall quality of the products, system, or services that it provides. Therefore, the
standard is directly applicable to software organizations &companies.
PERSONAL AND TEAM PROCESS MODELS:
The best software process is one that is close to the people who will be doing the
work.Each software engineer would create a process that best fits his or her needs, and at
the same time meets the broader needs of the team and the organization. Alternatively,
the team itself would create its own process, and at the same time meet the narrower
needs of individuals and the broader needs of the organization.
The PSP process model defines five framework activities: planning, high-level design,
high level design review, development, and postmortem.
Planning: This activity isolates requirements and, base on these develops both size and
resource estimates. In addition, a defect estimate is made. All metrics are recorded on
worksheets or templates. Finally, development tasks are identified and a project schedule
is created.
High level design: External specifications for each component to be constructed are
developed and a component design is created. Prototypes are built when uncertainty
exists. All issues are recorded and tracked.
High level design review: Formal verification methods are applied to uncover errors in
the design. Metrics are maintained for all important tasks and work results.
Development: The component level design is refined and reviewed. Code is generated,
reviewed, compiled, and tested. Metrics are maintained for all important task and work
results.
Postmortem: Using the measures and metrics collected the effectiveness of the
process is determined. Measures and metrics should provide guidance for modifying
the process to improve its effectiveness.
PSP stresses the need for each software engineer to identify errors early and, as
important, to understand the types of errors that he is likely to make.
Team software process (TSP): The goal of TSP is to build a “self-directed project team
that organizes itself to produce high-quality software. The following are the objectives
for TSP:
Build self-directed teams that plan and track their work, establish goals, and
own their processes and plans. These can be pure software teams or integrated
product teams(IPT) of 3 to about 20 engineers.
Show managers how to coach and motivate their teams and how to help
them sustain peak performance.
Accelerate software process improvement by making CMM level 5 behavior normal and
expected.
Provide improvement guidance to high-maturity organizations.
Facilitate university teaching of industrial-grade
team skills. A self-directed team defines
- roles and responsibilities for each team member
- tracks quantitative project data
- identifies a team process that is appropriate for the project
- a strategy for implementing the process
- defines local standards that are applicable to the teams software engineering work;
- continually assesses risk and reacts to it
- Tracks, manages, and reports project status.
-
TSP defines the following framework activities: launch, high-level design,
implementation, integration and test, and postmortem.
TSP makes use of a wide variety of scripts, forms, and standards that serve to guide team
members in their work.
Scripts define specific process activities and other more detailed work functions that
are part of the team process.
Each project is “launched” using a sequence of tasks.
Advantage:
It can serve as a useful process model in situations where requirements are fixed
and work is to proceed to complete in a linear manner.
The problems that are sometimes encountered when the waterfall model is applied are:
1. Real projects rarely follow the sequential flow that the model proposes. Although
the linear model can accommodate iteration, it does so indirectly. As a result,
changes can cause confusion as the project team proceeds.
2. It is often difficult for the customer to state all requirements explicitly. The
waterfall model requires this and has difficulty accommodating the natural
uncertainty that exist at the beginning of many projects.
3. The customer must have patience. A working version of the programs will not be
available until late in the project time-span. If a major blunder is undetected then
it can be disastrous until the program is reviewed.
THE INCREMENTAL MODEL:
increment # n
Com mu ni c a ion
Pl a nn ing
M o d el in g
a n a lys i s C o n st r u ct i n
d e s ig n
c ode D ep l o y m e n t
te st de li v e r y
fe e d b a c k
deliv ery of
nt h increment
increment # 2
Com mu ni c a t io n
Pl a nn ing
M o d el in g
a n al ysi s C o n s t r c t io n
d esi g n c ode D e p l o y m e n t
te st de li v e r y
f e e d b a ck
deliv ery of
increment # 1 2nd increment
i on
Com mu ni c a
Pl a nn ing
M o d el in g
a n al ysi C o n st r u ct i o
deliv ery of
n
sdesig n c ode
te st
D e p l o y m e n t
de li v e r y
1st increment
f e ed b a c k
Evolutionary process models produce with each iteration produce an increasingly more complete
version of the software with every iteration.
Evolutionary models are iterative. They are characterized in a manner that enables software
engineers to develop increasingly more complete versions of the software.
PROTOTYPING:
Prototyping is more commonly used as a technique that can be implemented within the context
of anyone of the process model.
The prototyping paradigm begins with communication. The software engineer and customer meet
and define the overall objectives for the software, identify whatever requirements are known, and
outline areas where further definition is mandatory.
Prototyping iteration is planned quickly and modeling occurs. The quick design leads to the
construction of a prototype. The prototype is deployed and then evaluated by the customer/user.
Iteration occurs as the prototype is tuned to satisfy the needs of the customer, while at the same
time enabling the developer to better understand what needs to be done.
Qu ick p lan
Mo d e lin g
Qu ick d e sig n
Deployment
De live r y
Const ruct ion
& Fe e dback
of
prot ot ype
Context:
If a customer defines a set of general objectives for software, but does not identify
detailed input, processing, or output requirements, in such situation prototyping paradigm is best
approach.
If a developer may be unsure of the efficiency of an algorithm, the adaptability of an
operating system then he can go for this prototyping method.
Advantages:
The prototyping paradigm assists the software engineer and the customer to better
understand what is to be built when requirements are fuzzy.
The prototype serves as a mechanism for identifying software requirements. If a working
prototype is built, the developer attempts to make use of existing program fragments or applies
tools.
communication
modelin
g
analysi
s
design
start
deployme
construction
nt cod
produce delivery e
d. feedback test
Anchor point milestones- a combination of work products and conditions that are
attained along the path of the spiral- are noted for each evolutionary pass.
The first circuit around the spiral might result in the development of product
specification; subsequent passes around the spiral might be used to develop a prototype
and then progressively more sophisticated versions of the software.
Each pass through the planning region results in adjustments to the project plan. Cost and
schedule are adjusted based on feedback derived from the customer after delivery. In
addition, the project manager adjusts the planned number of iterations required to
complete the software.
It maintains the systematic stepwise approach suggested by the classic life cycle but
incorporates it into an iterative framework that more realistically reflects the real world.
The first circuit around the spiral might represent a “concept development project”
which starts at the core of the spiral and continues for multiple iterations until concept
development is complete.
If the concept is to be developed into an actual product, the process proceeds outward on
the spiral and a “new product development project” commences.
Later, a circuit around the spiral might be used to represent a “product enhancement
project.” In essence, the spiral, when characterized in this way, remains operative until
the software is retired.
Context: The spiral model can be adopted to apply throughout the entire life cycle of an
application, from concept development to maintenance.
Advantages:
It provides the potential for rapid development of increasingly more complete versions of the software.
The spiral model is a realistic approach to the development of large-scale systems and software.
The spiral model uses prototyping as a risk reduction mechanism but, more importantly enables
the developer to apply the prototyping approach at any stage in the evolution of the product.
Draw Backs:
The spiral model is not a panacea. It may be difficult to convince customers that the evolutionary
approach is controllable. It demands considerable risk assessment expertise and relies on this
expertise for success. If a major risk is not uncovered and managed, problems will undoubtedly
occur.
THE UNIFIED PROCESS:
The unified process (UP) is an attempt to draw on the best features and characteristics of
conventional software process models, but characterize them in a way that implements many of
the best principles of agile software development.
The Unified process recognizes the importance of customer communication and streamlined
methods for describing the customer’s view of a system. It emphasizes the important role of
software architecture and “helps the architect focus on the right goals, such as understandability,
reliance to future changes, and reuse“. If suggests a process flow that is iterative and incremental,
providing the evolutionary feel that is essential in modern software development.
A BRIEF HISTORY:
During the 1980s and into early 1990s, object-oriented (OO) methods and programming
languages gained a widespread audience throughout the software engineering community. A wide
variety of object- oriented analysis (OOA) and design (OOD) methods were proposed during the
same time period.
During the early 1990s James Rumbaugh, Grady Booch, and Ival Jacobsom began
working on a “Unified method” that would combine the best features of each of OOD & OOA.
The result was UML- a unified modeling language that contains a robust notation fot the
modeling and development of OO systems.
By 1997, UML became an industry standard for object-oriented software development.
At the same time, the Rational Corporation and other vendors developed automated tools to
support UML methods.
Over the next few years, Jacobson, Rumbugh, and Booch developed the Unified process,
a framework for object-oriented software engineering using UML. Today, the Unified process
and UML are widely used on OO projects of all kinds. The iterative, incremental model proposed
by the UP can and should be adapted to meet specific project needs.
PHASES OF THE UNIFIED PROCESS:
The inception phase of the UP encompasses both customer communication and planning
activities. By collaborating with the customer and end-users, business requirements for the
software are identified, a rough architecture for the system is proposed and a plan for the iterative,
incremental nature of the ensuing project is developed.
The elaboration phase encompasses the customer communication and modeling activities
of the generic process model. Elaboration refines and expands the preliminary use-cases that were
developed as part of the inception phase and expands the architectural representation to include
five different views of the software- the use-case model, the analysis model, the design model,
the implementation model, and the deployment model.
The construction phase of the UP is identical to the construction activity defined for the
generic software process. Using the architectural model as input, the construction phase develops
or acquires the software components that will make each use-case operational for end-users. To
accomplish this, analysis and design models that were started during the elaboration phase are
completed to reflect the final version of the software increment.
The transition phase of the UP encompasses the latter stages of the generic construction
activity and the first part of the generic deployment activity. Software given to end-users for beta
testing, and user feedback reports both defects and necessary changes.
The production phase of the UP coincides with the deployment activity of the generic
process. During this phase, the on-going use of the software is monitored, support for the
operating environment is provided, and defect reports and requests for changes are submitted and
evaluated.
Elaboration
Incept ion
construct ion
Release
transit ion
soft ware increment
product ion
A software engineering workflow is distributed across all UP phases. In the context of UP, a
workflow is analogous to a task set. That is, a workflow identifies the tasks required to accomplish
an important software engineering action and the work products that are produced as a
consequence of successfully completing the tasks.
During the inception phase, the intent is to establish an overall “vision” for the project,
- identify a set of business requirements,
- make a business case for the software, and
- define project and business risks that may represent a threat to success.
The most important work product produced during the inception is the use-case
modell-a collection of use-cases that describe how outside actors interact with the system
and gain value from it. The use-case model is a collection of software features and
functions by describing a set of preconditions, a flow of events and a set of post-
conditions for the interaction that is depicted.
The use-case model is refined and elaborated as each UP phase is conducted and
serves as an important input for the creation of subsequent work products. During the
inception phase only 10 to 20 percent of the use-case model is completed. After
elaboration, between 80 to 90 percent of the model has been created.
The transition phase delivers the software increment and assesses work products
that are produced as end-users work with the software. Feedback from beta testing and
qualitative requests for change is produced at this time.
Inception phase
Elaboration phase
Vision document
Init ial use-case model
Init ial project glossary Construct ion phase
Use-case model
Init ial business case Supplement ary requirement s
Init ial risk assessment . including non-funct ional Transition phase
Design model
Project plan, Analy sis model Soft ware component s
phases and it erat ions. Soft ware archit ect ure Int egrat ed soft ware Deliv ered soft ware increment
Business model, Descript ion. Bet a t est report s
increment
if necessary . Execut able archit ect ural Test plan and procedure General user feedback
One or more prot ot ypes prot ot ype. Test cases
Preliminary design model Support document at ion
Revised risk list user manuals
Project plan including inst allat ion manuals
it erat ion plan descript ion of current
adapt ed workflows increment
milest ones
t echnical work product s
Preliminary user manual