Holarch
Kurs bölümleri

Eğitim · Kurs 3. Davranış ve mimari · Bölüm 3.1 / 6

3.1 İşlevler ve FFBD 3:52

İşlevlere bir üst düzey işlev verin, ardından akışlarını metin olarak yazın ve FFBD'yi elde edin.

Holarch 1.27'yi gösterir.

Tüm bölümler · 3.2 Action Diyagramları →

Neler öğreneceksiniz

  • İşlevsel Analiz sayfasında bir üst düzey işlev seçin
  • Bir işlevi decomposed by ilişkisiyle alt işlevlere ayrıştırın
  • Oklar, AND ve LOOP ile işlevsel bir akışı metin olarak yazın
  • Holarch'ın akıştan çizdiği FFBD'yi okuyun ve bir alt işlevin kendi FFBD'sini açın

Bike-Share Dock'un işlevlerini İşlevsel Analiz sayfasında bir üst düzey işlevin altında düzenleyin, bir işlev ekleyin, işlevsel akışı oklar, AND ve LOOP ile tek satırlık bir metin olarak yazın ve Holarch'ın ondan işlevsel akış blok diyagramını (FFBD) çizmesine izin verin.

Proje dosyaları

  • Başlangıç projesi (.holarch.json; Projeleri yönet → Proje dosyaları ▾ → Proje içe aktar (.json)…)
  • Bitmiş proje (.holarch.json; Projeleri yönet → Proje dosyaları ▾ → Proje içe aktar (.json)…)

Video holarch.app'ten oynatılır; bkz. Gizlilik Politikası.

Alıştırma

Bunu Holarch'ta, CubeSat EO-1 demo projesinde kendiniz yapın.

  1. EO-1 demo projenizi açın veya oluşturun: Projeleri yönet → Proje dosyaları ▾ → Yeni demo proje → CubeSat (Rehberli sistem mühendisliği).
  2. Veritabanı'nda F9 Transmit Payload Data'yı seçin. İzleme bölümünde decomposed by yanındaki +'ya tıklayın (listede yoksa Tüm ilişkileri göster'i işaretleyin), Yeni Action…'ı seçin ve Enable Transmitter, Send Data File, Confirm Receipt, Disable Transmitter ve Report Pass Summary'yi oluşturun.
  3. Davranış → İşlevsel Analiz'i açın, Üst düzey işlev yanındaki Seç…'e tıklayın ve F9 Transmit Payload Data'yı seçin. İşlevler sekmesi beş alt işlevini listeler.
  4. Akış ve FFBD'de Metin olarak düzenle…'ye tıklayın, "Enable Transmitter" -> LOOP[return="next file"]("Send Data File" -> "Confirm Receipt") -> AND("Disable Transmitter" | "Report Pass Summary") yazın ve Uygula'ya tıklayın.
  5. FFBD'yi aç'a tıklayın ve dönüş oku olan döngüyü ve AND kapısını bulun. Ardından üst düzey işlev olarak yeniden F0 Perform EO-1 Mission'ı seçin, FFBD'sini açın ve F9'un kendi FFBD'sini açmak için F9'a çift tıklayın.
  6. Denetimli bir adım adım anlatım için 4 Functional Analysis öğreticisini çalıştırın (Yardım → Öğreticiler).

F9'un FFBD'si Enable Transmitter'ı, next file etiketli dönüş okuyla Send Data File ve Confirm Receipt döngüsünü ve iki dallı bir AND'i gösterdiğinde işiniz bitmiştir.

Kendinizi sınayın

  1. İşlevsel Analiz sayfası neden bir üst düzey işleve ihtiyaç duyar?
  2. Bir akışta AND ile OR arasındaki fark nedir?
  3. Metin akışının dışında bıraktığınız bir işleve ne olur?
  4. Akış ve FFBD sekmesinde akışı değiştiriyorsunuz. FFBD'ye ne olur?
Yanıtları göster
  1. İşlevsel Analiz sayfası neden bir üst düzey işleve ihtiyaç duyar?

    Sayfa tek bir Action'dan çalışır: decomposed by alt öğeleri, listelediği, akışa koyduğu ve çizdiği işlevlerdir. F9 gibi başka bir üst düzey işlev seçmek o işlevin kendi ayrıştırmasını gösterir.

  2. Bir akışta AND ile OR arasındaki fark nedir?

    AND tüm dallarını paralel çalıştırır ve akış her dal bittiğinde devam eder. OR dallarından tam olarak birini alır.

  3. Metin akışının dışında bıraktığınız bir işleve ne olur?

    Holarch onu metinde eksik olarak listeler ve akışın son öğesinin arkasına ekler; böylece hiçbir işlev kaybolmaz.

  4. Akış ve FFBD sekmesinde akışı değiştiriyorsunuz. FFBD'ye ne olur?

    Yeniden çizilir. FFBD, işlev ağacı ve işlevler tablosu aynı modeli okur; bu yüzden elle güncellenecek bir şey yoktur.

Daha fazla bilgi

Döküm

Dökümü göster (anlatım ve ekranda görünenler)

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.