TL;DR
This paper introduces a model-driven approach to automatically derive domain functional requirements (DFRs) from existing product functional requirements (PFRs) in software product lines (SPLs). By leveraging linguistic analysis and metamodeling, the authors provide a more efficient and rigorous method for identifying commonalities and variabilities in requirements, reducing manual effort and cost in SPL development.
What Problem Does This Paper Address?
Developing Software Product Lines (SPLs) aims to achieve mass customization by exploiting commonalities and managing differences across a family of related software systems. A crucial step in SPL engineering is domain analysis, which identifies reusable assets. However, existing techniques for deriving domain requirements, particularly functional requirements, heavily rely on manual effort and domain expert experience. This can be a significant barrier to SPL adoption due to high upfront costs, effort, and time investment. The paper addresses the challenge of efficiently and systematically extracting domain functional requirements (DFRs) from existing product functional requirements (PFRs) to reduce this barrier.
Methods
The core of the proposed approach is a model-driven process that transforms PFRs into DFRs. Key techniques include:
- Linguistic Analysis (Fillmore's Case Grammar): The authors apply Fillmore's case grammar theory to analyze functional requirements. They define a set of semantic cases (Agentive, Dative, Objective, Instrumental, Factitive, Locative, Temporal, Conditional) to capture the action-oriented concerns and contextual information of requirements. This provides a structured and more complete representation than natural language alone.
- Metamodeling: They define two metamodels: one for Product Functional Requirements (PFRs) and another for Domain Functional Requirements (DFRs). These metamodels provide a formal structure for representing requirements and their semantic cases.
- Model Transformation: The process involves two main steps:
- PFR Model Merging: PFR models from different products are clustered and merged based on their verb-object pairs and semantic case similarities. This is achieved using a graphical model transformation language called MOLA.
- DFR Model Refinement: The merged models are then refined to identify commonality and variability. This involves calculating a commonality/variability ratio (CVratio) for DFRs, case types, and case values. Based on these ratios, DFRs are classified as common, optional, or application-specific. Variation points (VP) and variants are also identified.
Datasets
The paper uses an example dataset from a Home Security System (HSS) SPL, based on requirements specifications from three existing HSS products. This dataset is used for illustrative purposes and preliminary evaluation. The authors also mention a case study on an auto-marker SPL with a larger dataset (twelve SRSs, averaging 48 PFRs each) to demonstrate scalability.
Key Insights and Ideas
- Linguistic Structure for Requirements: Using Fillmore's case grammar provides a systematic way to break down functional requirements into their core components and contextual information, making commonality and variability analysis more tractable.
- Model-Driven Automation: The shift from manual analysis to a model-driven transformation process significantly reduces the effort and potential for human error in deriving DFRs.
- Quantifying Commonality and Variability: The introduction of the CVratio at multiple levels (DFR, CaseType, CaseValue) offers a quantitative measure of how common or variable specific requirements are across the product line.
- Identifying Variation Points: The approach explicitly identifies "variation points" (e.g., a case type that varies) and "variants" (e.g., different values for that case type), which is crucial for managing SPL evolution.
- Complementary Approach: The method is presented not as a replacement for existing domain analysis techniques but as a complement that adds rigor and automation, particularly for functional requirements.
Key Results
- The proposed model transformation process is performed in polynomial time, demonstrating efficiency.
- A preliminary experiment with 17 PFR models for the HSS SPL took approximately 8 ms on a standard PC, indicating near-instantaneous performance for merging and refinement.
- The approach successfully transformed PFR models into DFR models, accurately reflecting commonalities and variabilities. For instance, similar PFRs were merged into a single DFR, and variations in semantic cases were identified as variants.
- A case study on a larger auto-marker SPL dataset showed no performance issues, suggesting good scalability. Domain experts found the identified common and variable DFRs to be relevant and accurate.
Limitations and Future Work
- Input Quality: The primary challenge in practical application is the quality and consistency of input PFRs, which are often documented in natural language and can be ambiguous. While the paper mentions previous work on automated extraction from natural language and use cases, fully automated, correct, and consistent PFR model construction remains an open challenge. Manual effort is still required for preprocessing.
- Completeness of Source Requirements: The completeness of the initial set of product requirements can affect the accuracy of commonality and variability analysis. Missing requirements or future needs might necessitate adjustments to the derived DFRs.
- Dependency Relationships: While the approach highlights variation points and variants, explicitly clarifying dependency relationships between them (e.g., compulsory, optional, alternative) might require further analysis by domain experts.
- Future Work: The authors plan to incorporate information retrieval and consistency checking techniques to further automate PFR model construction. They also aim to develop tool support and conduct more case studies with real-world projects.
Summary updated