Holarch
Chapitres du cours

Formation · Parcours 3. Comportement et architecture · Chapitre 3.1 sur 6

3.1 Les fonctions et le FFBD 3:52

Donner aux fonctions une fonction de premier niveau, puis écrire leur flux en texte et obtenir le FFBD.

Montre Holarch 1.27.

Tous les chapitres · 3.2 Diagrammes d'Action →

Ce que vous allez apprendre

  • Choisir une fonction de premier niveau sur la page Analyse fonctionnelle
  • Décomposer une fonction en sous-fonctions avec la relation decomposed by
  • Écrire un flux fonctionnel en texte avec des flèches, AND et LOOP
  • Lire le FFBD que Holarch dessine à partir du flux et ouvrir le FFBD propre à une sous-fonction

Organisez les fonctions du Bike-Share Dock sous une fonction de premier niveau sur la page Analyse fonctionnelle, ajoutez une fonction, écrivez le flux fonctionnel en une ligne de texte avec des flèches, AND et LOOP, et laissez Holarch en dessiner le diagramme de flux fonctionnel (FFBD).

Fichiers de projet

  • Projet de départ (.holarch.json ; Gérer les projets → Fichiers de projet ▾ → Importer un projet (.json)…)
  • Projet terminé (.holarch.json ; Gérer les projets → Fichiers de projet ▾ → Importer un projet (.json)…)

La vidéo est diffusée depuis holarch.app ; voir la Politique de confidentialité.

Pratique

Faites-le vous-même dans Holarch, sur le projet de démonstration CubeSat EO-1.

  1. Ouvrez votre projet de démonstration EO-1, ou créez-le : Gérer les projets → Fichiers de projet ▾ → Nouveau projet de démonstration → CubeSat (ingénierie système guidée).
  2. Dans la Base de données, sélectionnez F9 Transmit Payload Data. Dans sa section Traçabilité, cliquez sur + à côté de decomposed by (cochez Afficher toutes les relations si elle n'est pas listée), choisissez Nouvelle Action… et créez Enable Transmitter, Send Data File, Confirm Receipt, Disable Transmitter et Report Pass Summary.
  3. Ouvrez Comportement → Analyse fonctionnelle, cliquez sur Choisir… à côté de Fonction de premier niveau et choisissez F9 Transmit Payload Data. L'onglet Fonctions liste ses cinq sous-fonctions.
  4. Dans Flux et FFBD, cliquez sur Modifier comme texte…, saisissez "Enable Transmitter" -> LOOP[return="next file"]("Send Data File" -> "Confirm Receipt") -> AND("Disable Transmitter" | "Report Pass Summary") et cliquez sur Appliquer.
  5. Cliquez sur Ouvrir le FFBD et repérez la boucle avec sa flèche de retour et la porte AND. Choisissez ensuite de nouveau F0 Perform EO-1 Mission comme fonction de premier niveau, ouvrez son FFBD et double-cliquez sur F9 pour ouvrir le FFBD propre à F9.
  6. Pour un parcours guidé et contrôlé, lancez le tutoriel 4 Functional Analysis (Aide → Tutoriels).

C'est terminé quand le FFBD de F9 montre Enable Transmitter, une boucle de Send Data File et Confirm Receipt avec la flèche de retour libellée next file, et un AND à deux branches.

Vérifiez vos connaissances

  1. Pourquoi la page Analyse fonctionnelle a-t-elle besoin d'une fonction de premier niveau ?
  2. Quelle est la différence entre AND et OR dans un flux ?
  3. Que devient une fonction que vous omettez du flux texte ?
  4. Vous modifiez le flux dans l'onglet Flux et FFBD. Que devient le FFBD ?
Afficher les réponses
  1. Pourquoi la page Analyse fonctionnelle a-t-elle besoin d'une fonction de premier niveau ?

    La page part d'une Action : ses enfants decomposed by sont les fonctions qu'elle liste, enchaîne et dessine. Choisir une autre fonction de premier niveau, comme F9, affiche la décomposition propre à cette fonction.

  2. Quelle est la différence entre AND et OR dans un flux ?

    AND exécute toutes ses branches en parallèle, et le flux continue quand chaque branche est terminée. OR emprunte exactement une de ses branches.

  3. Que devient une fonction que vous omettez du flux texte ?

    Holarch la signale comme absente du texte et l'ajoute après le dernier élément du flux : aucune fonction n'est perdue.

  4. Vous modifiez le flux dans l'onglet Flux et FFBD. Que devient le FFBD ?

    Il se redessine. Le FFBD, l'arbre des fonctions et le tableau des fonctions lisent tous le même modèle : il n'y a rien à mettre à jour à la main.

Pour aller plus loin

Transcription

Afficher la transcription (narration et contenu de l'écran)

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.