Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

271 wiersze
18KB

  1. %&tex
  2. \chapter{System Design Method}
  3. \label{chap:systemdesign}
  4. \section{Introduction}
  5. This chapter explains the design method that will be used.
  6. The design method is build around the rapid-development methodology by \textcite{broenink_rapid_2019}.
  7. The rapid-development methodology consists of a structured way of implementing features consecutively.
  8. %proposes a methodology where features are implemented consecutively.
  9. The goal of the preparation phase is a list of feature definitions that are ready for implementation.
  10. However, it is expected that some features are not ready for implementation initially.
  11. Implementing the features that are ready, will generate more information about the design direction.
  12. Therefore, the feature definitions will be reviewed during the development, each time the implementation of a feature is completed.
  13. During the review, feature definitions are updated with the additional gained information until ready for implementation.
  14. \autoref{fig:flowgraph} shows the different steps in the design flow.
  15. In this chapter the different steps are explained except for the feature implementation step, which is covered in the next chapter.
  16. \autoref{sec:preparation} explains the problem definition, system requirements and initial design.
  17. In \autoref{sec:featuredefinition} the feature definition step is explained.
  18. Then the system testing is introduced, followed by feature selection, as the test-cases will influence the feature selection.
  19. \rrot{This figure needs to be improved}
  20. \rroit{Needs the list which is also visible in the evaluation plan in projectplan section 4.1}
  21. \begin{figure}
  22. \includegraphics{graphics/flowgraph.png}
  23. \caption{Flow graph for the design steps. After a successful system testing the feature is completed and specifications are updated. Then the next feature is selected and implemented.}
  24. \label{fig:flowgraph}
  25. \end{figure}
  26. \section{Preliminary Design}
  27. \label{sec:preparation}
  28. The preliminary design is the first step of this design method.
  29. The steps in the preliminary design are expected to only be executed once.
  30. However, any mistakes made, could require a review of one or more steps of the preliminary design.
  31. \subsection{Problem definition}
  32. \rrot{Explain why, what and how for this problem}
  33. The first step of the design cycle is to describe the problem that has to be solved.
  34. A clear and concise problem definition increases a successful design process.
  35. It gives a better basis for the system requirements.
  36. Therefore, lowering the number of reviews required for the system requirements.
  37. Furthermore, good definitions help determining overall feasibility of the project in an early stage.
  38. \subsection{System Requirements}
  39. The system requirements are derived from the problem definition.
  40. As the features will be derived from these system requirements, the goal is to define the requirements without any ambiguity, vagueness or complexity.
  41. The requirements will be written according to \ac{ears} \autocite{mavin_easy_2009}.
  42. \ac{ears} was chosen for this design method due to its simplicity, which is is deemed suitable for the scope of this research.
  43. If issues, like ambiguity, are not dealt with correctly, these issues can propagate into the sub-requirements that will be defined for each feature.
  44. Solving these issues in a later stage of the design could require a redesign of features that were already completed.
  45. \subsection{Initial Design}
  46. At the start of a development the final solution for the problem is unknown.
  47. It is important to explore the different solutions and design space.
  48. The goal of this initial design is to create an overview of these possibilities.
  49. Due to the scope of this research, the choice of design solutions is made for a design that is expected to fit this research, instead of determining the optimal solution.
  50. However, in an actual design case, this step is crucial and can even be extended.
  51. A problem can be solved with more than one design.
  52. It is expected that these design solutions contain identical features.
  53. For example, take a cube that has to be moved.
  54. Each design has a grab feature that picks up the cube.
  55. Instead of choosing a specific initial design, we could start by implementing the grab-feature.
  56. If the grab feature proofs to be infeasible, we know that we have to choose a different design.
  57. Would the grabber be a success, then the feature is already implemented for the designs that use it.
  58. This can reduce the risk during the design by implementing features first that have overlap in other design solutions.
  59. First of all, it can help select a suitable design solution.
  60. If a initial design fails in a later stage, switching to a different design can be cheaper as some features are transferable.
  61. \section{Features Definition}
  62. \label{sec:featuredefinition}
  63. The characteristics of the system under design are the system features, which will be implemented into the model.
  64. To implement the features one by one it is important that all the features are defined prior to the design cycle.
  65. A subset of the system requirements will be assigned to the feature and will be referred to as the feature requirements.
  66. The best division of requirements varies strongly with the domain of the system.
  67. Therefore, the best engineering judgment of the developer is needed to divide the requirements.
  68. The sum of the feature requirements cannot exceed the overall system requirements.
  69. However, during the design phase it is possible to change the requirement division between features.
  70. It is expected that the division will be updated multiple times during the development.
  71. To efficiently change the division during the development without mistakes, good administration is key.
  72. \autoref{tab:subreq} shows an example to create overview.
  73. Each row contains one requirement.
  74. If a requirement is updated, the division can directly be reviewed.
  75. Would a feature change, then only one column has to be reviewed.
  76. However, the final organization of the different feature requirements is more complex than this example.
  77. Partially because not all requirements can be split up in simple numbers.
  78. \begin{table}[]
  79. \caption{System requirements and the division of these requirements for features.}
  80. \label{tab:subreq}
  81. \begin{tabular}{ll|lll}
  82. & System & Feature 1 & Feature 2 & Feature 3 \\ \hline
  83. \multicolumn{1}{l|}{Weight} & 3 kg & 1 kg & 1.2 kg & 0.5 kg \\
  84. \multicolumn{1}{l|}{Power} & 100 W & 25 W & - & 60 W
  85. \end{tabular}
  86. \end{table}
  87. \subsection{Dependencies}
  88. \label{sec:feature_dependencies}
  89. Different features combined represent the complete system under design.
  90. How these features interact with each other is depending on the system design.
  91. For example, take a robot system that has to grab something.
  92. Looking at the two core features of the robot arm that moves, and the gripper that grabs.
  93. The specifications of the gripper could depend on the robot arm, as the gripper has to be compatible with the robot arm.
  94. However, this also applies the other way around.
  95. We could also specify a robot arm that is compatible with the developed gripper
  96. To ensure that the features are compatible with each other, the developer has to specify the dependency of the features.
  97. Especially in what direction the dependency should apply.
  98. Including extra system specifications to the robot arm example can result in a different dependency direction.
  99. If the specification is to lift an object with specific mass, the robot arm becomes dependent on the gripper.
  100. Because the robot arm has to be able to lift the mass of the gripper and object combined.
  101. If the specification would be a confined working area, the size of the robot arm is the leading factor.
  102. Which limits the remaining weight or size specifications for the gripper.
  103. If both specifications would apply, the developer has determine the dependency direction carefully.
  104. It is possible that the weight specification and space limitation combined lower the feasibility of the project.
  105. The developer should choose a direction which can determine the feasibility as early as possible.
  106. This example used only two features.
  107. However, it is certain that the actual development contains more than two.
  108. \autoref{fig:featuredependency} shows an example of a dependency graph with five features.
  109. It can be seen that features 2, 3 and 4 are depending on feature 1.
  110. Where 4 is also depending on 3.
  111. \begin{marginfigure}
  112. \begin{tikzpicture}
  113. [node distance=5mm,feature/.style={rectangle,draw}]
  114. \node at (0,0) [feature] (F1) {Feat. 1};
  115. \node (F2) [feature,right=of F1] {Feat. 2};
  116. \node (F3) [feature,below=of F2] {Feat. 3};
  117. \node (F4) [feature,right=of F3] {Feat. 4};
  118. \node (F5) [feature,below=of F1] {Feat. 5};
  119. \path (F1) edge[->] (F2)
  120. (F1.east) edge[->] (F3.west)
  121. (F3) edge[->] (F4);
  122. \end{tikzpicture}
  123. \caption{Simple dependency graph for features.}
  124. \label{fig:featuredependency}
  125. \end{marginfigure}
  126. A crucial task in the design cycle is updating the feature specification accordingly with the dependency.
  127. At the point that the gripper is finished, the specifications of the robot arm can be updated.
  128. Not only does it improve the specification, it can also help in determining the feasibility.
  129. In this chapter we also introduce the method which selects the next to implement feature.
  130. This method does rely on the feasibility and dependency of features, making the update even more important.
  131. \section{System Testing}
  132. \label{sec:systemtesting}
  133. The system and features are tested during each iteration against the system requirements.
  134. This is to make sure that the design still performs as expected.
  135. During the preliminary design phase of the development the system tests are defined.
  136. The system test are derived from the system requirements and cover the global performance.
  137. However, at this point there is no model yet to test against.
  138. During the design cycle these test cases will become valid as more behavior of the system model is implemented.
  139. For each test it is assessed what features are required to complete the test.
  140. %Although an automatic testing method is presented by \autocite{broenink_tooling_2020}, the testing will performed manually.
  141. %The tooling is still experimental and yet suited for use in a design method.
  142. The tests that will be done cover the physical part of the system.
  143. These tests will be performed manually as tooling for automated testing is still in the experimental phase.
  144. \rrot{@Tim, I like to cite the paper on AMT but that one is not yet published?}
  145. However, a design of a cyber-physical system is guaranteed to contain software.
  146. As the focus of this Thesis is on hardware design, the software testing will not be part during this research.
  147. \section{Feature Selection}
  148. \label{sec:feature_selection}
  149. This section explains the selection criteria which determines the next feature that will be implemented.
  150. During the development it is expected that problems and issue occur.
  151. The consequences of these issues are that a system requires a (partial) redesign.
  152. Worse, the problem cannot be solved and the development is cancelled.
  153. The selection method is designed to reduce the risk of these issues during the development.
  154. \subsection{Dependency}
  155. \autoref{sec:feature_dependencies} introduced the dependencies of features.
  156. By the fact that child features are missing information from the parents implementation, the parents shall be implemented first.
  157. Even if the child is not relying on parent information, the parent should still be implemented first.
  158. If the parent feature is not feasible, any implementation of the child becomes obsolete.
  159. Parent-features with multiple children have priority.
  160. As the implementation gains new knowledge that is relevant for multiple features.
  161. This helps to get all the specifications defined in an early stage of the development, which reduces the risk.
  162. \subsection{Test Completion}
  163. Each function has a set of requirements which are tested during the development.
  164. This is a subset of the system requirements.
  165. \autoref{sec:systemtesting} explained the system tests, where the system tests can span over multiple features.
  166. Passing these test is crucial for the design method, as finding flaws in an early stage is very important.
  167. Therefore, features that can make a requirement testable can be selected by the developer to be implemented first.
  168. \subsection{Risk Assessment}
  169. \rrot{Term to use here is "Cost of Change"}
  170. It is important to clear the risks in a development in the shortest amount of time.
  171. If a development runs into problems near the end of its completion all investments are lost.
  172. All features will be ranked on their feasibility and time required for implementation.
  173. With that it is possible to sort the features such that most risk is cleared in the least amount of time.
  174. %Remaining features from both selection criteria are sorted on risk and implementation time.
  175. %When features are implemented and test are complete the risk of them failing is gone.
  176. Therefore, features that are quick to implement could have priority, as the risk can be cleared in an early stage.
  177. However, there is a trade-off to be made with risk involved of the implementation itself.
  178. Features with a low feasibility are a risk to the whole development.
  179. Especially if the feature has low feasibility and a large implementation time, a large risk remains at the end of the development.
  180. Combining time and risk factors gives a method for eliminating the highest risk per time of development.
  181. In \autoref{tab:risktimetable} a situation of four features is shown.
  182. It can be seen that feature 1 has the highest risk.
  183. However, by prioritizing features 3 and 4 over feature 1 we can clear 40\% of the risk in halve the implementation time of feature 1.
  184. \begin{table}[]
  185. \caption{Comparison of features with their corresponding risk and time. The last column is the risk value divided by the number of days.}
  186. \label{tab:risktimetable}
  187. \begin{tabular}{l|l|l|l|}
  188. \cline{2-4}
  189. & Time (days) & Risk (\%) & Risk per time \\ \hline
  190. \multicolumn{1}{|l|}{Feat. 1} & 6 & 45 & 7,5 \\ \hline
  191. \multicolumn{1}{|l|}{Feat. 2} & 3 & 15 & 5 \\ \hline
  192. \multicolumn{1}{|l|}{Feat. 3} & 1 & 15 & 15 \\ \hline
  193. \multicolumn{1}{|l|}{Feat. 4} & 2 & 25 & 12,5 \\ \hline
  194. \end{tabular}
  195. \end{table}
  196. \subsection{Combining}
  197. \rro{Example of a selecting features with the three methods given above}
  198. \section{Feature Implementation}
  199. This section will explains the methodology for the development of a single feature.
  200. The methodology is based on the variable detail model simulation methodology \autocite{broenink_variable_2018}.
  201. \subsection{Initial design}
  202. Implementing a feature starts with an initial design.
  203. The initial design gives a rough idea on how to implement the feature.
  204. This is important because there are multiple ways to implement a feature.
  205. For example, moving a carriage along a rail can be done by a belt drive, hydraulics, rack and pinion, or any other form of transmission.
  206. \rrowip{General Note: This part of the method never felt like I could fit it in. Now that I have applied the method in general it does make even less sense...}
  207. From the initial design the structure of the model is determined.
  208. The structure of the model specifies different sub-models in the system and how they are interconnected.
  209. \textcite{broenink_variable_2018} explains how to split the model into sub-models.
  210. Broenink's methodology also introduces different categories for the elements.
  211. Where the first step is to implement only the essential elements.
  212. However, which elements are essential has a strong dependency on the type of feature.
  213. \subsection{Testing}
  214. To make sure the design of the feature stays within the specifications, the model is tested continuously.
  215. The test-cases are based on a set of system specifications that was assigned to the feature.
  216. \rrowip{Although AMT would be really nice it was not feasible to implement/use it. Therefore, it was done manual and I have to remove this part.}
  217. Similar to the system testing in \autoref{sec:systemtesting} the test are performed with \ac{amt}.
  218. It is important that the feature specifications are tested.
  219. However, the test should also cover the physical behavior like parasitic elements.
  220. It is obvious that we have to test this, but no clue on how to actually test.
  221. Making the test cover all the physical behavior is expected to be impossible.
  222. However, without a coverage case for physical behavior it is possible to create a model that checks all the tests.
  223. For example, by leaving out the parasitic elements and only using ideal elements.
  224. This does not mean that the model is competent, but it shows that a model can ignore the laws of physics.
  225. So the challenge is to complete all the tests with a model that remains a realistic implementation.
  226. Therefore, modeling a realistic behavior is task of the developer.
  227. And this is eventually validated with a physical prototype.
  228. \subsection{Model detail}
  229. \rrowip{This part is a bit minimal, needs more content}
  230. The initial idea was to start with an ideal model as first implementation.
  231. It is expected that implementing only the essential elements of the system does not represent a valid behavior.
  232. At least not with the categorization that is introduced by \textcite{broenink_variable_2018}.
  233. Maybe in a simple motor model, but not in a system with some kind of feedback.
  234. As the feedback is normally based on the state of a storage element.
  235. The order of implementation is difficult to define.
  236. Therefore, it should be the developer that decides on the minimal implementation of the model.