פרקי הקורס
הדרכה · מסלול 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.