SEPM Module 1 Notes
SEPM Module 1 Notes
Defining Software
Software is defined as:
1. Instructions : Programs that when executed provide desired function, features, and performance
2. Data structures : Enable the programs to adequately manipulate information
3. Documents: Descriptive information in both hard copy and virtual forms that describes the operationand
use of the programs.
(a) System software: A collection of programs written to service other programs. Some systemsoftware
(e.g., compilers, editors, and file management utilities)
(b)Application software: Stand-alone programs that solve a specific business need. Application
software is used to control business functions in real time (e.g., point-of-sale transaction processing, real-
time manufacturing process control).
(d)Embedded software: It resides within a product or system and is used to implement and control features
and functions for the end user and for the system itself. Embedded software can perform limited and esoteric
functions (e.g., key pad control for a microwave oven) or provide significant function and control capability
(e.g., digital functions in an automobile such as fuel control, dashboard displays, and braking systems).
(e)Product-line software: Designed to provide a specific capability for use by many different customers.
Product-line software can focus on a limited and esoteric marketplace (e.g., inventory control products) or
address mass consumer markets (e.g., word processing, spreadsheets, computer graphics, multimedia,
entertainment, database management, and personal and business financial applications).
(f)Web applications: These Applications called “WebApps,” this network-centric software category spans a
wide array of applications. In their simplest form, WebApps can be little more than a set of linked hypertext
files that present information using text and limited graphics.
(g)Artificial intelligence software: These makes use of non numerical algorithms to solve complex problems
that are not amenable to computation or straightforward analysis. Applications within this area include
robotics, expert systems, pattern recognition (image and voice), artificial neural networks, theorem proving,
and game playing.
• Network intensiveness. A WebApp resides on a network and must serve the needs of a diverse community
of clients. The network may enable worldwide access and communication (i.e., the Internet) or more limited
access and communication (e.g., a corporate Intranet).
• Concurrency. A large number of users may access the WebApp at one time. In many cases, the patterns of
usage among end users will vary greatly.
• Unpredictable load. The number of users of the WebApp may vary by orders of magnitude from day to
day. One hundred users may show up on Monday; 10,000 may use the system on Thursday.
• Performance. If a WebApp user must wait too long, he or she may decide to go elsewhere.
• Data driven. The primary function of many WebApps is to use hypermedia to present text, graphics, audio,
and video content to the end user. In addition, WebApps are commonly used to access information that exists
on databases that are not an integral part of the Web-based environment (e.g., e-commerce or financial
applications).
• Content sensitive. The quality and aesthetic nature of content remains an important determinant of the
quality of a WebApp.
• Continuous evolution. Unlike conventional application software that evolves over a series of planned,
chronologically spaced releases, Web applications evolve continuously.
• Security. Because WebApps are available via network access, it is difficult, if not impossible, to limit the
population of end users who may access the application. In order to protect sensitive content and provide
secure modes
• Aesthetics. An undeniable part of the appeal of a WebApp is its look and feel. When an application has
been designed to market or sell products or ideas, aesthetics may have as much to do with success as
technical design.
1.7 SOFTWARE ENGINEERING - A LAYERED TECHNOLOGY
In order to build software that is ready to meet the challenges of the twenty-first century, you must
recognize a few simple realities
• Problem should be understood before software solution is developed
• Design is a pivotal Software Engineering activity
• Software should exhibit high quality
• Software should be maintainable
These simple realities lead to one conclusion. Software in all of its forms and across all of its application
domains should be engineered.
Software Engineering is a layered technology. Software Engineering encompasses a Process, Methods
for managing and engineering software and tools.
The following Figure represents Software engineering Layers
Software engineering is a layered technology. Referring to above Figure, any engineering approach must rest
on an organizational commitment to quality.
• Communication. Before any technical work can commence, it is critically important to communicate and
collaborate with the customer. The intent is to understand stakeholders objectives for the project and to gather
requirements that help define software features and functions.
• Planning. Any complicated journey can be simplified if a map exists. A software project is a complicated
journey, and the planning activity creates a “map” that helps guide the team as it makes the journey. The
map—called a software project plan—defines the software engineering work by describing the technical
tasks to be conducted, the risks that are likely, the resources that will be required, the work products to be
produced, and a work schedule.
• Modeling. Creation of models to help developers and customers understand the requires and software
design
• Construction. This activity combines code generation and the testing that is required to uncover errors in
the code.
• Deployment. The software is delivered to the customer who evaluates the delivered product and provides
feedback based on the evaluation.
• Software project tracking and control—allows the software team to assess progress against the project
plan and take any necessary action to maintain the schedule.
• Risk management—assesses risks that may affect the outcome of the project or the quality of the
product.
• Software quality assurance—defines and conducts the activities required to ensure software quality.
• Technical reviews—assesses software engineering work products in an effort to uncover and remove errors
before they are propagated to the next activity.
• Measurement—defines and collects process, project, and product measures that assist the team in delivering
software that meets stakeholders needs; can be used in conjunction with all other framework and umbrella activities.
• Software configuration management—manages the effects of change throughout the software process.
• Reusability management—defines criteria for work product reuse and establishes mechanisms to
achieve reusable components.
• Work product preparation and production—encompasses the activities required to create work products
such as models, documents, logs, forms, and lists.
Understand the problem. It’s sometimes difficult to admit, but most of us suffer from hubris when we’re
presented with a problem. We listen for a few seconds and then think, Oh yeah, I understand, let’s get on
with solving this thing. Unfortunately, understanding isn’t always that easy. It’s worth spending a little time
answering a few simple questions:
• Who has a stake in the solution to the problem? That is, who are the stakeholders?
• What are the unknowns? What data, functions, and features are required to properly solve the problem?
• Can the problem be compartmentalized? Is it possible to represent smaller problems that may be easier to
understand?
• Can the problem be represented graphically? Can an analysis model be created?
Plan the solution. Now you understand the problem (or so you think) and you can’t wait to begin coding.
Before you do, slow down just a bit and do a little design:
• Have you seen similar problems before? Are there patterns that are recognizable in a potential solution?
Is there existing software that implements the data,
functions, and features that are required?
• Has a similar problem been solved? If so, are elements of the solution reusable?
• Can sub problems be defined? If so, are solutions readily apparent for the sub problems?
• Can you represent a solution in a manner that leads to effective implementation?Can a
design model be created?
Carry out the plan. The design you’ve created serves as a road map for the system you want to build. There
may be unexpected detours, and it’s possible that you’ll discover an even better route as you go, but the
“plan” will allow you to proceed without getting lost.
• Does the solution conform to the plan? Is source code traceable to the design model?
• Is each component part of the solution provably correct? Have the design and code been reviewed, or better,
have correctness proofs been applied to the algorithm?
Examine the result. You can’t be sure that your solution is perfect, but you can be sure that you’ve designed
a sufficient number of tests to uncover as many errors as possible.
• Is it possible to test each component part of the solution? Has a reasonable testing strategy been
implemented?
• Does the solution produce results that conform to the data, functions, and features that are required?
Has the software been validated against all stakeholder requirements?
The dictionary defines the word principle as “an important underlying law or assumption required in a
system of thought.”
David Hooker has proposed seven principles that focus on software Engineering practice.
Management Myths:
Managers with software responsibility, like managers in most disciplines, are often under pressure to
maintain budgets, keep schedules from slipping, and improve quality. Like a drowning person who grasps at a
straw, a software manager often grasps at belief in a software myth.
Myth1: We already have a book that’s full of standards and procedures for building software. Won’t 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?
• Is it complete?
• Is it adaptable?
• Is it streamlined to improve time to delivery while still maintaining a focus on Quality?
Myth2: If we get behind schedule, we can add more programmers and catch up
Reality: Software development is not a mechanistic process like manufacturing. “Adding people to a late
software project makes it later.” At first, this statement may seem counterintuitive. However, as new people
are added, people who were working must spend time educating the newcomers, thereby reducing the amount
of time spent on productive development effort
Myth3: If we decide to outsource the software project to a third party, I can just relax and let that firm build it.
Reality: If an organization does not understand how to manage and control software project internally, it will
invariably struggle when it out sources software project.
Customer Myths:
A customer who requests computer software may be a person at the next desk, a technical group down the
hall, the marketing /sales department, or an outside company that has requested software under contract. In
many cases, the customer believes myths about software because software managers and practitioners do
little to correct misinformation. Myths led to false expectations and ultimately, dissatisfaction with the
developers.
Myth1: A general statement of objectives is sufficient to begin writing programs - we can fill in details later.
Reality: Although a comprehensive and stable statement of requirements is not always possible, an
ambiguous statement of objectives is a recipe for disaster. Unambiguous requirements are developed only
through effective and continuous communication between customer and developer.
Myth2: Project requirements continually change, but change can be easily accommodated because software
is flexible.
Reality: It’s true that software requirement change, but the impact of change varies with the time at which it
is introduced. When requirement changes are requested early, cost impact is relatively small. However, as
time passes, cost impact grows rapidly – resources have been committed, a design framework has been
established, and change can cause upheaval that requires additional resources and major design modification.
Practitioner's Myths:
Myths that are still believed by software practitioners have been fostered by 50 years of programming
culture. During the early days of software, programming was viewed as an art form. Old ways and attitudes
die hard.
Myth1: Once we write the program and get it to work, our job is done.
Reality: Someone once said that "the sooner you begin 'writing code', the longer it'll take you to get done.”
Industry data indicate that between 60 and 80 percent of all effort expended on software will be expended
after it is delivered to the customer for the first time.
Myth2: Until I get the program "running" I have no way of assessing its quality.
Reality: One of the most effective software quality assurance mechanisms can be applied from the inception
of a project—the formal technical review. Software reviews are a "quality filter" that have been found to be
more effective than testing for finding certain classes of software defects.
Myth3: The only deliverable work product for a successful project is the working program.
Reality: A working program is only one part of a software configuration that includes many elements.
Documentation provides a foundation for successful engineering and, more important, guidance for software
support.
Myth4: Software engineering will make us create voluminous and unnecessary documentation and will
invariably slow us down.
Reality: Software engineering is not about creating documents. It is about creating quality. Better quality
leads to reduced rework. And reduced rework results in faster delivery times. Many software professionals
recognize the fallacy of the myths just described. Regrettably, habitual attitudes and methods foster poor
management and technical practices, even when reality dictates a better approach. Recognition of software
realities is the first step toward formulation of practical solutions for software engineering.
1.12 PROCESS MODELS
A GENERIC PROCESS MODEL:
The software process is represented schematically in following figure. Each framework activity is populated
by a set of software engineering actions. Each software engineering action is defined by a task set that
identifies the work tasks that are to be completed, the work products that will be produced, the quality
assurance points that will be required, and the milestones that will be used to indicate progress.
This aspect is called process flow. It describes how the framework activities and the actions and tasks that
occur within each framework activity are organized with respect to sequence and time.
A linear process flow executes each of the five framework activities in sequence, beginning with
communication and culminating with deployment.
An iterative process flow repeats one or more of the activities before proceeding to the next.
An evolutionary process flow executes the activities in a “circular” manner. Each circuit through the five
activities leads to a more complete version of the software.
A parallel process flow executes one or more activities in parallel with other activities (e.g., modeling
for one aspect of the software might be executed in parallel with construction of another aspect of the
software).
1.12.1 Process Patterns:
A process pattern describes a process-related problem that is encountered during software engineering work,
identifies the environment in which the problem has been encountered, and suggests one or more proven
solutions to the problem. Stated in more general terms, a process pattern provides you with a template —a
consistent method for describing problem solutions within the context of the software process.
Patterns can be defined at any level of abstraction. a pattern might be used to describe a problem (and
solution) associated with a complete process model (e.g., prototyping). In other situations, patterns can be
used to describe a problem (and solution) associated with a framework activity (e.g., planning) or an action
within a framework activity (e.g., project estimating).
Ambler has proposed a template for describing a process pattern:
(a) Pattern Name. The pattern is given a meaningful name describing it within the context of the software
process
(b) Forces. The environment in which the pattern is encountered and the issues that make the problem
visible and may affect its solution.
(c) Type. The pattern type is specified. Ambler suggests three types:
1. Stage pattern—defines a problem associated with a framework activity for the process. Since a
framework activity encompasses multiple actions and work tasks, a stage pattern incorporates multiple
task patterns (see the following) that are relevant to the stage (framework activity). An example of a
stage pattern might be Establishing Communication. This pattern would incorporate the task pattern
Requirements Gathering and others.
2. Task pattern—defines a problem associated with a software engineering action or work task and
relevant to successful software engineering practice (e.g., Requirements Gathering is a task pattern).
3. Phase pattern—define the sequence of framework activities that occurs within the process, even when
the overall flow of activities is iterative in nature. An example of a phase pattern might be Spiral Model
or Prototyping.
(d) Initial context. Describes the conditions under which the pattern applies. Prior to the initiation of the
pattern:
i. What organizational or team-related activities have already occurred?
ii. What is the entry state for the process?
iii. What software engineering information or project information already exists?
(e) Problem. The specific problem to be solved by the pattern.
(f) Solution. Describes how to implement the pattern successfully. It also describes how software engineering
information or project information that is available before the initiation of the pattern is transformed as a
consequence of the successful execution of the pattern.
(g) Resulting Context. Describes the conditions that will result once the pattern has been successfully
implemented. Upon completion of the pattern:
i. What organizational or team-related activities must have occurred?
ii. What is the exit state for the process?
iii. What software engineering information or project information has been developed?
(h) Related Patterns. Provide a list of all process patterns that are directly related to this one. This may be
represented as a hierarchy or in some other diagrammatic form.
(i) Known Uses and Examples. Indicate the specific instances in which the pattern is applicable.
Process patterns provide an effective mechanism for addressing problems associated with any software
process. The patterns enable you to develop a hierarchical process description that begins at a high level of
abstraction (a phase pattern).
1.13 PROCESS ASSESSMENT AND IMPROVEMENT:
Assessment attempts to understand the current state of the software process with the intent of improving it.
A number of different approaches to software process assessment and improvement have been proposed
over the past few decades.
Standard CMMI Assessment Method for Process Improvement (SCAMPI)—provides a five step process
assessment model that incorporates five phases: initiating, diagnosing, establishing, acting, and 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; uses the SEI CMM as the basis for the assessment.
SPICE (ISO/IEC15504)—a standard that defines a set of requirements for software process assessment. 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—a generic standard that applies to any organization that wants to improve the
overall quality of the products, systems, or services that it provides. Therefore, the standard is directly
applicable to software organizations and companies.
A variation in the representation of the waterfall model is called the V-model. Represented in following figure.
The V-model depicts the relationship of quality assurance actions to the actions associated with
communication, modeling, and early construction activities.
As a software team moves down the left side of the V, basic problem requirements are refined into
progressively more detailed and technical representations of the problem and its solution. Once code has been
generated, the team moves up the right side of the V, essentially performing a series of tests that validate each
of the models created as the team moved down the left side. The V-model provides a way of visualizing how
verification and validation actions are applied to earlier engineering work.
The waterfall model is the oldest paradigm for software engineering. The problems that are sometimes
encountered when the waterfall model is applied are:
V Model:
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 exists at the beginning ofmany projects.
3. The customer must have patience. A working version of the program(s) will not be available until late in
the project time span.
This model is suitable when ever limited number of new development efforts and when requirements are well
defined and reasonably stable.
For example, word-processing software developed using the incremental paradigm might deliver basic file
management, editing, and document production functions in the first increment; more sophisticated editing
and document production capabilities in the second increment; spelling and grammar checking in the third
increment; and advanced page layout capability in the fourth increment.
When an incremental model is used, the first increment is often a core product. That is, basic requirements
are addressed but many supplementary features remain undelivered. The core product is used by the
customer. As a result of use and/or evaluation, a plan is developed for the next increment. The plan addresses
the modification of the core product to better meet the needs of the customer and the delivery of additional
features and functionality. This process is repeated following the delivery of each increment, until the
complete product is produced.
Incremental development is particularly useful when staffing is unavailable for a complete implementation
by the business deadline that has been established for the project. Early increments can be implemented with
fewer people. If the core product is well received, then additional staff (if required) can be added to
implement the next increment. In addition, increments can be planned to manage technical risks.
1.14.3 Evolutionary Process Models:
Evolutionary models are iterative. They are characterized in a manner that enables you to develop
increasingly more complete versions of the software with each iteration. There are two common evolutionary
process models.
Prototyping Model:
Often, a customer defines a set of general objectives for software, but does not identify detailed requirements
for functions and features. In other cases, the developer may be unsure of the efficiency of an algorithm, the
adaptability of an operating system, or the form that human-machine interaction should take. In these, and
many other situations, a prototyping paradigm may offer the best approach.
Although prototyping can be used as a stand-alone process model, it is more commonly used as a technique
that can be implemented within the context of any one of the process models.
The prototyping paradigm begins with communication. You meet with other stakeholders to define the
overall objectives for the software, identify whatever requirements are known, and outline areas where
further definition is mandatory. A prototyping iteration is planned quickly, and modeling (in the form of a
“quick design”) occurs. A quick design focuses on a representation of those aspects of the software that will
be visible to end users.
1. Stakeholders see what appears to be a working version of the software, unaware that the prototype is held
together haphazardly, unaware that in the rush to get it working you haven’t considered overall software
quality or long-term maintainability.
2. As a software engineer, you often make implementation compromises in order to get a prototype working
quickly. An inappropriate operating system or programming language may be used simply because it is
available and known; an inefficient algorithm may be implemented simply to demonstrate capability.
Although problems can occur, prototyping can be an effective paradigm for software engineering.
A spiral model is divided into a set of framework activities defined by the software engineering team. As this
evolutionary process begins, the software team performs activities that are implied by a circuit around the spiral
in a clockwise direction, beginning at the center. Risk is considered as each revolution is made. Anchor point
milestones are 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 a 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. The
spiral model can be adapted to apply throughout the life of the computer software. Therefore, the first circuit
around the spiral might represent a “concept development project” that starts at the core of the spiral and
continues for multiple iterations until concept development is complete. The new product will evolve through
a number of iterations around the spiral. Later, a circuit around the spiral might be used to represent a
“product enhancement project.”. The spiral model is a realistic approach to the development of large-
scale systems and software. Because software evolves as the process progresses, the developer and customer
better understand and react to risks at each evolutionary level. 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.
All software engineering activities exist concurrently but reside in different states. Concurrent modeling
defines a series of events that will trigger transitions from state to state for each of the software engineering
activities, actions, or tasks. This generates the event analysis model correction, which will trigger the
requirements analysis action from the done state into the awaiting changes state.
Concurrent modeling is applicable to all types of software development and provides an accurate picture of the
current state of a project. Each activity, action, or task on the network exists simultaneously with other
activities, actions, or tasks. Events generated at one point in the process network trigger transitions among the
states.
1.14.5 SPECIALIZED PROCESS MODELS:
Specialized process models take on many of the characteristics of one or more of the traditional models
presented in the preceding sections. However, these models tend to be applied when a specialized or narrowly
defined software engineering approach is chosen.
1. Component-Based Development:
The component-based development model incorporates many of the characteristics of the spiral model. It is
evolutionary in nature, demanding an iterative approach to the creation of software. However, the component-
based development model constructs applications from prepackaged software components.
Modeling and construction activities begin with the identification of candidate components. These
components can be designed as either conventional software modules or object-oriented classes or packages of
classes. Regardless of the technology that is used to create the components, the component- based
development model incorporates the following steps
a. Available component-based products are researched and evaluated for the application domain inquestion.
b. Component integration issues are considered.
c. A software architecture is designed to accommodate the components.
d. Components are integrated into the architecture.
e. Comprehensive testing is conducted to ensure proper functionality.
The component-based development model leads to software reuse, and reusability provides software
engineers with a number of measurable benefits.
Draw Backs:
• The development of formal models is currently quite time consuming and expensive.
• Because few software developers have the necessary background to apply formal methods, extensive
training is required.
• It is difficult to use the models as a communication mechanism for Technically unsophisticated customers.
In some way the Unified Process is an attempt to draw on the best feature and characteristics of traditional
software process models.
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”.
It suggests a process flow that is iterative and incremental, providing the evolutionary feel that is essential in
modern software development.
The above figure shows the Unified Process Model.
The Inception Phase of the UP is where customer communication and planning takes place. Planning identifies
resources, assesses major risk, and defines a preliminary schedule for the software increments.
The Elaboration Phase contains the planning and modeling activities of the generic process model. Elaboration
refines and expands the preliminary use case and creates an architectural baseline includes five different view
of software—the use case model, the analysis model, the design model, the implementation model and
deployment model.
The Construction Phase of the UP is identical to construction activity defined for the generic software process.
All necessary and required feature and functions for the software are implemented in source code. And unit test
are designed and executed for each. In addition integration test and acceptance test are conducted.
The Transition Phase of the UP contains the latter stage of generic construction activity and the first part of the
generic deployment activity. Software and supporting documentation is given to end users for beta testing and
user feedback reports both defects and necessary changes.
The Production Phase of the UP is with the deployment activity of the generic process. During this phase, the
ongoing use of the software is monitored, support for the operating environment is provided, and defect reports
and request for changes.