Functional Interactions and Functional Architecture
Having identified the entities of internal function, we can move to Question 5c of Table 5.1 : “What is the functional architecture?” Answering this question requires understanding the relationships among the entities of function, which in Chapter 2 we calledwe shall call the interactions. This is the key step in analyzing architecture, because it is through the interaction of the internal functions that the externally delivered function emerges. The key idea is that the exchanged or shared operands are the functional interactions . The functions plus the functional interactions are the functional architecture.
A graphical OPM representation of the functional architecture of bread slice making is shown in Figure 5.12 . Comparing Figure 5.12 to Figure 5.10 reveals that additional input operands have been identified: flour, water, salt, and yeast. The inputs are consumed by the mixing process; after mixing they no longer exist as entities. Mixing produces dough that is consumed by baking, after which the dough no longer exists. Likewise, the bread is consumed by cutting, and slices are produced. The operands of flour, water, yeast, salt, dough, bread, and slices are the interactions between the processes , being destroyed or created by mixing, baking, and cutting. The processes now connect to more than one operand, and the operands connect the processes. The external value-related operand (slices) cross the system boundary. A matrix-like representation called the process-operand array can represent the same information ( Box 5.7 ).
Such a simple flow-through representation of interactions between processes is pleasing in its simplicity, and this kind of representation appears in many different types in engineering: pipe and flow software, control system block diagrams, SysML activity diagrams, and so on. In such simple flow-through systems, there is a unique operand that is created by the upstream process and destroyed by the downstream process, which constitutes the interaction.
Figure 5.12 Internal functions and functional architecture of bread slice making.
Figure 5.12 Full Alternative Text
Box 5.7 Methods: Creating the PO Array from OPM Diagrams
OPM diagrams of internal process and process-operand (PO) arrays enable us to visualize and analyze the internal functional architecture. Most people find it easier to sketch the OPM diagram and then convert it into a PO array, rather than trying to create the PO array from scratch. Both are useful representations, and each has a role to play in understanding systems. The procedure for translating an OPM diagram of internal function into a PO array is as follows:
-
Create an array in which the rows are processes and the columns are operands.
-
Isolate each process on the OPM diagram, and encode the connection between the process and connected operands in the row for the process, using the notation of Figure 5.2 and Figure 5.3 .
-
Operands that are created by the process go into the PO array with a prime (‘), and a notation (such as c’) is placed in the column for the operand. This prime becomes important later when we are tracking causality in the system.
-
Operands that are affected by the process (a), are destroyed by the process (d), or are instruments of the process (I) exist before the process and go into the PO array with no prime and with the appropriate notation placed in the column for the operand.
Identifying Functional Interactions
Having worked through the sliced bread case, we can now generalize the procedure for identifying the functional interactions.
-
Start with the diagram of the internal functions, which must include the value-related operand.
-
Identify processes that are obviously missing from the diagram, such as inputting and outputting processes.
-
Identify any operands that are obviously missing from the diagram of internal processes, such as inputs.
-
For each process, ask whether there any other operands that are needed for the function to be completely represented.
-
For each operand, ask what other processes it interacts with.
-
Trace the path from the value-related output, considering whether the desired emergence is likely to occur based on the processes and operands represented.
Figure 5.13 shows an OPM diagram of the internal functions of the pump, fit into a simple flow-through pattern, in which each process destroys an operand and creates another. We can apply the procedure to derive this diagram. We start with only the “create” information in Table 5.4 , which identifies two internal functions (accelerating and diffusing), and of course we have the value-related operand (external high-pressure flow). There must also be an inflowing process and an outflowing process, as well as an external low-pressure flow. Between the processes of inflowing and accelerating, there must be an internal operand labeled internal low-pressure flow. With all the operands present, we connect the operands to processes as shown. We can now identify the interactions between the processes. For example, the interaction between the inflowing and accelerating processes is the exchange of the internal low-pressure flow operand.
Figure 5.13 Internal functions and functional architecture for the pump.
Figure 5.13 Full Alternative Text
The interpretation of the abstractions for the internal functions of a system is not unique, unlike decomposition of form, which is more tangible and therefore definite. There are often several equally valid ways to define the internal processes and operands. The real question centers on whether emergence is easily understood and predicted.
For example, Figure 5.13 gives the impression of the pump as a simple flow-through system. But we recognize that the water is not really destroyed by a process, and new water is not really created. What really happens is that the state of the water changes. Figure 5.14 captures this alternative representation, showing that the internal flow has two important attributes: pressure and velocity. The accelerating process changes the velocity (from low to high), and the diffusing process changes both the velocity (from high to low) and the pressure (from low to high). Such a representation of state change loses the sense of simple flow-through but more accurately captures the physics.
Figure 5.14 Internal functions and functional architecture: Alternative representation.
Figure 5.14 Full Alternative Text
The PO array that is the equivalent of Figure 5.14 is shown in Table 5.5 . Now the operands at the top of the array explicitly show the states. The “a” under “velocity state” implies that the accelerating process affects (hence “a”) the velocity state.
Table 5.5 | The process-operand (PO) array of the pump, made up of internal processes and operands, as well as interface operands, for the alternative representation with the state of the internal operands explicitly shown (c’ means create, d means destroy, a means affect)
| Process List | Internal flow | External low pressure flow | External high pressure flow |
|---|
| Internal flow existence | Velocity state | Pressure state |
|---|
| Inflowing A | c' | | | d | | | Accelerating B | a | | | | | Diffusing C | | a | a | | | | Outflowing D | d | | | | c' |
The Value Pathway
The exchanges of operands are the interactions among the processes, and the combination of the operands and internal processes is the functional architecture . One of the main features of the functional architecture is the value pathway along which value develops (Question 5c). It is along this pathway that benefit and ultimately value develop. It often starts with some input (low-pressure water, perhaps, or an unsorted array) and progressively moves through internal operands and processes until it reaches the value-related output. Figure 5.12 , Figure 5.13 , and Figure 5.14 show such internal value pathways. Note that in flow-though functional architectures, the value pathway is often readily evident, whereas in other types of architecture, more careful reasoning may be necessary to spot it.
One might ask, “What is not on the value pathway?” There are several classes of operands, processes, and objects of form that are not on the value pathway. In Figure 5.15 , an elaboration of the bread slicing system, the value pathway starts with dough and ends with slices, as shown by the lines.
Figure 5.15 Entities not on a value pathway for bread slicing making.
Figure 5.15 Full Alternative Text
Things not on the value pathway include
-
Entities of form, because form is not part of functional architecture and only provides an instrumental role to the processes (the oven and slicer), discussed in Chapter 4 .
-
Processes and operands that support secondary externally delivered functions (frying and fried dough), discussed in Section 5.6 .
-
Processes and operands that don’t contribute to the emergence of any desired externally delivered function. These are sometimes outcomes of unwanted side-effects, of poor design (growing mold), or of legacy, and they contribute to gratuitous complexity, as will be discussed in Chapter 13 .
-
Supporting processes and form. These are even further from the value pathway (the powering process enabled by the kitchen), discussed in Chapter 6 .
Emergence and Zooming
Knowing the internal value pathway is a key step in effectively predicting emergence using any of the approaches discussed in Section 2.6 . Figure 5.16 suggests the emergence of function of the pump. The pre-process operand is the low-pressure water, and the post-process value-related operand is the high-pressure water. In the view on the left, all of the internal operands are shown connecting to their associated internal processes. The right side of Figure 5.16 shows the pressurizing process emerging, with the internal processes suppressed and the internal and external operands simply attached to the emergent process.
Just like entities of form, process also has a whole–part relationship. The emergence of a system is the “smaller to larger” whole–part relationship. Zooming is the “larger to smaller” relationship. If we read Figure 5.16 from right to left, we see how the pressurizing process is zoomed. In zooming, we must identify not only the internal processes themselves but also how the external and internal operands interact with those processes.
Figure 5.16 Emergence and zooming of process.
Figure 5.16 Full Alternative Text
A final approach to analyzing the functional architecture and predicting emergence is to project the functional architecture onto only the processes. This makes the way we view the operands as interactions more implicit. For simple flow-through systems, this can sometimes be done by inspection, but for more general systems it is best to apply the methodology of Box 5.8 .
Figure 5.17 is an OPM showing the projection of the pump onto the processes. The method of Box 5.8 has been used, and the outcome has been converted back into an OPM diagram. Now the arrows between processes are open-headed (as they were in Chapter 4 ) and are labeled with the operand that links the processes. But these links now represent interactions among functions, not structure of form.
Figure 5.17 Projection of operands onto processes for the pump.
Figure 5.17 Full Alternative Text
Box 5.8 Methods: Projecting Operands onto Processes
One of the advantages of matrix-like representations is that it is possible to compute on them. For example, the DSM community has created algorithms to sort and band the DSM. [3] Here we will introduce the ideas that the DSM can be broken into arrays and that projection operators can be developed.
The first step in this projection is to create the DSM:
P P P O O P O O
That is, the array is broken into four blocks, with the process-process (PP) block in the upper left and the operand-operand (OO) block in the lower right. The PP array is diagonal and simply contains an identifier for each process on the diagonal. Likewise, the OO array is diagonal with identifiers for each operand.
The process-operand (PO) array has been developed ( Box 5.7 ). The operand-process (OP) array is created by the following rules, as shown in Figure 5.18 :
-
Form the transpose of the PO array.
-
Remove the primes from the create operator (c).
-
Add primes to the destroy operator (d’).
-
Leave the affect (a) and instrument (I) operators the same.
Figure 5.18 DSM notation for operand objects interacting with a single process.
Figure 5.18 Full Alternative Text
Then form the array PPoperand = P P × O O × O P by symbolic matrix multiplication. This will create a projection of the operands onto the processes.
This will produce a nearly symmetric PP operand matrix, which indicates no causality. If you are interested in causality (for example, in what precedes and causes what), simply set to zero any term with a prime (‘) in it. This will leave a causal matrix that is not symmetric and can be interpreted by the normal DSM convention that an entry suggests flow from the column heading to the row heading.
Functional Architecture in Software Systems
In principle, the functional architecture of software systems can be represented in the same way as any general system. Software engineers are comfortable with the functional domain, and they implement code (the form) only because it meets the demands of function. In practice, however, information systems are dynamic in structure and behavior and are therefore challenging to conceive as static architectures.
In software, the functions (as we define them) are of two types. There are computational statements (A = B + C), but there are also functions (as we define them) that dynamically allocate control (if . . . , then . . .). If there are functions, there must be operands: explicit variables used for computation, and more implicit control tokens used for control functions. The interactions produce the data interaction and control interactions among processes, respectively.
We can reverse-engineer bubblesort to show the functional architecture ( Figure 5.19 ). As suggested by the procedure, we start with the internal processes and operands identified in Figure 5.11 . This includes the value-related operand, which is the array in the final sorted state.
We then identify missing processes: only importing and exporting, as well as operands that are missing, which include the internal variable called “array length,” and the external operands: the external unsorted array, the external length of the array, and the external sorted array, which is delivered across the system boundary to create benefit. We can then trace the pathway from the external operands, through importing, looping, testing, and exchanging to exporting. This defines the functional architecture.
Some new features appear in the functional architecture. The operand for internal array length is not destroyed by the looping (I) or looping (J) processes, but rather becomes an instrument of looping. In general, operands that are created during operation can later become instruments. We also see the first appearance of a decomposition of an operand into its parts. In any given exchange, only two elements of the array are affected, not the entire array.
This analysis also reveals another new issue: There must be an operand that originates in the testing process, which otherwise has only instruments attached to it. The missing operand is part of the command flow of the routine. Figure 5.19 suggests that a control token created by the testing process is used by the exchanging process to decide whether to exchange the two array elements. Now that we have introduced the idea of a control token, we realize that the two looping processes must also create such tokens, in addition to their more explicit roll of incrementing the I or J variables. Figure 5.19 shows the J looping process creating a token that passes control to either testing or I looping. I looping passes control to either J looping or exporting.
Figure 5.19 Functional architecture of bubblesort with command operands.
Figure 5.19 Full Alternative Text
This example reveals the nature of the command interactions that exist in software, in parallel with the data interactions. In general, information systems of all kinds have some equivalent parallelism between control and data interactions.
In summary:
-
The entities of internal function, the internal processes, and the interactions of operands among processes establish the functional architecture. Representation of internal function is not unique and can depend both on interpretation and on the style of representation.
-
In general, the functional architecture will contain a value pathway of internal operands and processes along which the value-related external function emerges. We zoom the external function to identify the internal processes and operands.
-
Diagrams and tables showing functional interactions can be simplified using projections, in which interactions between processes are indicated by shared operands.