Skip to main content
QUICK REVIEW

[Paper Review] Software (Re-)Engineering with PSF II: from architecture to implementation

Bob Diertens|ArXiv.org|Dec 19, 2007
Advanced Software Engineering MethodologiesComputer Science24 references4 citations
TL;DR

This paper presents a PSF II-based approach to software reengineering, demonstrating how formal architectural specifications in Process Specification Formalism (PSF) enable systematic refinement from high-level architecture to executable implementation. By modeling a simulator's architecture via PSF, applying vertical and horizontal implementation techniques, and integrating animation and history mechanisms, the authors achieve a more maintainable, reusable, and formally verifiable system—though at the cost of a 30x performance degradation due to heavy process concurrency.

ABSTRACT

This paper presents ongoing research on the application of PSF in the field of software engineering and reengineering. We build a new implementation for the simulator of the PSF Toolkit starting from the specification in PSF of the architecture of a simple simulator and extend it with features to obtain the architecture of a full simulator. We apply refining and constraining techniques on the specification of the architecture to obtain a specification low enough to build an implementation from.

Motivation & Objective

  • To explore the application of PSF II in software engineering and reengineering, particularly for building and refining system architectures.
  • To address limitations in the original PSF Toolkit simulator by redesigning it from the ground up using formal specification techniques.
  • To evaluate the effectiveness of PSF-based architectural specification in enabling systematic refinement from architecture to implementation.
  • To enhance the simulator with new features such as a history mechanism and improved GUI, while maintaining formal correctness.
  • To assess the trade-offs between maintainability, reusability, and performance in a formally specified system.

Proposed method

  • Specifying the simulator's architecture using a PSF library tailored for software architecture description, abstracting from the ToolBus library.
  • Applying horizontal and vertical implementation techniques to refine the architectural specification into a concrete ToolBus-based system design.
  • Using the PSF Toolkit to automatically generate animations from specifications, enabling real-time behavioral validation.
  • Integrating a history mechanism into the simulator by extending the architectural and system-level specifications, demonstrating extensibility.
  • Implementing the full simulator as a ToolBus application, leveraging existing component specifications and enabling component reuse.
  • Validating the design through animation and interactive simulation, allowing stakeholders to inspect behavior without low-level implementation knowledge.

Experimental results

Research questions

  • RQ1How can PSF II be effectively used to model and refine software architectures into executable implementations?
  • RQ2What are the practical benefits and trade-offs of using formal architectural specifications in the reengineering of complex systems?
  • RQ3To what extent can PSF-based specifications support the incremental addition of new features, such as a history mechanism, without disrupting the design?
  • RQ4How does the use of process algebra and formal communication primitives improve system maintainability and component reuse?
  • RQ5What performance and usability trade-offs arise when implementing a system using fine-grained concurrent processes as in the PSF approach?

Key findings

  • The architectural specification in PSF enabled a smooth, incremental transition from a simple simulator design to a full-featured system, with no major design disruptions during feature extension.
  • The new implementation reduced code complexity and lines of code, significantly improving maintainability and component reusability.
  • The integration of animation and simulation allowed for real-time behavioral verification, making design changes and feature additions more transparent and testable.
  • The history mechanism was successfully added at the architectural and system design levels, demonstrating the flexibility of the PSF-based refinement process.
  • Despite a 30-fold performance degradation due to high process concurrency and inter-process communication overhead, the system remains usable for interactive and small-scale simulations.
  • The PSF Toolkit proved essential for rapid prototyping, animation, and validation, with animations serving as effective communication tools for stakeholders unfamiliar with the codebase.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.