فصول الدورة
التدريب · المسار 3. السلوك والمعمارية · الفصل 3.1 من 6
3.1 الوظائف وFFBD 3:52
أعطِ الوظائف وظيفة عليا، ثم اكتب تدفقها نصًا واحصل على FFBD.
يعرض Holarch 1.27.
ما ستتعلمه
- اختر وظيفة عليا في صفحة التحليل الوظيفي
- فكّك وظيفة إلى وظائف فرعية بالعلاقة decomposed by
- اكتب تدفقًا وظيفيًا نصًا بالأسهم وAND وLOOP
- اقرأ مخطط FFBD الذي يرسمه Holarch من التدفق، وافتح FFBD الخاص بوظيفة فرعية
نظّم وظائف Bike-Share Dock تحت وظيفة عليا في صفحة التحليل الوظيفي، وأضف وظيفة، واكتب التدفق الوظيفي سطرًا واحدًا من النص بالأسهم وAND وLOOP، ودع Holarch يرسم منه مخطط كتل التدفق الوظيفي (FFBD).
ملفات المشاريع
- مشروع البداية (.holarch.json؛ إدارة المشاريع ← ملفات المشروع ▾ ← استيراد مشروع (.json)…)
- المشروع المكتمل (.holarch.json؛ إدارة المشاريع ← ملفات المشروع ▾ ← استيراد مشروع (.json)…)
يُشغَّل الفيديو من holarch.app؛ راجع سياسة الخصوصية.
التطبيق العملي
نفّذ هذا بنفسك في Holarch، على المشروع التوضيحي CubeSat EO-1.
- افتح مشروع EO-1 التوضيحي الخاص بك، أو أنشئه: إدارة المشاريع ← ملفات المشروع ▾ ← مشروع توضيحي جديد ← CubeSat (هندسة أنظمة موجّهة).
- في قاعدة البيانات، حدّد F9 Transmit Payload Data. وفي قسم التتبع الخاص به، انقر + بجانب decomposed by (حدّد إظهار كل العلاقات إن لم يكن مدرجًا)، واختر Action جديدة… وأنشئ
Enable TransmitterوSend Data FileوConfirm ReceiptوDisable TransmitterوReport Pass Summary. - افتح السلوك ← التحليل الوظيفي، وانقر اختيار… بجانب الوظيفة العليا واختر F9 Transmit Payload Data. تسرد علامة التبويب الوظائف وظائفه الفرعية الخمس.
- في التدفق وFFBD، انقر تحرير كنص…، واكتب
"Enable Transmitter" -> LOOP[return="next file"]("Send Data File" -> "Confirm Receipt") -> AND("Disable Transmitter" | "Report Pass Summary")وانقر تطبيق. - انقر فتح FFBD واعثر على الحلقة بسهم عودتها وبوابة AND. ثم اختر F0 Perform EO-1 Mission وظيفةً عليا مجددًا، وافتح FFBD الخاص بها وانقر نقرًا مزدوجًا على F9 لفتح FFBD الخاص بـ F9.
- لجولة مفحوصة خطوة بخطوة، شغّل البرنامج التعليمي 4 Functional Analysis (التعليمات ← البرامج التعليمية).
تنتهي حين يعرض FFBD الخاص بـ F9 الخطوة Enable Transmitter، وحلقة من Send Data File وConfirm Receipt بسهم العودة المعنون next file، وAND بفرعين.
اختبر نفسك
- لماذا تحتاج صفحة التحليل الوظيفي إلى وظيفة عليا؟
- ما الفرق بين AND وOR في التدفق؟
- ماذا يحدث لوظيفة تتركها خارج التدفق النصي؟
- تغيّر التدفق في علامة التبويب «التدفق وFFBD». ماذا يحدث لمخطط FFBD؟
إظهار الإجابات
لماذا تحتاج صفحة التحليل الوظيفي إلى وظيفة عليا؟
تعمل الصفحة انطلاقًا من Action واحد: أبناؤه بالعلاقة decomposed by هم الوظائف التي تسردها وتربط تدفقها وترسمها. واختيار وظيفة عليا أخرى، مثل F9، يعرض تفكيك تلك الوظيفة نفسها.
ما الفرق بين AND وOR في التدفق؟
يشغّل AND كل فروعه بالتوازي، ويستمر التدفق حين ينتهي كل فرع. أما OR فيأخذ فرعًا واحدًا بالضبط من فروعه.
ماذا يحدث لوظيفة تتركها خارج التدفق النصي؟
يدرجها Holarch بوصفها مفقودة من النص ويضيفها بعد آخر عنصر في التدفق، فلا تضيع أي وظيفة.
تغيّر التدفق في علامة التبويب «التدفق وFFBD». ماذا يحدث لمخطط FFBD؟
يُعاد رسمه. فمخطط FFBD وشجرة الوظائف وجدول الوظائف كلها تقرأ النموذج نفسه، فلا شيء يحتاج إلى تحديث يدوي.
قراءة المزيد
النص المكتوب
إظهار النص المكتوب (التعليق الصوتي وما يظهر على الشاشة)
Introduction
Welcome to Behavior and Architecture. This track models what the Bike-Share Dock does, what it is made of, how its parts connect, and whether the design adds up.
This first chapter is about functions, and the order they run in.
Functions and their flow
A function is something the system must do, named with a verb: rent a bike, take a payment. A functional flow block diagram, the F F B D, shows the order the functions run in, which ones run at the same time, and which ones repeat.
On screen: Card: functions and the FFBD.
A top-level function
Open Behavior, then Functional Analysis. The page works from one top-level function, and the dock has none yet. The four functions from Getting Started stand on their own.
On screen: Behavior → Functional Analysis: no top-level function.
Click Choose, then Create New. The top-level function is the whole job of the system: Operate the Bike-Share Dock, numbered F zero.
On screen: Choose… → Create New… → F.0 Operate the Bike-Share Dock.
Now put the four functions under it. Open the Database, select Operate the Bike-Share Dock, and in its Trace section, link Rent a Bike, Return a Bike, Charge Bikes and Take Payment under decomposed by.
On screen: Database → F.0 → decomposed by → F.1–F.4.
One function is missing: the dock reports its status, the free bays and the charge levels, to the back office. Create a new Action, F five, Report Dock Status.
On screen: New Entity: Action F.5 Report Dock Status.
Place it in the hierarchy from the other side: show all relations in its Trace section, and under decomposes, link it to Operate the Bike-Share Dock.
On screen: F.5 → decomposes → F.0.
Back in Functional Analysis, the Functions tab lists all five under the top-level function.
On screen: Functional Analysis → Functions.
The flow as text
Open Flow and FFBD. Until someone writes the flow, it simply lists the functions in number order, which says nothing about how they work together.
On screen: Flow & FFBD tab.
Choose Edit as Text. A flow is written like a sentence: function numbers joined by arrows, in the order they run. A rider pays, takes the bike, and later returns it: F four, arrow, F one, arrow, F two.
On screen: Edit as Text → F.4 -> F.1 -> F.2.
After a return, two things happen at the same time: the bike charges, and the dock reports its status. AND opens parallel branches, separated by a bar. Both start together, and the flow goes on when both are done.
On screen: -> AND(F.3 | F.5).
The whole cycle repeats for the next rider. LOOP repeats what is inside its brackets, and return names the arrow that goes back. Wrap the flow in a loop.
On screen: LOOP[return="next rider"]( … ).
The FFBD
The preview below draws the diagram as you type. Apply it.
On screen: Preview → Apply.
Holarch draws the F F B D from that one line: a numbered box for each function, a circle where the AND branches open and close, and the loop with the return arrow labeled next rider.
On screen: The FFBD.
The diagram, the hierarchy and the functions table all read the same model. Change the flow, and the diagram follows.
On screen: The FFBD.
Recap
Let's recap. You created a top-level function, placed the dock's functions under it, wrote their flow as text with arrows, AND and LOOP, and got the F F B D drawn from it.
Next, you take one function apart, step by step, on an action diagram.