DOI: 10.1201/9781003129509-5

Motivation to Consider NFRs Earlier in Development

Systems are characterized both by their functional behavior (what the system does) and by their nonfunctional behavior (how the system behaves concerning some observable attributes like reliability, reusability, and maintainability).

In the software/system marketplace, in which functionally equivalent products compete for the same customer, nonfunctional requirements (NFRs) become more important in distinguishing between the competing products. However, in practice, NFRs may receive little attention relative to functional requirements (FRs) ( Weber and Wesbrot 2003 ). This is mainly true because of the nature of NFRs which poses a challenge when taking the choice of treating them at an early stage of the development process. NFRs are characterized to be:

  1. Subjective and Relative : where the satisfaction of one NFR can be based on or influenced by personal feelings, opinions, or tastes. For example, “maintaining a system with 98% availability” can be considered acceptable by some stakeholders and for some systems, but not by others.
  2. Scattered : where NFRs tend to become scattered among multiple modules when they are mapped from the requirements domain to the solution space. For example, a “high-modifiability” related requirement can only be satisfied with multiple implementations and configurations that are spread at multiple modules of the system.
  3. Interacting : in the sense that attempts to achieve one NFR can help or hinder the achievement of other NFRs at particular functionality. For example, the attempt to achieve security through implementing authentication may come at the expense of performance by increasing latency. Such interaction creates an extensive network of interdependencies and tradeoffs among NFRs which is not easy to trace or estimate ( Chung et al. 2000 ).

Once a system has been deployed, it is typically straightforward to observe whether a certain FR has been met, as the areas of success or failure in their context can be rigidly defined. However, the same is not true for NFRs as these can refer to concepts that can be interdependent and difficult to measure. The problem of lacking any early NFR integration within the specified system is likely to cause an increase in the effort and maintenance overhead ( Seffah et al. 2005 ), or even a catastrophic project failure. The following list provides valid examples:

  • Target Data Breach ( O’Neil 2015 ) : Between November 27 and December 18, 2013, the Target Corporation’s network was breached, which became the second-largest credit and debit card breach after the TJX breach in 2007. In the Target incident, 40 million credit and debit card numbers were stolen in only 2 weeks and a half. Target’s systems were compromised by a stolen password. Upon analyzing the “security” breach, it was found that an HVAC company had access to their networks to monitor the environmental conditions of the servers. The perpetrators were then able to legitimately gain access to Target’s systems through the available access that was allowed for the HVAC company. They eventually installed malware on the point of sale (POS) systems.
  • Siemens : Possible Hearing Damage in Some Cell Phones ( Siemens 2004 ): In 2004, Siemens issued a “safety” warning that some of its cell phones may have a software problem that could cause them to emit a loud noise, possibly causing a hearing loss for the phone user. The malfunction happens only if, while the phone is in use, the battery runs down to the point that the phone automatically disconnects the call and begins to shut down.
  • Mars Climate Orbiter ( Breitman et al. 1999 ) : This was one of two NASA spacecraft in the Mars Surveyor ‘98 program. The mission failed because of a software “interoperability” issue. The craft drifted off course during its voyage and entered a much lower orbit than planned and was destroyed by atmospheric friction. The metric/imperial mix-up which destroyed the craft was caused by a software error back on Earth. The thrusters on the spacecraft which were intended to control its rate of rotation were controlled by a computer that underestimated the effect of the thrusters by a factor of 4.45. This is the ratio between a pound-force—the standard unit of force in the imperial system—and a Newton—the standard unit in the metric system. The software on Earth was working in pounds-force, while the spacecraft expected figures in Newton.
  • London Ambulance System (LAS) ( Finkelstein and Dowell 1996 ) : In 1992, The London Ambulance Service introduced a new computer-aided dispatch system that was intended to automate the system that dispatched ambulances in response to calls from the public and the emergency services. This new system was extremely inefficient and ambulance response times increased markedly. Shortly after its introduction, it failed and LAS reverted to the previous manual system. The failure of the system was mainly due to a failure to consider “human and organizational factors” in the design of the system.
  • The National Library of Medicine MEDLARS II system ( Boehm and In 1996 ) : The project was initially developed with many layers of abstraction to support a wide range of future publication systems. The initial focus of the system was toward improving “portability” and “evolvability” qualities. The system was scrapped after two expensive hardware upgrades due to “performance” problems.
  • The New Jersey Department of Motor Vehicles’ licensing system ( Babcock 1985 ) : This system was written in the fourth-generation programming language, ideal to save development time. When implemented, the system was so slow that at one point more than a million New Jersey vehicles roamed the streets with unprocessed license renewals. The project aimed at satisfying “affordability” and “timeliness” objectives but failed due to “performance scalability” problems.

Despite this obvious importance and relevance of NFRs, they are almost always left to be verified after the implementation is finished, which means NFRs are not mapped directly and explicitly from requirements engineering to implementation. This is mainly due to the enormous pressure toward “urgent” deployment. This may leave software/system development with potential exacerbation of the age-old problem of requirements errors that are not detected until very late in the process. Some of the well-known problems of the software development due to the NFRs omission include: (i) cost and schedule overruns, (ii) software systems discontinuation, and (iii) dissatisfaction of software systems users.

The importance of software/system compliance with the imposed NFRs requires management of their scope ( Kassab et al. 2007 ), which brings up the importance of clearly defining, tracing, and effort estimating the complex and frequently ill-defined NFRs and their interrelations in an increasingly complex large-scale software system.

Watch a short video from Dr. Kassab discussing NFRs in software engineering.

https://phil.laplante.io/requirements/NFRs.php

What Is an NFR?

In general, and because of their diverse nature, NFRs have been (at best) specified in loose, fuzzy terms that are open to wide-ranging and subjective interpretation. As such, they provide little guidance to architects and engineers as they make the already tough tradeoffs necessary to meet schedule pressures and functionality goals. For instance, most software engineering approaches (IEEE 29148), The Unified Software Development Process ( Grady 1992 ), and industrial practices specify NFRs separately from FRs of a system. This is mainly because the early integration of NFRs is difficult to achieve and usually accomplished at the later phases of the software development process. However, since the integration is not supported from the requirements phase to the implementation phase, some of the software engineering principles, such as abstraction, localization, modularization, uniformity, and reusability, can be compromised. Furthermore, the resulting system is more difficult to maintain and evolve.

Instead, NFRs need to be made precise and clear right from the requirements phase. But to be able to specify the NFRs in precise terms, there must be a general understanding of what the term NFR stands for, and what are the relations that the NFR may be exposed to during the life cycle of the project. Although the term “nonfunctional requirement” has been in use for more than 40 years, there is still no consensus in the requirements engineering community on what NFRs ( Kassab 2009 ) are and what are relations that an individual NFR may participate in. Table 5.1 gives an overview of selected definitions from the literature or the web which are representative of the definitions that exist. We provided our definition in the last row of the table derived from experience and knowledge of the existing definitions.

Table 5.1 Definitions of the Term “Non-Functional Requirement(s)”. | Source | Definition | | --- | --- | | Antón ( 1997 ) | Requirements describe the nonbehavioral aspects of a system, capturing the properties and constraints under which a system must operate. | | Davis ( 1993 ) | Requirements that represent the required overall attributes of the system, including portability, reliability, efficiency, human engineering, testability, understandability, and modifiability. | | IEEE 610.12 | The term is not defined. The standard distinguishes design requirements, implementation requirements, interface requirements, performance requirements, and physical requirements. | | ISO/IEC/IEEE Standard 29148 | The term is not defined. The standard defines the categories functionality, external interfaces, performance, attributes (portability, security, etc.), and design constraints. Project requirements(such as schedule, cost, or development requirements) are explicitly excluded. | | Jacobson et al. ( 1999 ) | A requirement that specifies system properties, such as environmental and implementation constraints, performance, platform dependencies, maintainability, extensibility, and reliability. A requirement that specifies physical constraints on a functional requirement. | | Kotonya and Sommerville ( 1998 ) | Requirements that are not specifically concerned with the functionality of a system. They place restrictions on the product being developed and the development process, and they specify external constraints that the product must meet. | | Mylopoulos et al. ( 1992 ) | “... global requirements on its development or operational cost, performance, reliability, maintainability, portability, robustness, and the like. (...) There is not a formal definition or a complete list of nonfunctional requirements.” | | Ncube ( 2000 ) | The behavioral properties that the specified functions must have, such as performance and usability. | | Robertson and Robertson ( 1999 ) | A property, or quality, that the product must have, such as an appearance, or a speed or accuracy property. | | Wiegers ( 2003 ) | A description of a property or characteristic that a software system must exhibit or a constraint that it must respect other than an observable system behavior. | | Wikipedia: Nonfunctional Requirements | Requirements specify criteria that can be used to judge the operation of a system rather than specific behaviors. | | Our definition | Umbrella term to cover all those requirements which are not explicitly defined as functional. |

Employing our definition then and the example of the brick presented in Vignette 1.1 , one can clearly see that while the color and texture of the brick might be important to the homeowner, it has no role in the function of the home. Therefore, here color and texture are NFRs.

What Are the Different Types of NFRs?

In general, NFRs can be of two main types: quality requirements or constraints.

Quality Requirements : is the totality of characteristics of an entity that bear on its ability to satisfy stated and implied needs (ISO 25000). Software quality is an essential and distinguishing attribute of the final product. Evaluation of software products to satisfy software quality needs is one of the processes in the software development life cycle.

Software product quality can be evaluated by measuring internal attributes (typically static measures of intermediate products which specify internal quality from the internal view of the product), or by measuring external attributes (typically by measuring the behavior of the code when executed to specify the required level of quality from the external view), or by measuring quality in use attributes (which represents the user’s view of the quality of the software product when it is used in a specific environment and a specific context of use). Figure 5.1 presents the three views of the product quality at different stages in the software life cycle.

Figure 5.1 Quality in the software/systems life cycle (ISO12601).

Many approaches (Boehm ( 1976 ), Chung et al. ( 2000 ), and (ISO 25000)) classify software quality in a structured set of characteristics which are further decomposed into sub-characteristics. For example, “Confidentiality” quality is a sub-characteristic of “Security” which is a sub-characteristic of “Reliability.”

We will discuss the quality requirements in more detail shortly in this chapter.

Constraints : are not subject to negotiations and, unlike qualities, are off-limits during design tradeoffs. Constraints are defined in Leffingwell and Widrig ( 2003 ) as restrictions on the design of the system, or the process by which a system is developed, that does not affect the external behavior of the system but that must be fulfilled to meet technical, business, or contractual obligations. A key property of a constraint is that a penalty or loss of some kind applies if the constraint is not respected. There are different types of constraints:

  • Design Implementation Constraints : These are premade design/implementation decisions that we have to live with and limit our technical choices. They become load-bearing walls on the design space. Examples of these types of constraints include:
    • – Utilization of and/or integration with legacy systems
    • – Mandated technologies, architectural patterns, languages, protocols, standards, patterns, and so forth
  • Business Constraints : conditions that exist within the business that cannot be changed and impact design. These constraints may include:
    • – Cost and benefit expectation
    • – Rollout (incremental delivery) schedule
    • – Targeted market and time to market
    • – Projected lifetime of the system
    • – Alignment of team structure, available expertise, and software structures
    • – Product lines or another reuse strategy to amortize investments

Operating Constraints : These are constraints that include physical constraints, personnel availability, skill-level considerations, and system accessibility for maintenance.

Political/Cultural Constraints : These are constraints that include policy and legal issues (e.g., what laws and standards apply to the product).

While the origin of the constraints may differ, all will impact early design decisions to one degree or another. This is why it is important to document all constraints. We can simply write them down including any supporting information that is relevant or available including:

  • Rationale
  • Any associated flexibility in the constraint
  • Any suitable alternatives
  • Originating stakeholder(s)

While there is no need to prioritize constraints according to importance, as by definition they must be adhered to, it can still be helpful to assign difficulty rankings.

Quality Requirements in Practice

Quality requirements play a significant role in the creation of an architecture for a given system. If ignored or not fully understood, you risk creating a system that may not be fit for its intended purpose. In practice, quality requirements are not stand-alone requirements, as their existence is always dependent on other concepts or requirements in the project context. For example, if a functional requirement is “when the user presses the red button the Options dialog appears,” then:

  • A performance quality requirement annotation might describe how quickly the dialog will appear;
  • An availability quality annotation might describe how often this function will fail, and how quickly it will be repaired;
  • A usability quality annotation might describe how easy it is to learn this function.

In general, there are three problems when dealing with quality requirements in practice:

  • Problem 1 : In most of the time, the definitions provided for a quality requirement are not testable.

    • It is meaningless to say that a system shall be “modifiable.” Single-word descriptions of quality attribute properties are meaningless and wide open to interpretation. Such a vague description lacks quantifiable measures which are impossible to establish without a specific context.
  • Problem 2 : Endless time is wasted on arguing over which quality a concern belongs to. Is a system failure due to a denial of service attack an aspect of availability, performance, security, or usability?

    • Many approaches classify software quality in a structured set of characteristics which are further decomposed into sub-characteristics. But there is no widely accepted standard and utilized standard for quality requirements taxonomy. It is impossible to provide an exhaustive or precise definition for any quality attribute as the specific meaning will depend on the project context.
  • Problem 3 : Each attribute community has developed its own vocabulary. While classic quality attributes (e.g., availability, modifiability, performance, security) are well discussed in books and literature, in practice, there are other qualities attributes that are are domain-specific or may emerge in the context of disruptive technology. Here are some examples:

    • Iowability : In the book “Software Architecture in Practice” ( Bass et al. 2021 ), the authors refer to a system architecture that was designed with the conscious goal of retaining key employees and attracting talented new hires to relocate to a quiet region of the American Midwest. That system’s architects spoke of imbuing the system with “Iowability.” This quality attribute was achieved for that system by bringing in state-of-the-art technology and giving their development teams wide creative latitude. While it is unlikely to find this quality attribute in any standard list of quality attributes, it is still important to that system in that specific context. Quality attribute requirements are derived from the context, not a textbook.
    • Caring : This quality could mean different things to different people and different systems. Consider, for example, a robotic surgery system. These systems are now used extensively for many types of procedures including heart, cancer, and prostate surgery. While current systems are robotic in the sense that the machine mimics the movements of a human surgeon, fully autonomous robot surgical systems are envisioned in the near future, replacing surgeons and nurses in the operating room. While we expect the human surgeon and nurses to care about the patient, as systems engineers, what should we require of a fully autonomous robot surgeon? Caring likely encompasses elements of the qualities of trust, reliability, privacy, and more, but none of these, by themselves, capture the full essence of caring. Instead, caring is a super-ility resulting as some composite of other ilities (and the system quality called empathy). One possible hierarchical representation for caring in terms of these other ilities is given in Figure 5.2 .
    • Consider, for example, the constituent qualities of caring in the robotic surgery system. The surgeon wants the system to be safe and reliable, likely as the primary concern. Both the safe and trustworthy operation of the system contribute to a sense of reliability in the system and are of concern to the systems engineers. The patient shares these concerns but also wants the system to preserve his privacy (e.g., by not exposing medical records or embarrassing images). If the actors in the operating room were humans, the patient would probably also expect a sense of empathy from the surgeons or nurses. Of course, robot surgeons look nothing like human surgeons; therefore, there would need to be a means by which the robots could emote empathy via speech or facial expression generation on some display device. These diverse concerns, with respect to the qualities related to caring, will inform the specific system requirements discovery and representation process. Laplante et al. discuss the caring quality in the context of IoT in the healthcare domain ( Laplante et al. 2017 ).
  • Humanization : There are may be questions on the moral role that an IoT system may play in human lives, particularly concerning personal control. For example, applications in the IoT involve more than computers interacting with other computers. Fundamentally, the success of the IoT will depend less on how far the technologies are connected and more on the humanization of the technologies that are connected. IoT technology may reduce people’s autonomy, shift them toward habits, and then shift power to corporations focused on financial gain. For the education domain, many studies indicate that face-to-face interaction between students will not only benefit a child’s social skills but also positively contribute to character building. The issue that may arise from increased IoT technologies in the education domain is the partial loss of the social aspect of going to school. Hence, considering “Humanization” as a quality for any such systems is worth the research.

    • Dehumanization of humans in interacting with machines is a valid concern, and it is discussed in many studies (e.g., Kassab et al. 2018 , 2020 ).

Figure 5.2 Taxonomy for caring quality requirement (Laplante et al. 2017).

Specifying with Quality Attribute Scenarios

The Software Engineering Institute (SEI) provided a solution to the above problems in the form of using quality attribute scenarios as a means of characterizing quality attributes. Quality Attribute Scenarios are a means to better characterize quality attributes. While “Use case scenarios” are descriptions of the expected response given specific functional input, the “Quality Attribute Scenarios (QAS)” are descriptions of a quality attribute response given a stimulus. The SEI has developed a six-part framework to help ensure that quality attribute requirements are actionable and to some extent “testable.” The six parts of the QAS are as follows:

  • Stimulus : A condition that affects the system.
  • Source of the Stimulus : The entity that generated the stimulus.
  • Environment : The condition under which the stimulus occurred.
  • Artifact Stimulated : The artifact that was stimulated by the stimulus.
  • Response : The activity that results because of the stimulus.
  • Response Measure : The measure by which the system’s response will be evaluated.

So an alternative way to specify a security quality requirement through a quality scenario is:

A disgruntled employee from a remote location attempts to modify the pay rate table during normal operations. The system maintains an audit trail and the correct data is restored within 12 hours.

If we analyze the above scenario, we can detect the six elements:

  • Stimulus : attempting to modify
  • Source of the Stimulus : a disgruntled employee
  • Environment : normal operation
  • Artifact Stimulated : the pay rate table
  • Response : maintaining an audit trail and restoring the correct data
  • Response Measure : 12 hours.

With using the QAS, the focus is not on the naming of the quality attribute but on its underlying concerns—to illustrate the concepts that are fundamental to the domain. It is not important what term we use to specify a quality requirement as long as it is characterized in a QAS form.

Nevertheless, early in a project six-part, QAS may be impractical. For example, it may not be possible to know the exact “artifact stimulated” until we do some design. Also, stakeholders may not know specific responses or response measures as realistic response measures may need to be determined via experimentation. While it may take too long to develop six-part scenarios in real-time requirements elicitations, it is recommended to start by getting the essentials (source, stimulus, response) and then to develop the details through analysis and iteration with stakeholders.

Specifying with Planguage

Tom Gilb developed Planguage , a language with a rich set of keywords that permits precise specifications of requirements including qualities. For a comprehensive discussion of Planguage, see Gilb’s book Competitive Engineering: A Handbook for Systems Engineering, Requirements Engineering, and Software Engineering Using Planguage (Butterworth-Heinemann 2005).

Planguage offers a very large number of keywords to permit expressing different types of requirements, but you need only a few of them to get started. Following is an example of how to express a performance requirement by using Planguage. Expressed in traditional form, the requirement might read: “The system shall take at most 5 seconds to display search results 99% of the time.”

To avoid ambiguity, a quality requirement shall be more specific by highlighting the following elements:

Tag : Performance.Results.response time

Ambition : Fast response time to generate results on the base user platform.

Scale : Seconds of elapsed time between pressing the Enter key or clicking OK to request the search results and the beginning of the display of the report.

Meter : Stopwatch testing performed on a predefined number of test searches that represent a defined usage operational profile for a field office accountant.

Goal : No more than 5 seconds for 99% of the time a search is conducted.

Stretch : No more than 2 seconds for predefined reports, 5 seconds for all reports.

Wish: No more than 1 second for all searches.

Base User Platform Defined : Quad-core processor, 8GB RAM, Windows 10, single-user, at least 60% of system RAM and 80% of system CPU capacity free, the network connection speed of at least 50 Mbps.

Popular Quality Requirements

Security

To be able to argue about security, one has to understand what it means. Let’s examine security in the light of three contexts:

  • Think about “Fort Knox US Army post in Kentucky.” In addition to housing various US Army functions, it is also the home to a gold bullion depository with 5,000 + tons of gold housed there. So, what is the business asset that needs protection in this context? And what does protect mean here?
  • Think also of the “The Central Intelligence Agency (CIA)” which is a US civilian intelligence organization with the primary purpose is to collect information about foreign governments, corporations, and individuals. It uses this information to influence public policymakers. What is the business asset that needs protection? And what does protect mean in this case?
  • Now, think of an “electrical distribution grid” system. Again, what is the asset that needs protection? And what protects mean in this case?

To define security in a specific context, we need to understand the business asset that requires protection. We then want to ensure the system protects that business asset, and we do this by imagining how the business asset is at risk and then articulate the desired response to that risk.

So, security is defined as a measure of the system’s ability to protect data and information from unauthorized access while still providing access to people and systems that are authorized.

An action taken against a computer system with the intention of doing harm is called an attack and can take a number of forms. It may be an unauthorized attempt to access data or services or to modify data, or it may be intended to deny services to legitimate users. The related concerns that are refined security are typically classified as “security” concerns. These concerns are typically:

  • Confidentiality : The property that reflects the extent to which data and services are only available to those that are authorized to access them.
  • Integrity : It reflects the extent to which data or services can be delivered as intended. This property can also refer to data or services.
  • Non-repudiation : It refers to the ability to guarantee that the sender cannot later repudiate or deny having sent the message. It can also refer to the guarantee that the recipient cannot later deny having received the message.
  • Availability : This is the property that reflects the extent to which the system will be available for legitimate use. A denial-of-service attack is meant to disrupt the availability of a system, and it is a security concern. Availability builds on reliability by adding the notion of recovery (repair). Fundamentally, availability is about minimizing service outage time by mitigating faults.

Not all of these four security concerns are of the same importance to every system. For example, privacy concern is not necessary of the same importance for a security system in museum as for a managing accounts system in a financial institution.

People often have trouble articulating the security concerns, and it is common to articulate the solution (e.g., “System must support login”) instead of the concern itself. “Supporting login” is a functional requirement that may emerge as a solution to satisfy a “confidentiality” concern.

Example : Here it is interesting to note that even a brick can have a security requirement. This sort of NFR is essential for embassy and government security agency buildings. For any bricks used in a high-security system, there is a security requirement on those bricks—they should not contain or be easily able to accept any sort of eavesdropping device, and provisions must be made to ensure that this requirement is met, for example, through secure sourcing and testing.

Modifiability

Modifiability is about change, and our interest in it is in the cost and risk of making changes. To plan for modifiability, a requirement engineer must consider three questions:

  • What can change?
  • What is the likelihood of the change?
  • When is the change made and who makes it?

An example of a quality scenario for “Modifiability” can be written as:

The developer wishes to change the user interface by modifying the code at design time. The modifications are made with no side effects within three hours.

Interoperability

Interoperability is about the degree to which two or more systems can usefully exchange meaningful information. Like all quality attributes, interoperability is not a yes-or-no proposition but has shades of meaning. An example of a quality scenario for “Interoperability” can be written as:

Our vehicle information system sends our current location to the traffic monitoring system. The traffic monitoring system combines our location with other information, overlays this information on a Google Map, and broadcasts it. Our location information is correctly included with a probability of 99.9%.

Performance

Performance is about time and the system’s ability to meet timing requirements. When events occur—interrupts, messages, requests from users or other systems, or clock events marking the passage of time—the system, or some element of the system, must respond to them in time. Characterizing the events that can occur (and when they can occur) and the system or element’s time-based response to those events is the essence in discussing performance. An example of a quality scenario for “Performance” can be written as:

Users initiate transactions under normal operations. The system processes the transactions with an average latency of two seconds.

Testability

Testability refers to the ease with which software or system can be made to demonstrate its faults through (typically execution-based) testing. Specifically, testability refers to the probability, assuming that the software or system has at least one fault, that it will fail on its next test execution. If a fault is present in a system, then we want it to fail during testing as quickly as possible. For a system to be properly testable, it must be possible to control each component’s inputs (and possibly manipulate its internal state) and then to observe its outputs (and possibly its internal state). An example of a quality scenario for “testability” can be written as:

The unit tester completes a code unit during development and performs a test sequence whose results are captured and that gives 85% path coverage within 3 hours of testing.

Usability

Usability is concerned with how easy it is for the user to accomplish the desired task and the kind of user support the system provides. Over the years, a focus on usability has shown itself to be one of the cheapest and easiest ways to improve a system’s quality (or, more precisely, the user’s perception of quality). Usability comprises the following areas:

  • Learning system features
  • Using a system efficiently
  • Minimizing the impact of errors
  • Adapting the system to user needs
  • Increasing confidence and satisfaction

An example of a quality scenario for “testability” can be written as:

The user downloads a new application and is using it productively after two minutes of experimentation.

Other Approaches to Handle NFRs in RE

Most of the early work on NFRs focused on measuring how much a software system is following the set of NFRs that it should satisfy, using some form of quantitative analysis ( Fenton and Pfleeger 1997 , Keller 1990 , and Lyu 1996 ) offering predefined metrics to assess the degree to which a given software object meets a particular NFR. Those approaches that are concerned with measuring how much software complies with NFRs are called product-oriented approaches.

On the contrary, process-oriented approaches focus on the software development process. It aims to help software engineers search for alternatives to sufficiently meet NFRs while developing the software. Two worth mentioning: (i) NFRs framework and (ii) incorporating NFRs into UML models.

NFR Framework

The NFR framework ( Chung et al. 2000 ) is a process-oriented and goal-oriented approach that is aimed at making NFRs explicit and putting them at the forefront in the stakeholder’s mind. It requires the following interleaved tasks, which are iterative:

  • Task 1 : Acquiring knowledge about the system’s domain, FRs, and the particular kinds of NFRs for a particular system;
  • Task 2 : Identifying NFRs as NFR softgoals and decomposing them into a finer level;
  • Task 3 : Identifying the possible design alternatives for meeting NFRs in the target system as operationalizing softgoals;
  • Task 4 : Dealing with ambiguities, tradeoffs, priorities, and interdependencies among NFRs and operationalizations (which are the solutions to implement the NFRs);
  • Task 5 : Selecting operationalizations;
  • Task 6 : Supporting decisions with a design rationale;
  • Task 7 : Evaluating the impact of operationalization selection decisions on NFR satisfaction.

A cornerstone of this framework is the concept of the “softgoal,” which is used to represent the NFR. A softgoal is a goal that has no clear-cut definition or criteria to determine whether or not it has been satisfied. The framework speaks of softgoals being “satisficed” rather than satisfied, to underscore their ad hoc nature, both with respect to their definition and to their satisfaction. The term “satisfice” was coined by Herbert Simon. Satisficing is a decision-making strategy that attempts to meet criteria for adequacy rather than to identify an optimal solution.

The operation of the framework can be visualized in terms of the incremental and interactive construction, elaboration, analysis, and revision of a softgoal interdependency graph (SIG). NFRs softgoals are depicted by a cloud in the SIG, while operationalizations are depicted with clouds with thicker borders. Figure 5.3 illustrates an example produced by using the NFRs framework for a smart home system. The example shows two appointed soft goals: good performance of responding to critical events and secure access to the system. High-level softgoals are refined into more specific subgoals or operationalizations. In each refinement, the offspring can contribute fully or partially, and positively or negatively, toward satisficing the parent. In Figure 5.3 , both space and response time should be satisficed for the performance to be satisficed. The AND contribution is represented by a single arc, and the OR by double arcs. Other types of contributions are MAKE (++), HELP (+), HURT (-), and BREAK (--).

Figure 5.3 Softgoal interdependency graph for performance and security in a smart home system.

While making choices in pursuit of a particular softgoal, it is very likely that other softgoals may be affected in this decision-making process. This is shown with interdependencies among the softgoals (the dashed lines in the figure). For example, implementing Encryption has a negative contribution with respect to Response Time.

Incorporating NFRs with UML Models

In Moreira et al. ( 2002 ), Park et al. ( 2004 ), Araujo et al. ( 2002 ), and many others, early integration of NFRs is accomplished by extending UML models to integrate NFRs to the functional behavior.

Supakkul et al. ( 2004 ) for example propose a use case and goal-driven approach to integrate FRs and NFRs. They use the UML use case model to capture the functionality of the system, and they also use the NFR framework ( Chung et al. 2000 ) to represent NFRs. They propose to associate the NFRs with four use case model elements: actor , use case , actor-use case association , and the system boundary .

They name these associations “ Actor Association Point,” “ Use Case Association Point,” “Actor-Use Case Association (AU-A) Point,” and “ System Boundary Association Point,” respectively. Having such an extension to the UML use case model, NFRs can be integrated at the requirements analysis level with FRs and can provide a better understanding of the requirements model. Figure 5.4 shows the proposed NFR association points in the UML use case model.

Figure 5.4 NFR association points in a use case diagram (with adaptation).

In Figure 5.4 :

  • Cloud “A” represents the NFRs related to an actor of a use case model. These NFRs are related to the actor by “Actor Association Point.” For example, associating scalability NFR to customer actor would indicate that the system must handle a potentially large number of users accessing system functionality represented by use cases available to the actor.
  • Cloud “B” represents the NFRs related to the use case of the use case model. These NFRs are related to the use case by “ Use Case Association Point.” For example, associating fast response time NFR to withdraw fund use case of an automated teller machine (ATM) system would indicate that the system must complete the functionality described by the withdraw fund use case within an acceptable duration.
  • Cloud “C” represents the NFRs related to the actor-use case association of the use case model. These NFRs are related to this association by “Actor-Use Case Association (AU-A) Point.” For example, associating security NFR to an AU-A between customer and withdraw fund use case would indicate that withdraw fund must be secured, which also precisely implies that user interface to other AU-A is not required to be secured.
  • Finally, cloud “D” represents the NFRs related to the system boundary of the use case model. These NFRs are related to this boundary by “ System Boundary Association Point.” For example, associating portability NFR to the system boundary would intuitively specify that the NFR is global and that the system must be operational in multiple platforms, which globally affects every part of the system. These four NFRs association points are the authors’ proposed extensions to the UML use case model.

The book Non-functional Requirements: Modeling and Assessment ( Kassab 2009 ) provided also a summary of the other related work to incorporate NFRs against all types of UML 2.0 diagrams.

Supplemental Materials from the authors on Non-functional Requirements.

https://phil.laplante.io/requirements/NFR/supplements.php

Exercises

  1. For a common cinder block (a type of brick), list three different use cases/scenarios for it. For each of these scenarios, list three different NFRs—no NFR can be the same for any scenario so you must come up with nine different NFRs.
  2. Consider a bicycle that you intend to use for exercise. List five NFRs.
    1. Consider that the bicycle is going to be used by you to commute to your job site, about 5 miles away. Which (if any) of these NFRs change? List three new NFRs for this operational scenario.
    2. Now consider that the bicycle is actually designed to be used inside your home and connected via the Internet to an exercise system/network where you can work out with other connected people. Which (if any) of the previous NFRs change? List three new NFRs for this operational scenario.
  3. List five NFRs for an autonomous passenger automobile. How would these differ (if at all) for an autonomous delivery truck?

References

  1. Antón , A. (1997). Goal Identification and Refinement in the Specification of Information Systems , Ph.D. Thesis, Georgia Institute of Technology, Georgia, USA.
  2. Araujo , J., Moreira, A., Brito, I., & Rashid, A. (2002). Aspect-oriented requirements with UML. Workshop on Aspect-Oriented Modeling with UML (Held with UML 2002 , Dresden, Germany.
  3. Babcock , C. (1985, September). New Jersey Motorists in Software Jam. Computerworld , 30: 1–6.
  4. Barbacci, M. R., Robert E., Anthony J. L., Judith A. S., & Charles B. W. (2003). Quality attribute workshops (qaws) . CARNEGIE-MELLON UNIV PITTSBURGH PA SOFTWARE ENGINEERING INST.
  5. Bass , L., Clements, P., & Kazman, R. (2021). Software Architecture in Practice , 4th edition. Addison-Wesley Professional, Boston, MA, USA.
  6. Boehm , B., & In, H. (1996). Identifying quality-requirement conflicts. IEEE Software , IEEE Computer Society Press, pp. 25–35. Washington, D.C., United States.
  7. Boehm , B. W., Brown, J. R., & Lipow, M. (1976). Quantitative evaluation of software quality. In Proceeding of the 2nd International Conference on Software Engineering (pp. 592–605). IEEE Computer Society, San Francisco, CA, Long Branch, CA.
  8. Breitman , K. K., Leite J. C. S. P., & Finkelstein, A. (1999). The world’s stage: A survey on requirements engineering using a real-life case study. Journal of the Brazilian Computer Society , 1(6): 13–37.
  9. Chung , L., Nixon, B. A., Yu, E., & Mylopoulos, J. (2000). Nonfunctional Requirements in Software Engineering . Springer, Boston, MA.
  10. Davis , A. (1993). Software Requirements: Objects, Functions and States . Prentice Hall, Hoboken, New Jersey, United States.
  11. Fenton , N. E., & Pfleeger, S. L. (1997). Software Metrics: A Rigorous and Practical Approach . International Thomson Computer Press.
  12. Finkelstein , A., & Dowell, J. (1996). A comedy of errors: The London Ambulance Service case study. Proceedings of the 8th International Workshop Software Specifications and Design (pp. 2–5), Schloss Velen, Germany.
  13. Gilb, T. (2005). Competitive Engineering: A Handbook for Systems Engineering, Requirements Engineering, and Software Engineering Using Planguage. Elsevier.
  14. Grady , R. B. (1992). Practical Software Metrics for Project Management and Process Improvement . Prentice-Hall, Hoboken, New Jersey, United States.
  15. ISO 25000 STANDARDS. https://iso25000.com/index.php/en/iso-25000-standards
  16. Jacobson , I., Booch, G., & Rumbaugh, J. (1999). The Unified Software Development Process . Addison Wesley, Reading, MA.
  17. Kassab , M. (2009). Non-Functional Requirements: Modeling and Assessment . VDM Verlag, Germany.
  18. Kassab , M., Daneva, M., & Ormandjieva, O. (2007, August). Scope management of non-functional requirements. In 33rd EUROMICRO Conference on Software Engineering and Advanced Applications (EUROMICRO 2007) (pp. 409–417). IEEE, Lubeck, Germany.
  19. Kassab , M., DeFranco, J., & Laplante, P. (2020). A systematic literature review on Internet of things in education: Benefits and challenges. Journal of Computer Assisted Learning , 36(2): 115–127.
  20. Kassab , M., DeFranco, J., & Voas, J. (2018). Smarter education. IT Professional , 20(5): 20–24.
  21. Keller , S. E., Kahn, L. G., & Panara, R. B. (1990). Specifying software quality requirements with metrics. In R. H. Thayer & M. Dorfman (Eds.), System and Software Requirements Engineering (pp. 145–163). IEEE Computer Society Press, Washington, DC.
  22. Kotonya , G., & Sommerville, I. (1998). Requirements Engineering: Processes and Techniques . John Wiley & Sons, Hoboken, New Jersey, United States.
  23. Laplante , P. A., Kassab, M., Laplante, N. L., & Voas, J. M. (2017). Building caring healthcare systems in the Internet of Things. IEEE Systems Journal , 12(3): 3030–3037.
  24. Leffingwell , D., & Widrig, D. (2003). Managing Software Requirements: A Unified Approach . The Addison-Wesley Object Technology Series, Boston, Massachusetts, United States.
  25. Lyu , M. R. (1996). Handbook of Software Reliability Engineering . McGraw-Hill, New York, New York, United States.
  26. Moreira , A., Araujo, J., & Brito I. (2002). Crosscutting quality attributes for requirements engineering. In 14th International Conference on Software Engineering and Knowledge Engineering 2002 (pp. 167–174). Ischia, Italy.
  27. Mylopoulos , J., Chung, L., & Nixon, B. (1992). Representing and using nonfunctional requirements: A process oriented approach. IEEE Transactions in Software Engineering , 18(6): 483–497.
  28. Ncube , C. (2000). A Requirements Engineering Method for COTS-Based Systems Development , Ph.D. Thesis, City University, London.
  29. O‘Neil , F. (2015, July). Target data breach: Applying user-centered design principles to data breach notifications. In Proceedings of the 33rd Annual International Conference on the Design of Communication (pp. 1–8). Limerick, Ireland.
  30. Park , D., Kang, S., & Lee, J. (2004). Design phase analysis of software performance using aspect oriented programming. In 5th Aspect-Oriented Modeling Workshop in Conjunction with UML 2004 . Lisbon, Portugal.
  31. Robertson , S., & Robertson, J. (1999). Mastering the Requirements Process . Addison-Wesley Professional, Boston, Massachusetts, United States.
  32. Seffah , A., Desmarais, M., & Metzger, M. (2005). Human-Centered Software Engineering . Springer, Dordrecht, The Netherlands.
  33. Siemens Warns of Possible Hearing Damage in Some Cell Phones. (2004). http://www.consumeraffairs.com/news04/siemens_mobile.html , last visited on 04 August 2009.
  34. Standard Glossary of Software Engineering Terminology. (1990). IEEE Standard 610.12-1990 . DOI: 10.1109/IEEESTD.1990.101064 .
  35. Supakkul , S., & Chung, L. (2004). Integrating FRs and NFRs: A use case and goal driven approach. In Proceedings of the 2nd International Conference on Software Engineering Research, Management and Applications (SERA) (pp. 30–37). Los Angeles, CA.
  36. Weber , M., & Wesbrot, J. (2003). Requirements engineering in automotive development: Experiences and challenges. IEEE Software , 20(1): 16–24.
  37. Wiegers , K. (2003). Software Requirements , 2nd edition. Microsoft Press, Washington, USA.
  38. Wikipedia: Non-Functional Requirements . http://en.wikipedia.org/wiki/Non-functional_requirements (visited May 2021).
  39. Wikipedia: Requirements Analysis. http://en.wikipedia.org/wiki/Requirements_analysis (visited 05 July 2007).