Holarch
Rozdziały kursu

Szkolenia · Ścieżka 3. Zachowanie i architektura · Rozdział 3.1 z 6

3.1 Funkcje i FFBD 3:52

Nadaj funkcjom funkcję najwyższego poziomu, a następnie zapisz ich przepływ jako tekst i otrzymaj FFBD.

Pokazuje Holarch 1.27.

Wszystkie rozdziały · 3.2 Diagramy Action →

Czego się nauczysz

  • Wybieranie funkcji najwyższego poziomu na stronie Analiza funkcjonalna
  • Dekomponowanie funkcji na podfunkcje relacją decomposed by
  • Zapisywanie przepływu funkcjonalnego jako tekstu ze strzałkami, AND i LOOP
  • Odczytywanie FFBD, który Holarch rysuje z przepływu, i otwieranie własnego FFBD podfunkcji

Uporządkuj funkcje stacji Bike-Share Dock pod funkcją najwyższego poziomu na stronie Analiza funkcjonalna, dodaj funkcję, zapisz przepływ funkcjonalny jako jeden wiersz tekstu ze strzałkami, AND i LOOP, a Holarch narysuje z niego funkcjonalny schemat blokowy przepływu (FFBD).

Pliki projektu

  • Projekt początkowy (.holarch.json; Zarządzaj projektami → Pliki projektu ▾ → Importuj projekt (.json)…)
  • Projekt ukończony (.holarch.json; Zarządzaj projektami → Pliki projektu ▾ → Importuj projekt (.json)…)

Film jest odtwarzany z holarch.app; zobacz Politykę prywatności.

Ćwiczenie

Wykonaj to samodzielnie w Holarch, w projekcie demonstracyjnym CubeSat EO-1.

  1. Otwórz swój projekt demonstracyjny EO-1 lub go utwórz: Zarządzaj projektami → Pliki projektu ▾ → Nowy projekt demonstracyjny → CubeSat (inżynieria systemów z przewodnikiem).
  2. W Bazie danych zaznacz F9 Transmit Payload Data. W jego sekcji Ślad kliknij + obok decomposed by (zaznacz Pokaż wszystkie relacje, jeśli nie ma jej na liście), wybierz Nowy Action… i utwórz Enable Transmitter, Send Data File, Confirm Receipt, Disable Transmitter oraz Report Pass Summary.
  3. Otwórz Zachowanie → Analiza funkcjonalna, kliknij Wybierz… obok Funkcja najwyższego poziomu i wybierz F9 Transmit Payload Data. Karta Funkcje wymienia pięć jej podfunkcji.
  4. Na karcie Przepływ i FFBD kliknij Edytuj jako tekst…, wpisz "Enable Transmitter" -> LOOP[return="next file"]("Send Data File" -> "Confirm Receipt") -> AND("Disable Transmitter" | "Report Pass Summary") i kliknij Zastosuj.
  5. Kliknij Otwórz FFBD i znajdź pętlę ze strzałką powrotu oraz bramkę AND. Następnie ponownie wybierz F0 Perform EO-1 Mission jako funkcję najwyższego poziomu, otwórz jej FFBD i kliknij dwukrotnie F9, aby otworzyć własny FFBD funkcji F9.
  6. Aby przejść całość ze sprawdzaniem, uruchom samouczek 4 Analiza funkcjonalna (Pomoc → Samouczki).

Gotowe, gdy FFBD funkcji F9 pokazuje Enable Transmitter, pętlę Send Data File i Confirm Receipt ze strzałką powrotu opisaną next file oraz AND z dwiema gałęziami.

Sprawdź się

  1. Dlaczego strona Analiza funkcjonalna potrzebuje funkcji najwyższego poziomu?
  2. Czym różni się AND od OR w przepływie?
  3. Co dzieje się z funkcją pominiętą w przepływie tekstowym?
  4. Zmieniasz przepływ na karcie Przepływ i FFBD. Co dzieje się z FFBD?
Pokaż odpowiedzi
  1. Dlaczego strona Analiza funkcjonalna potrzebuje funkcji najwyższego poziomu?

    Strona działa na podstawie jednego elementu Action: jego elementy podrzędne decomposed by to funkcje, które wymienia, łączy w przepływ i rysuje. Wybór innej funkcji najwyższego poziomu, np. F9, pokazuje własny podział tej funkcji.

  2. Czym różni się AND od OR w przepływie?

    AND wykonuje wszystkie swoje gałęzie równolegle, a przepływ jest kontynuowany, gdy każda gałąź się zakończy. OR wybiera dokładnie jedną ze swoich gałęzi.

  3. Co dzieje się z funkcją pominiętą w przepływie tekstowym?

    Holarch wymienia ją jako brakującą w tekście i dodaje po ostatnim elemencie przepływu, więc żadna funkcja nie ginie.

  4. Zmieniasz przepływ na karcie Przepływ i FFBD. Co dzieje się z FFBD?

    Zostaje przerysowany. FFBD, drzewo funkcji i tabela funkcji odczytują ten sam model, więc nie trzeba niczego aktualizować ręcznie.

Więcej informacji

Transkrypcja

Pokaż transkrypcję (narracja i to, co widać na ekranie)

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.