SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Forward Engineering &
Reverse Engineering
PRESENTED BY:
WASIM CHAUDHRY 323
FAHEEM AHMAD 342
Re-Engineering &
Forward Engineering
PRESENTED BY: FAHEEM 342
SOFTWARE REENGINEERING:
 Reengineering is a rebuilding activity
 Consider an analogous activity: the rebuilding of a house
 Question??
 Consider the following situation. You’ve purchased a house in another state.
You’ve never actually seen the property, but you acquired it at an amazingly low
price, with the warning that it might have to be completely rebuilt. How would you
proceed?
Some Important Points:
 Before you can start rebuilding, it would seem reasonable to inspect the house.
 Before you tear down and rebuild the entire house, be sure that the structure is
weak.
 Before you start rebuilding be sure you understand how the original was built.
 If you begin to rebuild, use only the most modern, long-lasting materials.
 If you decide to rebuild, be disciplined about it. Use practices that will result in
high quality—today and in the future.
Diagram:
Software Re-Engineering Activities:
 Inventory analysis.
 Document restructuring.
 Reverse engineering.
 Code restructuring.
 Data restructuring.
 Forward engineering.
FORWARDENGINEERING:
 The forward engineering process applies software engineering principles,
concepts, and methods to re-create an existing application. In most cases, forward
engineering does not simply create a modern equivalent of an older program.
 New user and technology requirements are integrated into the reengineering
effort. The redeveloped program extends the capabilities of the older application.
Forward Engineering ……
 Forward Engineering for Client-Server Architectures
 Forward Engineering for Object-Oriented Architectures
Forward Engineering for Client-Server
Architectures
 Many mainframe applications have been reengineered to accommodate client-server
architectures (including WebApps). In essence, centralized computing resources (including
software) are distributed among many client platforms.
 Application functionality migrates to each client computer.
 New GUI interfaces are implemented at the client sites.
 Database functions are allocated to the server.
 Specialized functionality (e.g., compute-intensive analysis) may remain at the server site.
 New communications, security, archiving, and control requirements must be established at
both the client and server sites.
Forward Engineering for Object-Oriented
Architectures
Object-oriented software engineering has become the development paradigm of
choice for many software organizations. But what about existing applications that
were developed using conventional methods? In some cases, the answer is to leave
such applications “as is.” In others, older applications must be reengineered so that
they can be easily integrated into large, object-oriented systems.
How????
First the existing software is reverse engineered so that:-
 Appropriate data Can Be Collected
 Functional models Can Be Created
 Behavioral models Can Be Created
If the reengineered system extends the functionality
 Use Cases
 Data Models
 CRC modeling (to establish the basis for the definition of classes.)
Conti…
For those classes that must be engineered from scratch, it may be possible to reuse algorithms
and data structures from the existing conventional application.
However, these must be redesigned to conform to the object-oriented architecture.
Reverse Engineering.
PRESENTED BY: WASIM 323
REVERS EENGINEERING
How to define:
Reverse engineering is a process that can extract design information from source code
REVERSE ENGINEERING over view
Reverse engineering conjures an image of the “magic slot.” You feed a haphazardly
designed, undocumented source file into the slot and out the other end comes
a complete design description (and full documentation) for the computer program
Unfortunately, the magic slot doesn’t exist. Reverse engineering can extract design
information from source code, but the abstraction level, the completeness of the
documentation, the degree to which tools and a human analyst work together, and the
directionality of the process are highly variable
Some important points
The abstraction level of a reverse engineering process and the tools used to effect. it refers to the
sophistication of the design information that can be extracted from
source code.
 The abstraction level should be as high as possible. That is, the reverse engineering process should be
capable of:
 deriving procedural design representations (a low-level abstraction),
 program and data structure information(a somewhat higher level of abstraction),
 object models,
 data and/or control flow models (a relatively high level of abstraction),
 Entity relationship models (a high level of abstraction),
 As the abstraction level increases, you are provided with information that will allow easier
understanding of the program.
Some important points
 The completeness of a reverse engineering process refers to the level of detail that is
provided at an abstraction level.
 In most cases, the completeness decreases as the abstraction level increases.
For example, given a source code listing, it is relatively easy to develop a complete
procedural design representation. Simple architectural design representations may also be
derived, but it is far more difficult to develop a complete set of UML diagrams or models.
Some important points
 Completeness improves in direct proportion to the amount of analysis performed by the
person doing reverse engineering.
 Interactivity refers to the degree to which the human is “integrated” with automated tools to
create an effective reverse engineering process.
 In most cases, as the abstraction level increases, interactivity must increase or completeness
will suffer.
Some important points
 If the directionality of the reverse engineering process is one-way, all information extracted
from the source code is provided to the software engineer who can then use it during any
maintenance activity.
 If directionality is two-way, The information is fed to a reengineering tool that attempts to
restructure or regenerate the old program.
Representation of REVERSE
ENGINEERING
Reverse Engineering to Understand Data
Reverse engineering of data occurs at different levels of abstraction and is often the first
reengineering task.
 At the program level,
 Internal program data structures
 must often be reverse engineered as part of an overall reengineering effort.
 At the system level,
 Global data structures (e.g., files, databases) are often reengineered to accommodate new
database management paradigms (e.g., the move from flat file to relational or object-oriented
database systems).
Internal data structures
Reverse engineering techniques for internal program data focus on the definition of classes of
objects.
This is accomplished by examining the program code with the intent of grouping related
program variables.
In many cases,
The data organization within the code identifies abstract data types.
For example,
record structures, files, lists, and other data structures often provide an
initial indicator of classes.
Database structure
Regardless of its logical organization and physical structure, a database allows the definition of
data objects and supports some method for establishing relationships among the objects.
Therefore, reengineering one database schema into another requires an understanding of
existing objects and their relationships.
Database structure
The following steps may be used to define the existing data model:
 Build an initial object model,
 Determine candidate keys (the attributes are examined to determine whether they are used to
point to another record or table; those that serve as pointers become candidate keys),
 Refine the tentative classes,
 Define generalizations,
 Discover associations using techniques that are analogous to the CRC
approach.
Reverse Engineering to Understand
Processing
Reverse engineering to understand processing begins with an attempt to understand and then
extract procedural abstractions represented by the source code
The overall functionality of the entire application system must be understood before more
detailed reverse engineering work occurs.
Each of the programs that make up the application system represents a functional abstraction at
a high level of detail.
A block diagram, representing the interaction between these functional abstractions, is created.
Each component performs some sub-function and represents a defined procedural abstraction.
In some situations, system, program, and component specifications already exist. When this is
the case, the specifications are reviewed for conformance to existing code.
Reverse Engineering User Interfaces
Sophisticated GUIs have become de rigueur for computer-based products and systems of every
type. Therefore, the redevelopment of user interfaces has become one of the most common
types of reengineering activity. But before a user interface can be rebuilt, reverse engineering
should occur.
To fully understand an existing user interface, the structure and behavior of the interface must
be specified. Merlo and his colleagues suggest three basic questions that must be answered as
reverse engineering of the UI commences:
Questions by:-Merlo and his colleagues
What are the basic actions (e.g., keystrokes and mouse clicks) that the interface must process?
 What is a compact description of the behavioral response of the system to these actions?
What is meant by a “replacement,” or more precisely, what concept of equivalence of interfaces
is relevant here?
Answers….
Behavioral modeling notation can provide a means for developing answers to the first two
questions.
Much of the information necessary to create a behavioral model can be obtained by observing
the external manifestation of the existing interface.
But additional information necessary to create the behavioral model must be extracted from the
code.
It is important to note that a replacement GUI may not mirror the old interface exactly (in fact, it
may be radically different).
It is often worthwhile to develop a new interaction metaphor. For example, an old UI requests
that a user provide a scale factor to shrink or magnify a graphical image.
A reengineered GUI might use a slide-bar and mouse to accomplish the same function
Reengineering including reverse & forward Engineering

Weitere ähnliche Inhalte

Was ist angesagt?

Evolutionary models
Evolutionary modelsEvolutionary models
Evolutionary modelsPihu Goel
 
software project management Artifact set(spm)
software project management Artifact set(spm)software project management Artifact set(spm)
software project management Artifact set(spm)REHMAT ULLAH
 
A presentation on forward engineering
A presentation on forward engineeringA presentation on forward engineering
A presentation on forward engineeringGTU
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factorsNancyBeaulah_R
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
Software project management
Software project managementSoftware project management
Software project managementR A Akerkar
 
COCOMO Model in software project management
COCOMO Model in software project managementCOCOMO Model in software project management
COCOMO Model in software project managementSyed Hassan Ali
 
Improving software economics
Improving software economicsImproving software economics
Improving software economicsdeep sharma
 
Importance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML DesigningImportance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML DesigningABHISHEK KUMAR
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 
Risk management in software engineering
Risk management in software engineeringRisk management in software engineering
Risk management in software engineeringdeep sharma
 
Risk management(software engineering)
Risk management(software engineering)Risk management(software engineering)
Risk management(software engineering)Priya Tomar
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquesSiva Priya
 
CS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question BankCS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question Bankpkaviya
 
Managing People in Software Engineering SE22
Managing People in Software Engineering SE22Managing People in Software Engineering SE22
Managing People in Software Engineering SE22koolkampus
 

Was ist angesagt? (20)

Evolutionary models
Evolutionary modelsEvolutionary models
Evolutionary models
 
software project management Artifact set(spm)
software project management Artifact set(spm)software project management Artifact set(spm)
software project management Artifact set(spm)
 
RMMM Plan
RMMM PlanRMMM Plan
RMMM Plan
 
A presentation on forward engineering
A presentation on forward engineeringA presentation on forward engineering
A presentation on forward engineering
 
Quality and productivity factors
Quality and productivity factorsQuality and productivity factors
Quality and productivity factors
 
Algorithmic Software Cost Modeling
Algorithmic Software Cost ModelingAlgorithmic Software Cost Modeling
Algorithmic Software Cost Modeling
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
Software project management
Software project managementSoftware project management
Software project management
 
COCOMO Model in software project management
COCOMO Model in software project managementCOCOMO Model in software project management
COCOMO Model in software project management
 
Improving software economics
Improving software economicsImproving software economics
Improving software economics
 
Static dynamic and active web pages
Static dynamic and active web pagesStatic dynamic and active web pages
Static dynamic and active web pages
 
Importance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML DesigningImportance & Principles of Modeling from UML Designing
Importance & Principles of Modeling from UML Designing
 
Software Engineering by Pankaj Jalote
Software Engineering by Pankaj JaloteSoftware Engineering by Pankaj Jalote
Software Engineering by Pankaj Jalote
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Risk management in software engineering
Risk management in software engineeringRisk management in software engineering
Risk management in software engineering
 
Risk management(software engineering)
Risk management(software engineering)Risk management(software engineering)
Risk management(software engineering)
 
Web Engineering
Web EngineeringWeb Engineering
Web Engineering
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniques
 
CS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question BankCS8791 Cloud Computing - Question Bank
CS8791 Cloud Computing - Question Bank
 
Managing People in Software Engineering SE22
Managing People in Software Engineering SE22Managing People in Software Engineering SE22
Managing People in Software Engineering SE22
 

Ähnlich wie Reengineering including reverse & forward Engineering

Ähnlich wie Reengineering including reverse & forward Engineering (20)

Software Reengineering
Software ReengineeringSoftware Reengineering
Software Reengineering
 
06 fse design
06 fse design06 fse design
06 fse design
 
Unit_4_Software_Design.pptx
Unit_4_Software_Design.pptxUnit_4_Software_Design.pptx
Unit_4_Software_Design.pptx
 
Object oriented sad-5 part i
Object oriented sad-5 part iObject oriented sad-5 part i
Object oriented sad-5 part i
 
SA_UNIT_1.pptx
SA_UNIT_1.pptxSA_UNIT_1.pptx
SA_UNIT_1.pptx
 
Software design i (2) (1)
Software design   i (2) (1)Software design   i (2) (1)
Software design i (2) (1)
 
Design engineering
Design engineeringDesign engineering
Design engineering
 
Design engineering
Design engineeringDesign engineering
Design engineering
 
Software design
Software designSoftware design
Software design
 
Ch09
Ch09Ch09
Ch09
 
Ch09
Ch09Ch09
Ch09
 
Software design
Software designSoftware design
Software design
 
Computers in management
Computers in managementComputers in management
Computers in management
 
Unit-3.doc
Unit-3.docUnit-3.doc
Unit-3.doc
 
software design
software designsoftware design
software design
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software Engineering
 
Slides chapter 9
Slides chapter 9Slides chapter 9
Slides chapter 9
 
Software engg unit 3
Software engg unit 3 Software engg unit 3
Software engg unit 3
 
Unit i software design principles 9
Unit i software design principles 9Unit i software design principles 9
Unit i software design principles 9
 
Data Designs (Software Engg.)
Data Designs (Software Engg.)Data Designs (Software Engg.)
Data Designs (Software Engg.)
 

Kürzlich hochgeladen

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptshraddhaparab530
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 

Kürzlich hochgeladen (20)

What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Integumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.pptIntegumentary System SMP B. Pharm Sem I.ppt
Integumentary System SMP B. Pharm Sem I.ppt
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 

Reengineering including reverse & forward Engineering

  • 1. Forward Engineering & Reverse Engineering PRESENTED BY: WASIM CHAUDHRY 323 FAHEEM AHMAD 342
  • 3. SOFTWARE REENGINEERING:  Reengineering is a rebuilding activity  Consider an analogous activity: the rebuilding of a house  Question??  Consider the following situation. You’ve purchased a house in another state. You’ve never actually seen the property, but you acquired it at an amazingly low price, with the warning that it might have to be completely rebuilt. How would you proceed?
  • 4. Some Important Points:  Before you can start rebuilding, it would seem reasonable to inspect the house.  Before you tear down and rebuild the entire house, be sure that the structure is weak.  Before you start rebuilding be sure you understand how the original was built.  If you begin to rebuild, use only the most modern, long-lasting materials.  If you decide to rebuild, be disciplined about it. Use practices that will result in high quality—today and in the future.
  • 6. Software Re-Engineering Activities:  Inventory analysis.  Document restructuring.  Reverse engineering.  Code restructuring.  Data restructuring.  Forward engineering.
  • 7. FORWARDENGINEERING:  The forward engineering process applies software engineering principles, concepts, and methods to re-create an existing application. In most cases, forward engineering does not simply create a modern equivalent of an older program.  New user and technology requirements are integrated into the reengineering effort. The redeveloped program extends the capabilities of the older application.
  • 8. Forward Engineering ……  Forward Engineering for Client-Server Architectures  Forward Engineering for Object-Oriented Architectures
  • 9. Forward Engineering for Client-Server Architectures  Many mainframe applications have been reengineered to accommodate client-server architectures (including WebApps). In essence, centralized computing resources (including software) are distributed among many client platforms.  Application functionality migrates to each client computer.  New GUI interfaces are implemented at the client sites.  Database functions are allocated to the server.  Specialized functionality (e.g., compute-intensive analysis) may remain at the server site.  New communications, security, archiving, and control requirements must be established at both the client and server sites.
  • 10. Forward Engineering for Object-Oriented Architectures Object-oriented software engineering has become the development paradigm of choice for many software organizations. But what about existing applications that were developed using conventional methods? In some cases, the answer is to leave such applications “as is.” In others, older applications must be reengineered so that they can be easily integrated into large, object-oriented systems.
  • 11. How???? First the existing software is reverse engineered so that:-  Appropriate data Can Be Collected  Functional models Can Be Created  Behavioral models Can Be Created If the reengineered system extends the functionality  Use Cases  Data Models  CRC modeling (to establish the basis for the definition of classes.)
  • 12. Conti… For those classes that must be engineered from scratch, it may be possible to reuse algorithms and data structures from the existing conventional application. However, these must be redesigned to conform to the object-oriented architecture.
  • 14. REVERS EENGINEERING How to define: Reverse engineering is a process that can extract design information from source code
  • 15. REVERSE ENGINEERING over view Reverse engineering conjures an image of the “magic slot.” You feed a haphazardly designed, undocumented source file into the slot and out the other end comes a complete design description (and full documentation) for the computer program Unfortunately, the magic slot doesn’t exist. Reverse engineering can extract design information from source code, but the abstraction level, the completeness of the documentation, the degree to which tools and a human analyst work together, and the directionality of the process are highly variable
  • 16. Some important points The abstraction level of a reverse engineering process and the tools used to effect. it refers to the sophistication of the design information that can be extracted from source code.  The abstraction level should be as high as possible. That is, the reverse engineering process should be capable of:  deriving procedural design representations (a low-level abstraction),  program and data structure information(a somewhat higher level of abstraction),  object models,  data and/or control flow models (a relatively high level of abstraction),  Entity relationship models (a high level of abstraction),  As the abstraction level increases, you are provided with information that will allow easier understanding of the program.
  • 17. Some important points  The completeness of a reverse engineering process refers to the level of detail that is provided at an abstraction level.  In most cases, the completeness decreases as the abstraction level increases. For example, given a source code listing, it is relatively easy to develop a complete procedural design representation. Simple architectural design representations may also be derived, but it is far more difficult to develop a complete set of UML diagrams or models.
  • 18. Some important points  Completeness improves in direct proportion to the amount of analysis performed by the person doing reverse engineering.  Interactivity refers to the degree to which the human is “integrated” with automated tools to create an effective reverse engineering process.  In most cases, as the abstraction level increases, interactivity must increase or completeness will suffer.
  • 19. Some important points  If the directionality of the reverse engineering process is one-way, all information extracted from the source code is provided to the software engineer who can then use it during any maintenance activity.  If directionality is two-way, The information is fed to a reengineering tool that attempts to restructure or regenerate the old program.
  • 21. Reverse Engineering to Understand Data Reverse engineering of data occurs at different levels of abstraction and is often the first reengineering task.  At the program level,  Internal program data structures  must often be reverse engineered as part of an overall reengineering effort.  At the system level,  Global data structures (e.g., files, databases) are often reengineered to accommodate new database management paradigms (e.g., the move from flat file to relational or object-oriented database systems).
  • 22. Internal data structures Reverse engineering techniques for internal program data focus on the definition of classes of objects. This is accomplished by examining the program code with the intent of grouping related program variables. In many cases, The data organization within the code identifies abstract data types. For example, record structures, files, lists, and other data structures often provide an initial indicator of classes.
  • 23. Database structure Regardless of its logical organization and physical structure, a database allows the definition of data objects and supports some method for establishing relationships among the objects. Therefore, reengineering one database schema into another requires an understanding of existing objects and their relationships.
  • 24. Database structure The following steps may be used to define the existing data model:  Build an initial object model,  Determine candidate keys (the attributes are examined to determine whether they are used to point to another record or table; those that serve as pointers become candidate keys),  Refine the tentative classes,  Define generalizations,  Discover associations using techniques that are analogous to the CRC approach.
  • 25. Reverse Engineering to Understand Processing Reverse engineering to understand processing begins with an attempt to understand and then extract procedural abstractions represented by the source code The overall functionality of the entire application system must be understood before more detailed reverse engineering work occurs. Each of the programs that make up the application system represents a functional abstraction at a high level of detail. A block diagram, representing the interaction between these functional abstractions, is created. Each component performs some sub-function and represents a defined procedural abstraction. In some situations, system, program, and component specifications already exist. When this is the case, the specifications are reviewed for conformance to existing code.
  • 26. Reverse Engineering User Interfaces Sophisticated GUIs have become de rigueur for computer-based products and systems of every type. Therefore, the redevelopment of user interfaces has become one of the most common types of reengineering activity. But before a user interface can be rebuilt, reverse engineering should occur. To fully understand an existing user interface, the structure and behavior of the interface must be specified. Merlo and his colleagues suggest three basic questions that must be answered as reverse engineering of the UI commences:
  • 27. Questions by:-Merlo and his colleagues What are the basic actions (e.g., keystrokes and mouse clicks) that the interface must process?  What is a compact description of the behavioral response of the system to these actions? What is meant by a “replacement,” or more precisely, what concept of equivalence of interfaces is relevant here?
  • 28. Answers…. Behavioral modeling notation can provide a means for developing answers to the first two questions. Much of the information necessary to create a behavioral model can be obtained by observing the external manifestation of the existing interface. But additional information necessary to create the behavioral model must be extracted from the code. It is important to note that a replacement GUI may not mirror the old interface exactly (in fact, it may be radically different). It is often worthwhile to develop a new interaction metaphor. For example, an old UI requests that a user provide a scale factor to shrink or magnify a graphical image. A reengineered GUI might use a slide-bar and mouse to accomplish the same function