Holarch
コースのチャプター

トレーニング · トラック 3. 振る舞いとアーキテクチャ · チャプター 3.1(全 6 チャプター)

3.1 機能と FFBD 3:52

機能に最上位の機能を与え、そのフローをテキストで記述して FFBD を得ます。

Holarch 1.27 の画面です。

すべてのチャプター · 3.2 Action 図 →

学習内容

  • 機能分析ページで最上位の機能を選ぶ
  • decomposed by 関係を使って、機能をサブ機能に分解する
  • 矢印、AND、LOOP を使って機能フローをテキストで記述する
  • Holarch がフローから描く FFBD を読み、サブ機能自体の FFBD を開く

機能分析ページで Bike-Share Dock の機能を最上位の機能の下に整理し、機能を追加し、矢印、AND、LOOP を使って機能フローを 1 行のテキストで記述して、Holarch に機能フローブロック図(FFBD)を描かせます。

プロジェクトファイル

  • 開始時のプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)
  • 完成したプロジェクト (.holarch.json。プロジェクトを管理 → プロジェクトファイル ▾ → プロジェクトをインポート (.json)…)

動画は holarch.app から再生されます。プライバシーポリシーをご覧ください。

演習

CubeSat EO-1 デモプロジェクトを使って、Holarch で実際に操作します。

  1. EO-1 デモプロジェクトを開くか、作成します:プロジェクトを管理 → プロジェクトファイル ▾ → 新しいデモプロジェクト → CubeSat(ガイド付きシステムズエンジニアリング)。
  2. データベースで F9 Transmit Payload Data を選択します。そのトレースセクションで、decomposed by の横の + をクリックし(表示されていない場合はすべての関係を表示にチェック)、新しい Action…を選んで Enable Transmitter、Send Data File、Confirm Receipt、Disable Transmitter、Report Pass Summary を作成します。
  3. 振る舞い → 機能分析を開き、最上位の機能の横の選択…をクリックして F9 Transmit Payload Data を選びます。機能タブに 5 つのサブ機能が一覧表示されます。
  4. フローと FFBD でテキストとして編集…をクリックし、"Enable Transmitter" -> LOOP[return="next file"]("Send Data File" -> "Confirm Receipt") -> AND("Disable Transmitter" | "Report Pass Summary") と入力して適用をクリックします。
  5. FFBD を開くをクリックし、戻り矢印付きのループと AND ゲートを確認します。次に、最上位の機能として再び F0 Perform EO-1 Mission を選び、その FFBD を開いて F9 をダブルクリックし、F9 自体の FFBD を開きます。
  6. チェック付きのウォークスルーを行うには、チュートリアル 4「機能分析」を実行します(ヘルプ → チュートリアル)。

F9 の FFBD に、Enable Transmitter、戻り矢印に next file のラベルが付いた Send Data File と Confirm Receipt のループ、2 つの分岐を持つ AND が表示されれば完了です。

確認問題

  1. 機能分析ページに最上位の機能が必要なのはなぜですか?
  2. フローにおける AND と OR の違いは何ですか?
  3. テキストのフローに含めなかった機能はどうなりますか?
  4. フローと FFBD タブでフローを変更します。FFBD はどうなりますか?
解答を表示
  1. 機能分析ページに最上位の機能が必要なのはなぜですか?

    このページは 1 つの Action を基準に動作します。その decomposed by の子が、ページが一覧表示し、フローにし、描画する機能です。F9 など別の最上位の機能を選ぶと、その機能自体の分解が表示されます。

  2. フローにおける AND と OR の違いは何ですか?

    AND はすべての分岐を並列に実行し、すべての分岐が終わるとフローが続きます。OR は分岐のうちちょうど 1 つを選びます。

  3. テキストのフローに含めなかった機能はどうなりますか?

    Holarch はそれをテキストに含まれていないものとして表示し、フローの最後の要素の後に追加するため、機能が失われることはありません。

  4. フローと 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.