SlideShare a Scribd company logo
1 of 58
Chapter 15 – Software Reuse
Chapter 15 Software reuse 1
17/11/2014
Topics covered
ī‚˛ The reuse landscape
ī‚˛ Application frameworks
ī‚˛ Software product lines
ī‚˛ Application system reuse
Chapter 15 Software reuse 2
17/11/2014
Software reuse
ī‚˛ In most engineering disciplines, systems are designed
by composing existing components that have been used
in other systems.
ī‚˛ Software engineering has been more focused on original
development but it is now recognised that to achieve
better software, more quickly and at lower cost, we need
a design process that is based on systematic software
reuse.
ī‚˛ There has been a major switch to reuse-based
development over the past 10 years.
17/11/2014 Chapter 15 Software reuse 3
Reuse-based software engineering
ī‚˛ System reuse
ī‚§ Complete systems, which may include several application
programs may be reused.
ī‚˛ Application reuse
ī‚§ An application may be reused either by incorporating it without
change into other or by developing application families.
ī‚˛ Component reuse
ī‚§ Components of an application from sub-systems to single objects
may be reused.
ī‚˛ Object and function reuse
ī‚§ Small-scale software components that implement a single well-
defined object or function may be reused.
17/11/2014 Chapter 15 Software reuse 4
Benefits of software reuse
Benefit Explanation
Accelerated development Bringing a system to market as early as possible is
often more important than overall development costs.
Reusing software can speed up system production
because both development and validation time may be
reduced.
Effective use of specialists Instead of doing the same work over and over again,
application specialists can develop reusable software
that encapsulates their knowledge.
Increased dependability Reused software, which has been tried and tested in
working systems, should be more dependable than
new software. Its design and implementation faults
should have been found and fixed.
Chapter 15 Software reuse 5
17/11/2014
Benefits of software reuse
Benefit Explanation
Lower development costs Development costs are proportional to the size of the
software being developed. Reusing software means that
fewer lines of code have to be written.
Reduced process risk The cost of existing software is already known, whereas
the costs of development are always a matter of
judgment. This is an important factor for project
management because it reduces the margin of error in
project cost estimation. This is particularly true when
relatively large software components such as
subsystems are reused.
Standards compliance Some standards, such as user interface standards, can
be implemented as a set of reusable components. For
example, if menus in a user interface are implemented
using reusable components, all applications present the
same menu formats to users. The use of standard user
interfaces improves dependability because users make
fewer mistakes when presented with a familiar interface.
Chapter 15 Software reuse 6
17/11/2014
Problems with reuse
Problem Explanation
Creating, maintaining,
and using a component
library
Populating a reusable component library and ensuring the
software developers can use this library can be expensive.
Development processes have to be adapted to ensure that
the library is used.
Finding, understanding,
and adapting reusable
components
Software components have to be discovered in a library,
understood and, sometimes, adapted to work in a new
environment. Engineers must be reasonably confident of
finding a component in the library before they include a
component search as part of their normal development
process.
Increased maintenance
costs
If the source code of a reused software system or
component is not available then maintenance costs may be
higher because the reused elements of the system may
become increasingly incompatible with system changes.
Chapter 15 Software reuse 7
17/11/2014
Problems with reuse
Problem Explanation
Lack of tool support Some software tools do not support development with
reuse. It may be difficult or impossible to integrate these
tools with a component library system. The software
process assumed by these tools may not take reuse into
account. This is particularly true for tools that support
embedded systems engineering, less so for object-
oriented development tools.
Not-invented-here
syndrome
Some software engineers prefer to rewrite components
because they believe they can improve on them. This is
partly to do with trust and partly to do with the fact that
writing original software is seen as more challenging than
reusing other people’s software.
Chapter 15 Software reuse 8
17/11/2014
The reuse landscape
Chapter 15 Software reuse 9
17/11/2014
The reuse landscape
ī‚˛ Although reuse is often simply thought of as the reuse of
system components, there are many different
approaches to reuse that may be used.
ī‚˛ Reuse is possible at a range of levels from simple
functions to complete application systems.
ī‚˛ The reuse landscape covers the range of possible reuse
techniques.
17/11/2014 Chapter 15 Software reuse 10
The reuse landscape
Chapter 15 Software reuse 11
17/11/2014
Approaches that support software reuse
Approach Description
Application frameworks Collections of abstract and concrete classes are adapted and
extended to create application systems.
Application system
integration
Two or more application systems are integrated to provide
extended functionality
Architectural patterns Standard software architectures that support common types
of application system are used as the basis of applications.
Described in Chapters 6, 11 and 17.
Aspect-oriented software
development
Shared components are woven into an application at different
places when the program is compiled. Described in web
chapter 31.
Component-based
software engineering
Systems are developed by integrating components
(collections of objects) that conform to component-model
standards. Described in Chapter 16.
Chapter 15 Software reuse 12
17/11/2014
Approaches that support software reuse
Approach Description
Configurable application
systems
Domain-specific systems are designed so that they can be
configured to the needs of specific system customers.
Design patterns Generic abstractions that occur across applications are
represented as design patterns showing abstract and
concrete objects and interactions. Described in Chapter 7.
ERP systems Large-scale systems that encapsulate generic business
functionality and rules are configured for an organization.
Legacy system wrapping Legacy systems (Chapter 9) are ‘wrapped’ by defining a set
of interfaces and providing access to these legacy systems
through these interfaces.
Model-driven engineering Software is represented as domain models and
implementation independent models and code is generated
from these models. Described in Chapter 5.
Chapter 15 Software reuse 13
17/11/2014
Approaches that support software reuse
Approach Description
Program generators A generator system embeds knowledge of a type of
application and is used to generate systems in that domain
from a user-supplied system model.
Program libraries Class and function libraries that implement commonly used
abstractions are available for reuse.
Service-oriented systems Systems are developed by linking shared services, which
may be externally provided. Described in Chapter 18.
Software product lines An application type is generalized around a common
architecture so that it can be adapted for different customers.
Systems of systems Two or more distributed systems are integrated to create a
new system. Described in Chapter 20.
Chapter 15 Software reuse 14
17/11/2014
Reuse planning factors
ī‚˛ The development schedule for the software.
ī‚˛ The expected software lifetime.
ī‚˛ The background, skills and experience of the
development team.
ī‚˛ The criticality of the software and its non-functional
requirements.
ī‚˛ The application domain.
ī‚˛ The execution platform for the software.
17/11/2014 Chapter 15 Software reuse 15
Application frameworks
Chapter 15 Software reuse 16
17/11/2014
Framework definition
ī‚˛ “..an integrated set of software artefacts (such as
classes, objects and components) that collaborate to
provide a reusable architecture for a family of related
applications.”
Chapter 15 Software reuse 17
17/11/2014
Application frameworks
ī‚˛ Frameworks are moderately large entities that can be
reused. They are somewhere between system and
component reuse.
ī‚˛ Frameworks are a sub-system design made up of a
collection of abstract and concrete classes and the
interfaces between them.
ī‚˛ The sub-system is implemented by adding components
to fill in parts of the design and by instantiating the
abstract classes in the framework.
17/11/2014 Chapter 15 Software reuse 18
Web application frameworks
ī‚˛ Support the construction of dynamic websites as a front-
end for web applications.
ī‚˛ WAFs are now available for all of the commonly used
web programming languages e.g. Java, Python, Ruby,
etc.
ī‚˛ Interaction model is based on the Model-View-Controller
composite pattern.
Chapter 15 Software reuse 19
17/11/2014
Model-view controller
ī‚˛ System infrastructure framework for GUI design.
ī‚˛ Allows for multiple presentations of an object and
separate interactions with these presentations.
ī‚˛ MVC framework involves the instantiation of a number of
patterns (as discussed in Chapter 7).
17/11/2014 Chapter 15 Software reuse 20
The Model-View-Controller pattern
Chapter 15 Software reuse 21
17/11/2014
WAF features
ī‚˛ Security
ī‚§ WAFs may include classes to help implement user authentication (login) and
access.
ī‚˛ Dynamic web pages
ī‚§ Classes are provided to help you define web page templates and to populate
these dynamically from the system database.
ī‚˛ Database support
ī‚§ The framework may provide classes that provide an abstract interface to different
databases.
ī‚˛ Session management
ī‚§ Classes to create and manage sessions (a number of interactions with the
system by a user) are usually part of a WAF.
ī‚˛ User interaction
ī‚§ Most web frameworks now provide AJAX support (Holdener, 2008), which allows
more interactive web pages to be created.
Chapter 15 Software reuse 22
17/11/2014
Extending frameworks
ī‚˛ Frameworks are generic and are extended to create a more
specific application or sub-system. They provide a skeleton
architecture for the system.
ī‚˛ Extending the framework involves
ī‚§ Adding concrete classes that inherit operations from abstract
classes in the framework;
ī‚§ Adding methods that are called in response to events that are
recognised by the framework.
ī‚˛ Problem with frameworks is their complexity which means
that it takes a long time to use them effectively.
17/11/2014 Chapter 15 Software reuse 23
Inversion of control in frameworks
Chapter 15 Software reuse 24
17/11/2014
Framework classes
ī‚˛ System infrastructure frameworks
ī‚§ Support the development of system infrastructures such as
communications, user interfaces and compilers.
ī‚˛ Middleware integration frameworks
ī‚§ Standards and classes that support component communication
and information exchange.
ī‚˛ Enterprise application frameworks
ī‚§ Support the development of specific types of application such as
telecommunications or financial systems.
17/11/2014 Chapter 15 Software reuse 25
Software product lines
Chapter 15 Software reuse 26
17/11/2014
Software product lines
ī‚˛ Software product lines or application families are
applications with generic functionality that can be
adapted and configured for use in a specific context.
ī‚˛ A software product line is a set of applications with a
common architecture and shared components, with each
application specialized to reflect different requirements.
ī‚˛ Adaptation may involve:
ī‚§ Component and system configuration;
ī‚§ Adding new components to the system;
ī‚§ Selecting from a library of existing components;
ī‚§ Modifying components to meet new requirements.
17/11/2014 Chapter 15 Software reuse 27
Base systems for a software product line
17/11/2014 Chapter 15 Software reuse 28
Base applications
ī‚˛ Core components that provide infrastructure support.
These are not usually modified when developing a new
instance of the product line.
ī‚˛ Configurable components that may be modified and
configured to specialize them to a new application.
Sometimes, it is possible to reconfigure these
components without changing their code by using a built-
in component configuration language.
ī‚˛ Specialized, domain-specific components some or all of
which may be replaced when a new instance of a
product line is created.
17/11/2014 Chapter 15 Software reuse 29
Application frameworks and product lines
ī‚˛ Application frameworks rely on object-oriented features
such as polymorphism to implement extensions. Product
lines need not be object-oriented (e.g. embedded
software for a mobile phone)
ī‚˛ Application frameworks focus on providing technical
rather than domain-specific support. Product lines
embed domain and platform information.
ī‚˛ Product lines often control applications for equipment.
ī‚˛ Software product lines are made up of a family of
applications, usually owned by the same organization.
Chapter 15 Software reuse 30
17/11/2014
Product line architectures
ī‚˛ Architectures must be structured in such a way to
separate different sub-systems and to allow them to be
modified.
ī‚˛ The architecture should also separate entities and their
descriptions and the higher levels in the system access
entities through descriptions rather than directly.
17/11/2014 Chapter 15 Software reuse 31
The architecture of a resource allocation system
Chapter 15 Software reuse 32
17/11/2014
The product line architecture of a vehicle
dIspatcher
Chapter 15 Software reuse 33
17/11/2014
Vehicle dispatching
ī‚˛ A specialised resource management system where the aim is to
allocate resources (vehicles) to handle incidents.
ī‚˛ Adaptations include:
ī‚§ At the UI level, there are components for operator display and
communications;
ī‚§ At the I/O management level, there are components that handle
authentication, reporting and route planning;
ī‚§ At the resource management level, there are components for
vehicle location and despatch, managing vehicle status and incident
logging;
ī‚§ The database includes equipment, vehicle and map databases.
17/11/2014 Chapter 15 Software reuse 34
Product line specialisation
ī‚˛ Platform specialization
ī‚§ Different versions of the application are developed for
different platforms.
ī‚˛ Environment specialization
ī‚§ Different versions of the application are created to handle
different operating environments e.g. different types of
communication equipment.
ī‚˛ Functional specialization
ī‚§ Different versions of the application are created for customers
with different requirements.
ī‚˛ Process specialization
ī‚§ Different versions of the application are created to support
different business processes.
17/11/2014 Chapter 15 Software reuse 35
Product instance development
Chapter 15 Software reuse 36
17/11/2014
Product instance development
ī‚˛ Elicit stakeholder requirements
ī‚§ Use existing family member as a prototype
ī‚˛ Choose closest-fit family member
ī‚§ Find the family member that best meets the requirements
ī‚˛ Re-negotiate requirements
ī‚§ Adapt requirements as necessary to capabilities of the
software
ī‚˛ Adapt existing system
ī‚§ Develop new modules and make changes for family member
ī‚˛ Deliver new family member
ī‚§ Document key features for further member development
17/11/2014 Chapter 15 Software reuse 37
Product line configuration
ī‚˛ Design time configuration
ī‚§ The organization that is developing the software modifies a
common product line core by developing, selecting or adapting
components to create a new system for a customer.
ī‚˛ Deployment time configuration
ī‚§ A generic system is designed for configuration by a customer or
consultants working with the customer. Knowledge of the
customer’s specific requirements and the system’s operating
environment is embedded in configuration data that are used by
the generic system.
17/11/2014 Chapter 15 Software reuse 38
Deployment-time configuration
Chapter 15 Software reuse 39
17/11/2014
Levels of deployment time configuration
ī‚˛ Component selection, where you select the modules in a
system that provide the required functionality.
ī‚˛ Workflow and rule definition, where you define workflows
(how information is processed, stage-by-stage) and
validation rules that should apply to information entered
by users or generated by the system.
ī‚˛ Parameter definition, where you specify the values of
specific system parameters that reflect the instance of
the application that you are creating
Chapter 15 Software reuse 40
17/11/2014
Application system reuse
Chapter 15 Software reuse 41
17/11/2014
Application system reuse
ī‚˛ An application system product is a software system that
can be adapted for different customers without changing
the source code of the system.
ī‚˛ Application systems have generic features and so can
be used/reused in different environments.
ī‚˛ Application system products are adapted by using built-
in configuration mechanisms that allow the functionality
of the system to be tailored to specific customer needs.
ī‚§ For example, in a hospital patient record system, separate input
forms and output reports might be defined for different types of
patient.
Chapter 15 Software reuse 42
17/11/2014
Benefits of application system reuse
ī‚˛ As with other types of reuse, more rapid deployment of a reliable
system may be possible.
ī‚˛ It is possible to see what functionality is provided by the applications
and so it is easier to judge whether or not they are likely to be
suitable.
ī‚˛ Some development risks are avoided by using existing software.
However, this approach has its own risks, as I discuss below.
ī‚˛ Businesses can focus on their core activity without having to devote
a lot of resources to IT systems development.
ī‚˛ As operating platforms evolve, technology updates may be
simplified as these are the responsibility of the COTS product
vendor rather than the customer.
Chapter 15 Software reuse 43
17/11/2014
Problems of application system reuse
ī‚˛ Requirements usually have to be adapted to reflect the
functionality and mode of operation of the COTS product.
ī‚˛ The COTS product may be based on assumptions that are
practically impossible to change.
ī‚˛ Choosing the right COTS system for an enterprise can be a
difficult process, especially as many COTS products are not
well documented.
ī‚˛ There may be a lack of local expertise to support systems
development.
ī‚˛ The COTS product vendor controls system support and
evolution.
Chapter 15 Software reuse 44
17/11/2014
Configurable application systems
ī‚˛ Configurable application systems are generic application
systems that may be designed to support a particular
business type, business activity or, sometimes, a
complete business enterprise.
ī‚§ For example, an application system may be produced for
dentists that handles appointments, dental records, patient
recall, etc.
ī‚˛ Domain-specific systems, such as systems to support a
business function (e.g. document management) provide
functionality that is likely to be required by a range of
potential users.
Chapter 15 Software reuse 45
17/11/2014
COTS-solution and COTS-integrated systems
Configurable application systems Application system integration
Single product that provides the
functionality required by a customer
Several heterogeneous system products
are integrated to provide customized
functionality
Based around a generic solution and
standardized processes
Flexible solutions may be developed for
customer processes
Development focus is on system
configuration
Development focus is on system integration
System vendor is responsible for
maintenance
System owner is responsible for
maintenance
System vendor provides the platform for the
system
System owner provides the platform for the
system
Chapter 15 Software reuse 46
17/11/2014
ERP systems
ī‚˛ An Enterprise Resource Planning (ERP) system is a
generic system that supports common business
processes such as ordering and invoicing,
manufacturing, etc.
ī‚˛ These are very widely used in large companies - they
represent probably the most common form of software
reuse.
ī‚˛ The generic core is adapted by including modules and
by incorporating knowledge of business processes and
rules.
17/11/2014 Chapter 15 Software reuse 47
The architecture of an ERP system
Chapter 15 Software reuse 48
17/11/2014
ERP architecture
ī‚˛ A number of modules to support different business
functions.
ī‚˛ A defined set of business processes, associated with
each module, which relate to activities in that module.
ī‚˛ A common database that maintains information about all
related business functions.
ī‚˛ A set of business rules that apply to all data in the
database.
Chapter 15 Software reuse 49
17/11/2014
ERP configuration
ī‚˛ Selecting the required functionality from the system.
ī‚˛ Establishing a data model that defines how the organization’s
data will be structured in the system database.
ī‚˛ Defining business rules that apply to that data.
ī‚˛ Defining the expected interactions with external systems.
ī‚˛ Designing the input forms and the output reports generated by
the system.
ī‚˛ Designing new business processes that conform to the
underlying process model supported by the system.
ī‚˛ Setting parameters that define how the system is deployed on
its underlying platform.
Chapter 15 Software reuse 50
17/11/2014
Integrated application systems
ī‚˛ Integrated application systems are applications that
include two or more application system products and/or
legacy application systems.
ī‚˛ You may use this approach when there is no single
application system that meets all of your needs or when
you wish to integrate a new application system with
systems that you already use.
Chapter 15 Software reuse 51
17/11/2014
Design choices
ī‚˛ Which individual application systems offer the most
appropriate functionality?
ī‚§ Typically, there will be several application system products
available, which can be combined in different ways.
ī‚˛ How will data be exchanged?
ī‚§ Different products normally use unique data structures and
formats. You have to write adaptors that convert from one
representation to another.
ī‚˛ What features of a product will actually be used?
ī‚§ Individual application systems may include more functionality
than you need and functionality may be duplicated across
different products.
Chapter 15 Software reuse 52
17/11/2014
An integrated procurement system
Chapter 15 Software reuse 53
17/11/2014
Service-oriented interfaces
ī‚˛ Application system integration can be simplified if a
service-oriented approach is used.
ī‚˛ A service-oriented approach means allowing access to
the application system’s functionality through a standard
service interface, with a service for each discrete unit of
functionality.
ī‚˛ Some applications may offer a service interface but,
sometimes, this service interface has to be implemented
by the system integrator. You have to program a wrapper
that hides the application and provides externally visible
services.
Chapter 15 Software reuse 54
17/11/2014
Application wrapping
Chapter 15 Software reuse 55
17/11/2014
Application system integration problems
ī‚˛ Lack of control over functionality and performance
ī‚§ Application systems may be less effective than they appear
ī‚˛ Problems with application system inter-operability
ī‚§ Different application systems may make different assumptions
that means integration is difficult
ī‚˛ No control over system evolution
ī‚§ Application system vendors not system users control
evolution
ī‚˛ Support from system vendors
ī‚§ Application system vendors may not offer support over the
lifetime of the product
17/11/2014 Chapter 15 Software reuse 56
Key points
ī‚˛ There are many different ways to reuse software. These range from
the reuse of classes and methods in libraries to the reuse of
complete application systems.
ī‚˛ The advantages of software reuse are lower costs, faster software
development and lower risks. System dependability is increased.
Specialists can be used more effectively by concentrating their
expertise on the design of reusable components.
ī‚˛ Application frameworks are collections of concrete and abstract
objects that are designed for reuse through specialization and the
addition of new objects. They usually incorporate good design
practice through design patterns.
Chapter 15 Software reuse 57
17/11/2014
Key points
ī‚˛ Software product lines are related applications that are developed
from one or more base applications. A generic system is adapted
and specialized to meet specific requirements for functionality, target
platform or operational configuration.
ī‚˛ Application system reuse is concerned with the reuse of large-scale,
off-the-shelf systems. These provide a lot of functionality and their
reuse can radically reduce costs and development time. Systems
may be developed by configuring a single, generic application
system or by integrating two or more application systems.
ī‚˛ Potential problems with application system reuse include lack of
control over functionality and performance, lack of control over
system evolution, the need for support from external vendors and
difficulties in ensuring that systems can inter-operate.
Chapter 15 Software reuse 58
17/11/2014

More Related Content

What's hot

Ch25-Software Engineering 9
Ch25-Software Engineering 9Ch25-Software Engineering 9
Ch25-Software Engineering 9Ian Sommerville
 
Ch8-Software Engineering 9
Ch8-Software Engineering 9Ch8-Software Engineering 9
Ch8-Software Engineering 9Ian Sommerville
 
Ch9-Software Engineering 9
Ch9-Software Engineering 9Ch9-Software Engineering 9
Ch9-Software Engineering 9Ian Sommerville
 
Software Architecture and Design
Software Architecture and DesignSoftware Architecture and Design
Software Architecture and DesignRa'Fat Al-Msie'deen
 
Ch24 - Quality Management
Ch24 - Quality ManagementCh24 - Quality Management
Ch24 - Quality ManagementHarsh Verdhan Raj
 
Ch16 component based software engineering
Ch16 component based software engineeringCh16 component based software engineering
Ch16 component based software engineeringsoftware-engineering-book
 
Ch5- Software Engineering 9
Ch5- Software Engineering 9Ch5- Software Engineering 9
Ch5- Software Engineering 9Ian Sommerville
 
Ian Sommerville, Software Engineering, 9th Edition Ch1
Ian Sommerville,  Software Engineering, 9th Edition Ch1Ian Sommerville,  Software Engineering, 9th Edition Ch1
Ian Sommerville, Software Engineering, 9th Edition Ch1Mohammed Romi
 

What's hot (20)

Ch8.testing
Ch8.testingCh8.testing
Ch8.testing
 
Ch24 quality management
Ch24 quality managementCh24 quality management
Ch24 quality management
 
Ch9 evolution
Ch9 evolutionCh9 evolution
Ch9 evolution
 
Ch25-Software Engineering 9
Ch25-Software Engineering 9Ch25-Software Engineering 9
Ch25-Software Engineering 9
 
Ch13 security engineering
Ch13 security engineeringCh13 security engineering
Ch13 security engineering
 
Ch8-Software Engineering 9
Ch8-Software Engineering 9Ch8-Software Engineering 9
Ch8-Software Engineering 9
 
Ch11 reliability engineering
Ch11 reliability engineeringCh11 reliability engineering
Ch11 reliability engineering
 
Ch5 system modeling
Ch5 system modelingCh5 system modeling
Ch5 system modeling
 
Ch3. agile sw dev
Ch3. agile sw devCh3. agile sw dev
Ch3. agile sw dev
 
Ch9-Software Engineering 9
Ch9-Software Engineering 9Ch9-Software Engineering 9
Ch9-Software Engineering 9
 
Software Architecture and Design
Software Architecture and DesignSoftware Architecture and Design
Software Architecture and Design
 
Ch24 - Quality Management
Ch24 - Quality ManagementCh24 - Quality Management
Ch24 - Quality Management
 
Ch16 component based software engineering
Ch16 component based software engineeringCh16 component based software engineering
Ch16 component based software engineering
 
Ch10 dependable systems
Ch10 dependable systemsCh10 dependable systems
Ch10 dependable systems
 
Ch5- Software Engineering 9
Ch5- Software Engineering 9Ch5- Software Engineering 9
Ch5- Software Engineering 9
 
Ch20 systems of systems
Ch20 systems of systemsCh20 systems of systems
Ch20 systems of systems
 
Ian Sommerville, Software Engineering, 9th Edition Ch1
Ian Sommerville,  Software Engineering, 9th Edition Ch1Ian Sommerville,  Software Engineering, 9th Edition Ch1
Ian Sommerville, Software Engineering, 9th Edition Ch1
 
Ch21 real time software engineering
Ch21 real time software engineeringCh21 real time software engineering
Ch21 real time software engineering
 
Ch6 architectural design
Ch6 architectural designCh6 architectural design
Ch6 architectural design
 
Software Reuse
Software ReuseSoftware Reuse
Software Reuse
 

Similar to Ch15 - Software Reuse

Introduction to database m Chapter 9.pptx
Introduction to database m Chapter 9.pptxIntroduction to database m Chapter 9.pptx
Introduction to database m Chapter 9.pptxMohammedNouh7
 
Advanced Software Engineering.ppt
Advanced Software Engineering.pptAdvanced Software Engineering.ppt
Advanced Software Engineering.pptRvishnupriya2
 
Software Reuse.ppt
Software Reuse.pptSoftware Reuse.ppt
Software Reuse.pptgdfgdfgdf1
 
Ch16-Software Engineering 9
Ch16-Software Engineering 9Ch16-Software Engineering 9
Ch16-Software Engineering 9Ian Sommerville
 
Design Issue(Reuse) in Software Engineering SE14
Design Issue(Reuse) in Software Engineering SE14Design Issue(Reuse) in Software Engineering SE14
Design Issue(Reuse) in Software Engineering SE14koolkampus
 
FRAMEWORKS BETWEEN COMPONENTS AND OBJECTS
FRAMEWORKS BETWEEN COMPONENTS AND OBJECTSFRAMEWORKS BETWEEN COMPONENTS AND OBJECTS
FRAMEWORKS BETWEEN COMPONENTS AND OBJECTSacijjournal
 
Ch7.pdf
Ch7.pdfCh7.pdf
Ch7.pdfWeaamRaed
 
A Survey of Software Reusability
A Survey of Software ReusabilityA Survey of Software Reusability
A Survey of Software ReusabilityIJERA Editor
 
An Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using MetricsAn Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using MetricsIJERA Editor
 

Similar to Ch15 - Software Reuse (20)

Ch16
Ch16Ch16
Ch16
 
Introduction to database m Chapter 9.pptx
Introduction to database m Chapter 9.pptxIntroduction to database m Chapter 9.pptx
Introduction to database m Chapter 9.pptx
 
Reuse landscape
Reuse landscapeReuse landscape
Reuse landscape
 
Advanced Software Engineering.ppt
Advanced Software Engineering.pptAdvanced Software Engineering.ppt
Advanced Software Engineering.ppt
 
Ch16.pptx
Ch16.pptxCh16.pptx
Ch16.pptx
 
Software Reuse.ppt
Software Reuse.pptSoftware Reuse.ppt
Software Reuse.ppt
 
Ch16-Software Engineering 9
Ch16-Software Engineering 9Ch16-Software Engineering 9
Ch16-Software Engineering 9
 
Ch18
Ch18Ch18
Ch18
 
Design Issue(Reuse) in Software Engineering SE14
Design Issue(Reuse) in Software Engineering SE14Design Issue(Reuse) in Software Engineering SE14
Design Issue(Reuse) in Software Engineering SE14
 
Lecture-17.ppt
Lecture-17.pptLecture-17.ppt
Lecture-17.ppt
 
M 3.1 reuse
M 3.1 reuseM 3.1 reuse
M 3.1 reuse
 
ch14.ppt
ch14.pptch14.ppt
ch14.ppt
 
FRAMEWORKS BETWEEN COMPONENTS AND OBJECTS
FRAMEWORKS BETWEEN COMPONENTS AND OBJECTSFRAMEWORKS BETWEEN COMPONENTS AND OBJECTS
FRAMEWORKS BETWEEN COMPONENTS AND OBJECTS
 
Ch17
Ch17Ch17
Ch17
 
M046056672
M046056672M046056672
M046056672
 
Ch7.pdf
Ch7.pdfCh7.pdf
Ch7.pdf
 
Software resuse
Software  resuseSoftware  resuse
Software resuse
 
A Survey of Software Reusability
A Survey of Software ReusabilityA Survey of Software Reusability
A Survey of Software Reusability
 
An Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using MetricsAn Approach to Calculate Reusability in Source Code Using Metrics
An Approach to Calculate Reusability in Source Code Using Metrics
 
D502023439
D502023439D502023439
D502023439
 

More from Harsh Verdhan Raj

Ch25 - Configuration Management
Ch25 - Configuration ManagementCh25 - Configuration Management
Ch25 - Configuration ManagementHarsh Verdhan Raj
 
Ch23 - Project Planning
Ch23 - Project PlanningCh23 - Project Planning
Ch23 - Project PlanningHarsh Verdhan Raj
 
Ch21 - Real Time Software Engineering
Ch21 - Real Time Software EngineeringCh21 - Real Time Software Engineering
Ch21 - Real Time Software EngineeringHarsh Verdhan Raj
 
Ch20 - Systems of Systems
Ch20 - Systems of SystemsCh20 - Systems of Systems
Ch20 - Systems of SystemsHarsh Verdhan Raj
 
Ch19 - Systems Engineering
Ch19 - Systems EngineeringCh19 - Systems Engineering
Ch19 - Systems EngineeringHarsh Verdhan Raj
 
Ch18 - Service Oriented Software Engineering
Ch18 - Service Oriented Software EngineeringCh18 - Service Oriented Software Engineering
Ch18 - Service Oriented Software EngineeringHarsh Verdhan Raj
 
Ch17 - Distributed Software Engineering
Ch17 - Distributed Software EngineeringCh17 - Distributed Software Engineering
Ch17 - Distributed Software EngineeringHarsh Verdhan Raj
 
Ch16 - Component Based Software Engineering
Ch16 - Component Based Software EngineeringCh16 - Component Based Software Engineering
Ch16 - Component Based Software EngineeringHarsh Verdhan Raj
 
Ch14 - Resilience Engineering
Ch14 - Resilience EngineeringCh14 - Resilience Engineering
Ch14 - Resilience EngineeringHarsh Verdhan Raj
 
Ch13 - Security Engineering
Ch13 - Security EngineeringCh13 - Security Engineering
Ch13 - Security EngineeringHarsh Verdhan Raj
 
Ch12 - Safety Engineering
Ch12 - Safety EngineeringCh12 - Safety Engineering
Ch12 - Safety EngineeringHarsh Verdhan Raj
 
Ch11 - Reliability Engineering
Ch11 - Reliability EngineeringCh11 - Reliability Engineering
Ch11 - Reliability EngineeringHarsh Verdhan Raj
 
Ch10 - Dependable Systems
Ch10 - Dependable SystemsCh10 - Dependable Systems
Ch10 - Dependable SystemsHarsh Verdhan Raj
 
Ch6 - Architectural Design
Ch6 - Architectural DesignCh6 - Architectural Design
Ch6 - Architectural DesignHarsh Verdhan Raj
 

More from Harsh Verdhan Raj (20)

Ch25 - Configuration Management
Ch25 - Configuration ManagementCh25 - Configuration Management
Ch25 - Configuration Management
 
Ch23 - Project Planning
Ch23 - Project PlanningCh23 - Project Planning
Ch23 - Project Planning
 
Ch21 - Real Time Software Engineering
Ch21 - Real Time Software EngineeringCh21 - Real Time Software Engineering
Ch21 - Real Time Software Engineering
 
Ch20 - Systems of Systems
Ch20 - Systems of SystemsCh20 - Systems of Systems
Ch20 - Systems of Systems
 
Ch19 - Systems Engineering
Ch19 - Systems EngineeringCh19 - Systems Engineering
Ch19 - Systems Engineering
 
Ch18 - Service Oriented Software Engineering
Ch18 - Service Oriented Software EngineeringCh18 - Service Oriented Software Engineering
Ch18 - Service Oriented Software Engineering
 
Ch17 - Distributed Software Engineering
Ch17 - Distributed Software EngineeringCh17 - Distributed Software Engineering
Ch17 - Distributed Software Engineering
 
Ch16 - Component Based Software Engineering
Ch16 - Component Based Software EngineeringCh16 - Component Based Software Engineering
Ch16 - Component Based Software Engineering
 
Ch14 - Resilience Engineering
Ch14 - Resilience EngineeringCh14 - Resilience Engineering
Ch14 - Resilience Engineering
 
Ch13 - Security Engineering
Ch13 - Security EngineeringCh13 - Security Engineering
Ch13 - Security Engineering
 
Ch12 - Safety Engineering
Ch12 - Safety EngineeringCh12 - Safety Engineering
Ch12 - Safety Engineering
 
Ch11 - Reliability Engineering
Ch11 - Reliability EngineeringCh11 - Reliability Engineering
Ch11 - Reliability Engineering
 
Ch10 - Dependable Systems
Ch10 - Dependable SystemsCh10 - Dependable Systems
Ch10 - Dependable Systems
 
Ch9 - Evolution
Ch9 - EvolutionCh9 - Evolution
Ch9 - Evolution
 
Ch8 - Testing
Ch8 - TestingCh8 - Testing
Ch8 - Testing
 
Ch7 - Implementation
Ch7 - ImplementationCh7 - Implementation
Ch7 - Implementation
 
Ch6 - Architectural Design
Ch6 - Architectural DesignCh6 - Architectural Design
Ch6 - Architectural Design
 
Ch5 - System Modeling
Ch5 - System ModelingCh5 - System Modeling
Ch5 - System Modeling
 
Ch4 - Req Eng
Ch4 - Req EngCh4 - Req Eng
Ch4 - Req Eng
 
Ch3 - Agile SW Dev
Ch3 - Agile SW DevCh3 - Agile SW Dev
Ch3 - Agile SW Dev
 

Recently uploaded

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEslot gacor bisa pakai pulsa
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube ExchangerAnamika Sarkar
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 

Recently uploaded (20)

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned īģŋTube Exchanger
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 

Ch15 - Software Reuse

  • 1. Chapter 15 – Software Reuse Chapter 15 Software reuse 1 17/11/2014
  • 2. Topics covered ī‚˛ The reuse landscape ī‚˛ Application frameworks ī‚˛ Software product lines ī‚˛ Application system reuse Chapter 15 Software reuse 2 17/11/2014
  • 3. Software reuse ī‚˛ In most engineering disciplines, systems are designed by composing existing components that have been used in other systems. ī‚˛ Software engineering has been more focused on original development but it is now recognised that to achieve better software, more quickly and at lower cost, we need a design process that is based on systematic software reuse. ī‚˛ There has been a major switch to reuse-based development over the past 10 years. 17/11/2014 Chapter 15 Software reuse 3
  • 4. Reuse-based software engineering ī‚˛ System reuse ī‚§ Complete systems, which may include several application programs may be reused. ī‚˛ Application reuse ī‚§ An application may be reused either by incorporating it without change into other or by developing application families. ī‚˛ Component reuse ī‚§ Components of an application from sub-systems to single objects may be reused. ī‚˛ Object and function reuse ī‚§ Small-scale software components that implement a single well- defined object or function may be reused. 17/11/2014 Chapter 15 Software reuse 4
  • 5. Benefits of software reuse Benefit Explanation Accelerated development Bringing a system to market as early as possible is often more important than overall development costs. Reusing software can speed up system production because both development and validation time may be reduced. Effective use of specialists Instead of doing the same work over and over again, application specialists can develop reusable software that encapsulates their knowledge. Increased dependability Reused software, which has been tried and tested in working systems, should be more dependable than new software. Its design and implementation faults should have been found and fixed. Chapter 15 Software reuse 5 17/11/2014
  • 6. Benefits of software reuse Benefit Explanation Lower development costs Development costs are proportional to the size of the software being developed. Reusing software means that fewer lines of code have to be written. Reduced process risk The cost of existing software is already known, whereas the costs of development are always a matter of judgment. This is an important factor for project management because it reduces the margin of error in project cost estimation. This is particularly true when relatively large software components such as subsystems are reused. Standards compliance Some standards, such as user interface standards, can be implemented as a set of reusable components. For example, if menus in a user interface are implemented using reusable components, all applications present the same menu formats to users. The use of standard user interfaces improves dependability because users make fewer mistakes when presented with a familiar interface. Chapter 15 Software reuse 6 17/11/2014
  • 7. Problems with reuse Problem Explanation Creating, maintaining, and using a component library Populating a reusable component library and ensuring the software developers can use this library can be expensive. Development processes have to be adapted to ensure that the library is used. Finding, understanding, and adapting reusable components Software components have to be discovered in a library, understood and, sometimes, adapted to work in a new environment. Engineers must be reasonably confident of finding a component in the library before they include a component search as part of their normal development process. Increased maintenance costs If the source code of a reused software system or component is not available then maintenance costs may be higher because the reused elements of the system may become increasingly incompatible with system changes. Chapter 15 Software reuse 7 17/11/2014
  • 8. Problems with reuse Problem Explanation Lack of tool support Some software tools do not support development with reuse. It may be difficult or impossible to integrate these tools with a component library system. The software process assumed by these tools may not take reuse into account. This is particularly true for tools that support embedded systems engineering, less so for object- oriented development tools. Not-invented-here syndrome Some software engineers prefer to rewrite components because they believe they can improve on them. This is partly to do with trust and partly to do with the fact that writing original software is seen as more challenging than reusing other people’s software. Chapter 15 Software reuse 8 17/11/2014
  • 9. The reuse landscape Chapter 15 Software reuse 9 17/11/2014
  • 10. The reuse landscape ī‚˛ Although reuse is often simply thought of as the reuse of system components, there are many different approaches to reuse that may be used. ī‚˛ Reuse is possible at a range of levels from simple functions to complete application systems. ī‚˛ The reuse landscape covers the range of possible reuse techniques. 17/11/2014 Chapter 15 Software reuse 10
  • 11. The reuse landscape Chapter 15 Software reuse 11 17/11/2014
  • 12. Approaches that support software reuse Approach Description Application frameworks Collections of abstract and concrete classes are adapted and extended to create application systems. Application system integration Two or more application systems are integrated to provide extended functionality Architectural patterns Standard software architectures that support common types of application system are used as the basis of applications. Described in Chapters 6, 11 and 17. Aspect-oriented software development Shared components are woven into an application at different places when the program is compiled. Described in web chapter 31. Component-based software engineering Systems are developed by integrating components (collections of objects) that conform to component-model standards. Described in Chapter 16. Chapter 15 Software reuse 12 17/11/2014
  • 13. Approaches that support software reuse Approach Description Configurable application systems Domain-specific systems are designed so that they can be configured to the needs of specific system customers. Design patterns Generic abstractions that occur across applications are represented as design patterns showing abstract and concrete objects and interactions. Described in Chapter 7. ERP systems Large-scale systems that encapsulate generic business functionality and rules are configured for an organization. Legacy system wrapping Legacy systems (Chapter 9) are ‘wrapped’ by defining a set of interfaces and providing access to these legacy systems through these interfaces. Model-driven engineering Software is represented as domain models and implementation independent models and code is generated from these models. Described in Chapter 5. Chapter 15 Software reuse 13 17/11/2014
  • 14. Approaches that support software reuse Approach Description Program generators A generator system embeds knowledge of a type of application and is used to generate systems in that domain from a user-supplied system model. Program libraries Class and function libraries that implement commonly used abstractions are available for reuse. Service-oriented systems Systems are developed by linking shared services, which may be externally provided. Described in Chapter 18. Software product lines An application type is generalized around a common architecture so that it can be adapted for different customers. Systems of systems Two or more distributed systems are integrated to create a new system. Described in Chapter 20. Chapter 15 Software reuse 14 17/11/2014
  • 15. Reuse planning factors ī‚˛ The development schedule for the software. ī‚˛ The expected software lifetime. ī‚˛ The background, skills and experience of the development team. ī‚˛ The criticality of the software and its non-functional requirements. ī‚˛ The application domain. ī‚˛ The execution platform for the software. 17/11/2014 Chapter 15 Software reuse 15
  • 16. Application frameworks Chapter 15 Software reuse 16 17/11/2014
  • 17. Framework definition ī‚˛ “..an integrated set of software artefacts (such as classes, objects and components) that collaborate to provide a reusable architecture for a family of related applications.” Chapter 15 Software reuse 17 17/11/2014
  • 18. Application frameworks ī‚˛ Frameworks are moderately large entities that can be reused. They are somewhere between system and component reuse. ī‚˛ Frameworks are a sub-system design made up of a collection of abstract and concrete classes and the interfaces between them. ī‚˛ The sub-system is implemented by adding components to fill in parts of the design and by instantiating the abstract classes in the framework. 17/11/2014 Chapter 15 Software reuse 18
  • 19. Web application frameworks ī‚˛ Support the construction of dynamic websites as a front- end for web applications. ī‚˛ WAFs are now available for all of the commonly used web programming languages e.g. Java, Python, Ruby, etc. ī‚˛ Interaction model is based on the Model-View-Controller composite pattern. Chapter 15 Software reuse 19 17/11/2014
  • 20. Model-view controller ī‚˛ System infrastructure framework for GUI design. ī‚˛ Allows for multiple presentations of an object and separate interactions with these presentations. ī‚˛ MVC framework involves the instantiation of a number of patterns (as discussed in Chapter 7). 17/11/2014 Chapter 15 Software reuse 20
  • 21. The Model-View-Controller pattern Chapter 15 Software reuse 21 17/11/2014
  • 22. WAF features ī‚˛ Security ī‚§ WAFs may include classes to help implement user authentication (login) and access. ī‚˛ Dynamic web pages ī‚§ Classes are provided to help you define web page templates and to populate these dynamically from the system database. ī‚˛ Database support ī‚§ The framework may provide classes that provide an abstract interface to different databases. ī‚˛ Session management ī‚§ Classes to create and manage sessions (a number of interactions with the system by a user) are usually part of a WAF. ī‚˛ User interaction ī‚§ Most web frameworks now provide AJAX support (Holdener, 2008), which allows more interactive web pages to be created. Chapter 15 Software reuse 22 17/11/2014
  • 23. Extending frameworks ī‚˛ Frameworks are generic and are extended to create a more specific application or sub-system. They provide a skeleton architecture for the system. ī‚˛ Extending the framework involves ī‚§ Adding concrete classes that inherit operations from abstract classes in the framework; ī‚§ Adding methods that are called in response to events that are recognised by the framework. ī‚˛ Problem with frameworks is their complexity which means that it takes a long time to use them effectively. 17/11/2014 Chapter 15 Software reuse 23
  • 24. Inversion of control in frameworks Chapter 15 Software reuse 24 17/11/2014
  • 25. Framework classes ī‚˛ System infrastructure frameworks ī‚§ Support the development of system infrastructures such as communications, user interfaces and compilers. ī‚˛ Middleware integration frameworks ī‚§ Standards and classes that support component communication and information exchange. ī‚˛ Enterprise application frameworks ī‚§ Support the development of specific types of application such as telecommunications or financial systems. 17/11/2014 Chapter 15 Software reuse 25
  • 26. Software product lines Chapter 15 Software reuse 26 17/11/2014
  • 27. Software product lines ī‚˛ Software product lines or application families are applications with generic functionality that can be adapted and configured for use in a specific context. ī‚˛ A software product line is a set of applications with a common architecture and shared components, with each application specialized to reflect different requirements. ī‚˛ Adaptation may involve: ī‚§ Component and system configuration; ī‚§ Adding new components to the system; ī‚§ Selecting from a library of existing components; ī‚§ Modifying components to meet new requirements. 17/11/2014 Chapter 15 Software reuse 27
  • 28. Base systems for a software product line 17/11/2014 Chapter 15 Software reuse 28
  • 29. Base applications ī‚˛ Core components that provide infrastructure support. These are not usually modified when developing a new instance of the product line. ī‚˛ Configurable components that may be modified and configured to specialize them to a new application. Sometimes, it is possible to reconfigure these components without changing their code by using a built- in component configuration language. ī‚˛ Specialized, domain-specific components some or all of which may be replaced when a new instance of a product line is created. 17/11/2014 Chapter 15 Software reuse 29
  • 30. Application frameworks and product lines ī‚˛ Application frameworks rely on object-oriented features such as polymorphism to implement extensions. Product lines need not be object-oriented (e.g. embedded software for a mobile phone) ī‚˛ Application frameworks focus on providing technical rather than domain-specific support. Product lines embed domain and platform information. ī‚˛ Product lines often control applications for equipment. ī‚˛ Software product lines are made up of a family of applications, usually owned by the same organization. Chapter 15 Software reuse 30 17/11/2014
  • 31. Product line architectures ī‚˛ Architectures must be structured in such a way to separate different sub-systems and to allow them to be modified. ī‚˛ The architecture should also separate entities and their descriptions and the higher levels in the system access entities through descriptions rather than directly. 17/11/2014 Chapter 15 Software reuse 31
  • 32. The architecture of a resource allocation system Chapter 15 Software reuse 32 17/11/2014
  • 33. The product line architecture of a vehicle dIspatcher Chapter 15 Software reuse 33 17/11/2014
  • 34. Vehicle dispatching ī‚˛ A specialised resource management system where the aim is to allocate resources (vehicles) to handle incidents. ī‚˛ Adaptations include: ī‚§ At the UI level, there are components for operator display and communications; ī‚§ At the I/O management level, there are components that handle authentication, reporting and route planning; ī‚§ At the resource management level, there are components for vehicle location and despatch, managing vehicle status and incident logging; ī‚§ The database includes equipment, vehicle and map databases. 17/11/2014 Chapter 15 Software reuse 34
  • 35. Product line specialisation ī‚˛ Platform specialization ī‚§ Different versions of the application are developed for different platforms. ī‚˛ Environment specialization ī‚§ Different versions of the application are created to handle different operating environments e.g. different types of communication equipment. ī‚˛ Functional specialization ī‚§ Different versions of the application are created for customers with different requirements. ī‚˛ Process specialization ī‚§ Different versions of the application are created to support different business processes. 17/11/2014 Chapter 15 Software reuse 35
  • 36. Product instance development Chapter 15 Software reuse 36 17/11/2014
  • 37. Product instance development ī‚˛ Elicit stakeholder requirements ī‚§ Use existing family member as a prototype ī‚˛ Choose closest-fit family member ī‚§ Find the family member that best meets the requirements ī‚˛ Re-negotiate requirements ī‚§ Adapt requirements as necessary to capabilities of the software ī‚˛ Adapt existing system ī‚§ Develop new modules and make changes for family member ī‚˛ Deliver new family member ī‚§ Document key features for further member development 17/11/2014 Chapter 15 Software reuse 37
  • 38. Product line configuration ī‚˛ Design time configuration ī‚§ The organization that is developing the software modifies a common product line core by developing, selecting or adapting components to create a new system for a customer. ī‚˛ Deployment time configuration ī‚§ A generic system is designed for configuration by a customer or consultants working with the customer. Knowledge of the customer’s specific requirements and the system’s operating environment is embedded in configuration data that are used by the generic system. 17/11/2014 Chapter 15 Software reuse 38
  • 39. Deployment-time configuration Chapter 15 Software reuse 39 17/11/2014
  • 40. Levels of deployment time configuration ī‚˛ Component selection, where you select the modules in a system that provide the required functionality. ī‚˛ Workflow and rule definition, where you define workflows (how information is processed, stage-by-stage) and validation rules that should apply to information entered by users or generated by the system. ī‚˛ Parameter definition, where you specify the values of specific system parameters that reflect the instance of the application that you are creating Chapter 15 Software reuse 40 17/11/2014
  • 41. Application system reuse Chapter 15 Software reuse 41 17/11/2014
  • 42. Application system reuse ī‚˛ An application system product is a software system that can be adapted for different customers without changing the source code of the system. ī‚˛ Application systems have generic features and so can be used/reused in different environments. ī‚˛ Application system products are adapted by using built- in configuration mechanisms that allow the functionality of the system to be tailored to specific customer needs. ī‚§ For example, in a hospital patient record system, separate input forms and output reports might be defined for different types of patient. Chapter 15 Software reuse 42 17/11/2014
  • 43. Benefits of application system reuse ī‚˛ As with other types of reuse, more rapid deployment of a reliable system may be possible. ī‚˛ It is possible to see what functionality is provided by the applications and so it is easier to judge whether or not they are likely to be suitable. ī‚˛ Some development risks are avoided by using existing software. However, this approach has its own risks, as I discuss below. ī‚˛ Businesses can focus on their core activity without having to devote a lot of resources to IT systems development. ī‚˛ As operating platforms evolve, technology updates may be simplified as these are the responsibility of the COTS product vendor rather than the customer. Chapter 15 Software reuse 43 17/11/2014
  • 44. Problems of application system reuse ī‚˛ Requirements usually have to be adapted to reflect the functionality and mode of operation of the COTS product. ī‚˛ The COTS product may be based on assumptions that are practically impossible to change. ī‚˛ Choosing the right COTS system for an enterprise can be a difficult process, especially as many COTS products are not well documented. ī‚˛ There may be a lack of local expertise to support systems development. ī‚˛ The COTS product vendor controls system support and evolution. Chapter 15 Software reuse 44 17/11/2014
  • 45. Configurable application systems ī‚˛ Configurable application systems are generic application systems that may be designed to support a particular business type, business activity or, sometimes, a complete business enterprise. ī‚§ For example, an application system may be produced for dentists that handles appointments, dental records, patient recall, etc. ī‚˛ Domain-specific systems, such as systems to support a business function (e.g. document management) provide functionality that is likely to be required by a range of potential users. Chapter 15 Software reuse 45 17/11/2014
  • 46. COTS-solution and COTS-integrated systems Configurable application systems Application system integration Single product that provides the functionality required by a customer Several heterogeneous system products are integrated to provide customized functionality Based around a generic solution and standardized processes Flexible solutions may be developed for customer processes Development focus is on system configuration Development focus is on system integration System vendor is responsible for maintenance System owner is responsible for maintenance System vendor provides the platform for the system System owner provides the platform for the system Chapter 15 Software reuse 46 17/11/2014
  • 47. ERP systems ī‚˛ An Enterprise Resource Planning (ERP) system is a generic system that supports common business processes such as ordering and invoicing, manufacturing, etc. ī‚˛ These are very widely used in large companies - they represent probably the most common form of software reuse. ī‚˛ The generic core is adapted by including modules and by incorporating knowledge of business processes and rules. 17/11/2014 Chapter 15 Software reuse 47
  • 48. The architecture of an ERP system Chapter 15 Software reuse 48 17/11/2014
  • 49. ERP architecture ī‚˛ A number of modules to support different business functions. ī‚˛ A defined set of business processes, associated with each module, which relate to activities in that module. ī‚˛ A common database that maintains information about all related business functions. ī‚˛ A set of business rules that apply to all data in the database. Chapter 15 Software reuse 49 17/11/2014
  • 50. ERP configuration ī‚˛ Selecting the required functionality from the system. ī‚˛ Establishing a data model that defines how the organization’s data will be structured in the system database. ī‚˛ Defining business rules that apply to that data. ī‚˛ Defining the expected interactions with external systems. ī‚˛ Designing the input forms and the output reports generated by the system. ī‚˛ Designing new business processes that conform to the underlying process model supported by the system. ī‚˛ Setting parameters that define how the system is deployed on its underlying platform. Chapter 15 Software reuse 50 17/11/2014
  • 51. Integrated application systems ī‚˛ Integrated application systems are applications that include two or more application system products and/or legacy application systems. ī‚˛ You may use this approach when there is no single application system that meets all of your needs or when you wish to integrate a new application system with systems that you already use. Chapter 15 Software reuse 51 17/11/2014
  • 52. Design choices ī‚˛ Which individual application systems offer the most appropriate functionality? ī‚§ Typically, there will be several application system products available, which can be combined in different ways. ī‚˛ How will data be exchanged? ī‚§ Different products normally use unique data structures and formats. You have to write adaptors that convert from one representation to another. ī‚˛ What features of a product will actually be used? ī‚§ Individual application systems may include more functionality than you need and functionality may be duplicated across different products. Chapter 15 Software reuse 52 17/11/2014
  • 53. An integrated procurement system Chapter 15 Software reuse 53 17/11/2014
  • 54. Service-oriented interfaces ī‚˛ Application system integration can be simplified if a service-oriented approach is used. ī‚˛ A service-oriented approach means allowing access to the application system’s functionality through a standard service interface, with a service for each discrete unit of functionality. ī‚˛ Some applications may offer a service interface but, sometimes, this service interface has to be implemented by the system integrator. You have to program a wrapper that hides the application and provides externally visible services. Chapter 15 Software reuse 54 17/11/2014
  • 55. Application wrapping Chapter 15 Software reuse 55 17/11/2014
  • 56. Application system integration problems ī‚˛ Lack of control over functionality and performance ī‚§ Application systems may be less effective than they appear ī‚˛ Problems with application system inter-operability ī‚§ Different application systems may make different assumptions that means integration is difficult ī‚˛ No control over system evolution ī‚§ Application system vendors not system users control evolution ī‚˛ Support from system vendors ī‚§ Application system vendors may not offer support over the lifetime of the product 17/11/2014 Chapter 15 Software reuse 56
  • 57. Key points ī‚˛ There are many different ways to reuse software. These range from the reuse of classes and methods in libraries to the reuse of complete application systems. ī‚˛ The advantages of software reuse are lower costs, faster software development and lower risks. System dependability is increased. Specialists can be used more effectively by concentrating their expertise on the design of reusable components. ī‚˛ Application frameworks are collections of concrete and abstract objects that are designed for reuse through specialization and the addition of new objects. They usually incorporate good design practice through design patterns. Chapter 15 Software reuse 57 17/11/2014
  • 58. Key points ī‚˛ Software product lines are related applications that are developed from one or more base applications. A generic system is adapted and specialized to meet specific requirements for functionality, target platform or operational configuration. ī‚˛ Application system reuse is concerned with the reuse of large-scale, off-the-shelf systems. These provide a lot of functionality and their reuse can radically reduce costs and development time. Systems may be developed by configuring a single, generic application system or by integrating two or more application systems. ī‚˛ Potential problems with application system reuse include lack of control over functionality and performance, lack of control over system evolution, the need for support from external vendors and difficulties in ensuring that systems can inter-operate. Chapter 15 Software reuse 58 17/11/2014