您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

258 行
23KB

  1. %&tex
  2. \chapter{Design Method Evaluation}
  3. \label{chap:reflection}
  4. This chapter evaluates the design method as described in \autoref{chap:analysis}.
  5. The first section is about the system complexity of \ac{cps}.
  6. The second section evaluates the elements of a feature.
  7. The third section discusses the difference between model and design.
  8. The preparation phase and the \ac{ridm} are discussed in the last two sections.
  9. \section{System Complexity}
  10. \autoref{sec:time_investment} explains the time resources required for the development of the software in the system.
  11. Even though the focus was creating a hardware focussed solution for the "Tweet on a whiteboard", the complexity of the software required for this system was underestimated.
  12. \textcite{royce_managing_1970} also acknowledges this difference in complexity for soft and hardware.
  13. He expects 50 pages of software documentation for each page of hardware documentation in projects with comparable budget.
  14. Although the focus was on complex hardware solution, this solution was only possible with the use of software.
  15. The interaction between the \ac{scara} and \ac{cdc} is only possible with software that can switch states.
  16. Furthermore, the path planning that writes characters on the board is completely dependent on software as well.
  17. \textcite{sheard_718_1998} discusses that pure-hardware solution are relatively simple in their problem space perspective.
  18. However, the hardware solution is often complex in the solution space perspective
  19. And indeed, during the initial design in the case study, the choice was made for the most complex hardware solution.
  20. Even though the hardware is more complex, without software, the \ac{scara} and \ac{cdc} have no functionality.
  21. Another point on system complexity is prototyping.
  22. Because hardware tends to be relatively simple, building a hardware prototype such as the \ac{scara} is cheap and quick.
  23. An initial hardware prototype is easily constructed with \ac{ots} readily available.
  24. Because the hardware transfers power the interfacing between components is trivial.
  25. For example, linear actuation can be achieved with a rack and pinion construction, linear motor, gear and chain link, or a connecting rod.
  26. This might not be part of the final product, but it is useful to investigate the feasibility of the project.
  27. Furthermore, the changes are also easily made to hardware.
  28. It is possible to weld or glue on new parts or remove them with the angle grinder.
  29. Adding components to software is tedious and can lead to unwanted behavior.
  30. However, this is difficult to test because the software is more complex.
  31. Moreover, unwanted behavior of the hardware is discoverable, and when it breaks it is often destructive.
  32. The software can run for multiple days before crashing, as a result of integer, stack or buffer overflows for example.
  33. As long as the development is still in progress, one hardware prototype is more malleable than the software in terms of resources.
  34. However, when the designed system is put into production, changing multiple hardware systems becomes economically unviable.
  35. A design method for \ac{cps} must acknowledge that the inherent complexity of software comes with a high \emph{cost of change} and a high \emph{chance of failure}.
  36. Additionally, the design method must use the hardware prototype low \emph{cost of change} to its advantage.
  37. \section{Elements of a Feature}
  38. The design plan as described in \autoref{chap:analysis} improves the feature definition by adding more structure.
  39. The goal of this extra structure was to make a design from scratch possible.
  40. A distinction was made between functional features and component features.
  41. The functional features are obtained by splitting the functionality of the system, which are then organized in a hierarchical tree.
  42. The hardware, which provides a platform for the functionality, is split into component features.
  43. These component features form the bottom layer of the hierarchical tree.
  44. Still, the current approach does not provide sufficient structure to define the features of the system effectively.
  45. The evaluation of the feature definition (\autoref{sec:case_featuredefinition_evaluation}) points out that it does not provide any structure for components.
  46. It is currently not possible to define sub-components for components.
  47. Furthermore, making connections between a task or mission and a (sub-)component would make the hierarchical structure unclear.
  48. Another point is that the current approach creates a set of requirements and a set of features.
  49. The original plan was to distribute the requirements along the features.
  50. However, this was more complex than expected and ended up in the background.
  51. A more suitable approach for the definition of features is a \ac{se} process that is known as functional decomposition.
  52. \textcite{kordon_model-based_2007} describes this process as a method for structured decomposition of the functionality of a system.
  53. Instead of one hierarchical structure that contains functions and components, the process results in three separate hierarchical structures.
  54. Each of these structures describe the elements and sub-elements for functionality, physical components and system requirements separately.
  55. Between the elements in these structures are connections created that describe the relationships.
  56. These relationships describe the link between functions, components and the rationale for requirements.
  57. % Deze structuur als resultaat van de functional decomposition heeft een aantal belangrijke voordelen.
  58. % Het design plan in deze thesis behandeld features of als component of als functie.
  59. % Zoals beschreven in de vorige paragraaf wordt de functionaliteit van hardware vaak gedefinieerd met software.
  60. % Enkel een component of functie implementeren levert niet een functionerende of testbare feature op.
  61. % Door op basis van de relatie tussen de elementen een functie, component en requirement samen te nemen wordt een testbare feature gevormd.
  62. \begin{figure}
  63. \centering
  64. \includegraphics[width=89mm]{graphics/functional_relation.pdf}
  65. \caption{Relations and elements within a feature. \autocite{kordon_model-based_2007}}
  66. \label{fig:functional_relation}
  67. \end{figure}
  68. Using the structure provided by functional decomposition has a couple of advantages.
  69. The current design plan as described in this thesis, considers the feature as a component or a function.
  70. As explained in the previous section, the hardware gets its function from the software.
  71. Implementing an individual function or component does not deliver a testable feature.
  72. With this new approach, a feature can be formed by grouping the elements that are connected via the defined relationships (\autoref{fig:functional_relation}).
  73. This feature describes a function that is performed by a component.
  74. Furthermore, the requirement specifies both the function and component, and the requirement defines the test of the feature.
  75. % In tegenstelling tot dit design plan splits de functional decomposition het systeem over meerdere iteraties.
  76. % Dit voorkomt dat eerst alle requirements vastgelegd worden om later nog eens alle functionaliteit op te splitsen.
  77. % In de case study werd tijdens het opsplitsen van de functionaliteit duidelijk dat er requirements gemist waren.
  78. % En later ook nog dat bij het splitsen van de functionaliteit geen order of operation was gespecificeerd.
  79. Contrary to the design plan in this thesis, the \ac{se} process decomposes the functionality of the system over multiple iterations.
  80. This is a significant improvement compared to the current approach, in which all requirements were determined before any features was defined.
  81. The feature definition during the case study, showed that specific requirements were overlooked.
  82. Later, while defining the test protocol, it became clear that no order of operation was specified.
  83. % Functional decomposition of een ander gelijkwaardig SE process verbeterd niet alleen de feature definition, maar de preparation phase in het geheel.
  84. % Het beschrijft een beproefd process dat van een problem description een degelijke featureset kan opzetten.
  85. Functional decomposition, or a similar \ac{se} process, would not only improve the feature definition step, but the preparation phase as a whole.
  86. Future implementations of the \ac{ridm} must consider such a process, as it provides a structured method to develop a solution for a problem.
  87. Whereby the solution is split in to a elaborate set of features.
  88. % Over the course of this study, the definition of a feature evolved into requirements, components and functions.
  89. % As explained in the background chapter, having an approach to determine requirements is a crucial concept of a design process.
  90. % Because \ac{ridm} did not include such an approach, a \ac{se} approach was added.
  91. % The aim of the \ac{se} approach is to deliver a set of features to be used in the \ac{ridm}.
  92. % To be more specific, the set of features was expected to be the result of the feature definition step.
  93. % Contrary to that expectation, multiple attempts for this step did not produce a satisfactory definition of features.
  94. % As explained in \autoref{sec:case_featuredefinition}, there was a clear discrepancy between the expected and resulting features.
  95. % It was expected to get features in the form of components that developed during the design process.
  96. % However, the resulting features came off as functions of the system.
  97. % In the end, a solution was found in the RobMoSys approach.
  98. % Even though the RobMoSys approach was too comprehensive for this case study, it provided the basis for the split between functions and components.
  99. % Furthermore, it resulted in the hierarchical structure of functions and sub-functions as shown in \autoref{fig:robmosys}.
  100. %
  101. %
  102. % Creating a hierarchy for the functions and a separate set of components allowed for the continuation of the case study.
  103. % There were still a number of challenges with this approach.
  104. % For example, it was almost impossible to divide the requirements between components and functions.
  105. % Furthermore, the role of electronics did not fit in the current approach either.
  106. % In reviewing the literature, the approach used in this case study shows clear resemblances with \ac{mbed} \autocite{kordon_model-based_2007}.
  107. % \ac{mbed} introduces explicit relations between the requirements, components and functions, as shown in \autoref{fig:functional_relation}.
  108. % Additionally, the paper includes a layout for the hierarchy of requirements, functions and components.
  109. % Based on this, the approach by \textcite{kordon_model-based_2007} further supports the idea of dividing features into requirements or requirements, functions, and components.
  110. %
  111. % What is interesting about this new insight is that it helps to understand the difference with the case study performed by \textcite{broenink_rapid_2019}.
  112. % The hardware components used by Broenink and Broenink was a mini-segway, which was designed to be used in a under-graduate practical.
  113. % The requirement for this mini-segway to be able to balance, drive and steer, is inherited directly from the student project.
  114. % Causing the requirements and components to be implicitly defined in their case study.
  115. % Therefore, the function that needs to be implemented, fits very well within the definition of a feature.
  116. \section{Model and Design Relation}
  117. \label{sec:evaluation_model_and_design}
  118. The \ac{ridm} as well as the design method in this study do not make an explicit distinction between the model and the design.
  119. This implicitly resulted in a model that represents the complete design.
  120. Over the course of the development the complexity of the design increased, resulting in more complex modelling as well.
  121. The model used in the case study was first implemented as a kinematics model, and as the design became more complex it was represented with 2D and 3D physics, and a CAD drawing.
  122. There are two issues with this approach:
  123. first, that the approach does not comply with the general model properties;
  124. second, the parameters of the design are represented by multiple models.
  125. \subsection{Model properties}
  126. According to \textcite{stachowiak_allgemeine_1973}, three general properties apply for a model:
  127. first is that the model is always representative to its original;
  128. second, the model must only include attributes of its original that are relevant to the respective developer or user;
  129. and third, the model must be pragmatic to the original, meaning that models are an adaptation of the original with respect to a specific purpose.
  130. The first property applies to the model because the model represents the full design, and is therefore always representative.
  131. However, because the model represents the full design, it violates the second and the third property.
  132. The models used in the case study include all attributes of the design and it lacks a specific purpose.
  133. Consequently, the models become overly complex.
  134. Especially for larger designs the model complexity drastically decreases simulation speed for dynamic systems.
  135. But it also complicates finding bugs in the model.
  136. \subsection{Design Parameters}
  137. The design of the \ac{scara} is currently represented by two types of models: a dynamics model and a CAD drawing.
  138. Both these modelling types have different purposes and represent different aspects and parameters of the design.
  139. However, both models share parameters of the design as well.
  140. For the \ac{scara} design, the dynamics represent mostly the motor and controller behavoir.
  141. The CAD drawing represents the shape of the components.
  142. But the kinematics play an important role for both models.
  143. A direct result from this is that it increases the \emph{cost of change}.
  144. When the design changes, the changes must be applied for both models, increasing the amount of work.
  145. This distribution of design parameters has more disadvantages, as copying the parameters between different models is error-prone and labor-intensive.
  146. The case study in this thesis is small, but did already involve 8 different models spread over 4 different modelling approaches.
  147. For larger design projects, it is almost given that copying of parameters would result in problems with the design process.
  148. Having design parameters distributed across different models is, without any doubt, undesired.
  149. \subsection{Structured design and models}
  150. To solve these problems, the design method must have a strategy for organizing the design and the corresponding models.
  151. This consist of a centralized design, which is validated with the use of models.
  152. Important is that every model inherits from the design.
  153. The three general properties must apply to every model made.
  154. Instead of creating a model of the complete design, only small parts of the design are modelled.
  155. Additionally, a method to organize all design parameters reduces the \emph{cost of change}.
  156. The goal is that all the models automatically use the design parameters from a centralized location.
  157. Any changes to the design are made at that centralized location, each model can than be tested automatically with the updated parameters.
  158. This eliminates copying of parameters and allows for automated testing.
  159. It removes the human factor and produces direct feedback about the design change.
  160. \section{Preparation Phase}
  161. Initially adding a preparation phase to the \ac{ridm} was not within the scope of the thesis.
  162. Causing me to underestimate the role that the preparation phase had for the \ac{ridm}.
  163. In hindsight it is clear that the preparation phase is crucial for the design process, and thus also for the evaluation of \ac{ridm}.
  164. The linear set of steps were chosen as it was trivial to put those in front of the \ac{ridm}.
  165. However, the linear set of steps proved to be inapt for the development of complex \ac{cps}.
  166. Without a concrete approach\footnote{Here, I specifically use the term approach because preparation phase implies that it must be a phase prior to the \ac{ridm}.} to get from a \emph{problem} to a functional design with features, the \ac{ridm} is unsuitable for the development of \ac{cps}.
  167. Describing such an approach is far outside of the scope of this thesis.
  168. Nonetheless, several \ac{se} processes offer a possible solution, such as functional decomposition, state analysis \autocite{ingham_engineering_2005} or spiral model \autocite{boehm_spiral_1988}.
  169. Furthermore, the advantages of modern techniques of rapid prototyping should also be considered to aid the design process.
  170. A possible candidate for the approach is to use a spiral model as basis and apply the techniques of \ac{ridm}, rapid prototyping and functional decomposition in that basis.
  171. Another option is to extend the development cycle of \ac{ridm} with functional decomposition and rapid prototyping.
  172. Further research is required to determine the optimal approach for the \ac{ridm}.
  173. This research should use data and experience from existing design projects.
  174. Above all, the design of such an approach needs direct involvement of experienced systems engineers.
  175. \section{Rapid Iterative Design Method}
  176. This chapter began by a breakdown of the elements of a feature, argued the importance of distinction between design and model, and explained the need for an integrated preparation phase.
  177. The commonality between these three issues is that they all stem from the rapid development cycle, which was introduced in \autoref{sec:background_rdc} as part of the \ac{ridm}.
  178. It is apparent that the current implementation of the rapid development cycle is not suited for the design of a cyber-physical system.
  179. Further studies, which take these issues into account, should be undertaken.
  180. Even though, these issues have a large impact on the overall performance, they must not overshadow the rest of the design method.
  181. The feature selection step and variable-detail approach did show a positive contribution to the design method.
  182. The following sections discuss their performance and what potential impact an improved rapid development cycle introduces.
  183. \subsection{Feature Selection}
  184. The goal of the rapid development is to process a list of features into a competent model.
  185. In this case, the list of features was produced in the preparation phase.
  186. The features are then, one by one, implemented according to the variable-detail approach.
  187. To determine the order of feature implementation, I specified a feature selection protocol, which is explained in \autoref{sec:feature_selection}.
  188. Based on this case study, the feature selection is a suitable addition to the design method.
  189. Especially for the failed feature implementation as described in \autoref{sec:case_development_cycle_1}.
  190. Would the \ac{scara} have been implemented first, a failure in the end-effector might result in a required redesign of the \ac{scara} feature.
  191. However, with only two uses during this case study, caution must be applied.
  192. Of the criteria used in the selection, the \ac{cof}-time factor and the dependees are, in my opinion, most relevant.
  193. The dependees is a hard criterium: if there are any features that it depends on, but not yet implemented, it cannot be selected.
  194. Otherwise the feature would be implemented before the required information is available.
  195. As explained in \autoref{sec:case_development_cycle_1}, the feature selection approach aims to clear the largest amount \ac{cof} in the smallest amount of time possible.
  196. However, between the dependees and the \ac{cof}-time factor, there is a criterium for the number of tests, which could hinder this approach.
  197. The current approach would result in the situation where a feature with lots of easy-to-pass tests, is implemented before a features with less, but more difficult tests.
  198. It is then possible to spend a lot of time on something that is very likely to pass anyway.
  199. This does not alter the fact that to complete the design all tests have to pass.
  200. That all test have to pass is also the reason for this criterium in the first place: give priority to the feature that passes the most tests on completion.
  201. Even though it is difficult to draw concrete conclusions about the feature selection, a recommendation is to use the number of tests and the change of failure for each test as a metric to calculate the \ac{cof}-time value.
  202. In addition, other metrics and approaches that can improve the \ac{cof}-time calculation are: number of dependees, the number of tests of those dependees, and planning poker.
  203. Further work is required to establish which metrics are most suitable to calculate the \ac{cof} values.
  204. \subsection{Variable-Detail Approach}
  205. The variable-detail approach is a very practical development tool.
  206. A note of caution is due here since the variable-detail approach has not been used to its full potential.
  207. The goal was to add detail to a feature in strictly defined steps.
  208. Between each step the tests are applied to the updated model.
  209. Based on the test, the development continues or the model is rolled back to an earlier version.
  210. In addition, the models, independent of the level of detail, can be reused in other models.
  211. However, multiple difficulties were encountered during the case study that hindered the variable-detail approach.
  212. As was mentioned in \autoref{sec:evaluation_reflection_development}, the lack of good version control made it difficult to work with multiple versions of a model.
  213. This made it difficult to switch or revert to other levels of detail.
  214. However, the greatest difficulty is due to the model representing the design, as discussed in \autoref{sec:evaluation_model_and_design}.
  215. Because the design contains a high level of detail and the model is a full representation of the design, it is difficult to make a simple implementation or to switch back.
  216. This strong relation between the model and the design, also caused the complete model to be switched to a different representation.
  217. Even though the variable-detail approach did not perform as planned, I expect this approach to be a very strong part of the design method, given that a solution is found to the problems described above.