Holarch
Rozdziały kursu

Szkolenia · Ścieżka 1. Pierwsze kroki · Rozdział 1.3 z 8

1.3 Atrybuty i relacje 3:29

Opisz elementy i połącz je w model.

Pokazuje Holarch 2.41.

← 1.2 Pierwszy projekt · Wszystkie rozdziały · 1.4 Pierwszy diagram →

Czego się nauczysz

  • Edytowanie atrybutów elementu, np. uzasadnienia wymagania, w inspektorze
  • Wiązanie elementów poleceniem Powiąż istniejący… i odczytywanie każdego powiązania z obu stron
  • Dekomponowanie zasobu na części i alokowanie funkcji do części, która ją wykonuje
  • Wiązanie funkcji z wymaganiem, które spełnia
  • Poruszanie się po modelu przez powiązane elementy w Widoku elementu

Opisz elementy stacji Bike-Share Dock atrybutami (opis, uzasadnienie, status) i połącz je relacjami: powiąż wymaganie z potrzebą, z której wynika, zdekomponuj system na części, określ, która część wykonuje którą funkcję i która funkcja spełnia które wymaganie, oraz odczytaj każde powiązanie z obu stron w inspektorze i w Widoku elementu.

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 2.5 Safe Mode Recovery i wpisz w inspektorze Uzasadnienie (dlaczego statek kosmiczny musi samodzielnie wyjść z trybu bezpiecznego).
  3. Zaznacz F10 Enter Safe Mode. W sekcji Ślad znajdź satisfies (zaznacz Pokaż wszystkie relacje, jeśli nie ma jej na liście), kliknij + → Powiąż istniejący…, zaznacz 2.5 Safe Mode Recovery i kliknij Powiąż zaznaczone. Zaznacz 2.5 i znajdź to samo powiązanie w pozycji satisfied by.
  4. Zaznacz 1.4 C&DH, zaznacz Pokaż wszystkie relacje i powiąż go relacją performs z OPS.9 Hold Data Onboard, jedynym krokiem operacji, którego żadna część jeszcze nie wykonuje.
  5. Zaznacz 2.2 Mission Operations Center. Przy decomposed by kliknij + → Nowy Asset… i utwórz Image Processing Server.
  6. Kliknij dwukrotnie F10 Enter Safe Mode, aby otworzyć Widok elementu, a następnie przechodź przez powiązane nazwy: od F10 do 1.4 C&DH, a stamtąd do 1 EO-1 Spacecraft.

Gotowe, gdy Widok elementu 2.5 Safe Mode Recovery wymienia F10 w pozycji satisfied by, a OPS.9 wymienia 1.4 C&DH w pozycji performed by.

Sprawdź się

  1. Dodajesz powiązanie z F10 relacją satisfies. Dlaczego 2.5 pokazuje teraz satisfied by bez żadnego dodatkowego kroku?
  2. Dlaczego selektor w Powiąż istniejący… nie proponuje każdego elementu projektu?
  3. Co w kategoriach inżynierii systemów zapisuje powiązanie zasobu z akcją relacją performs?
Pokaż odpowiedzi
  1. Dodajesz powiązanie z F10 relacją satisfies. Dlaczego 2.5 pokazuje teraz satisfied by bez żadnego dodatkowego kroku?

    Każda relacja ma nazwę w każdym kierunku. To jedno powiązanie, odczytywane jako satisfies od strony funkcji i satisfied by od strony wymagania.

  2. Dlaczego selektor w Powiąż istniejący… nie proponuje każdego elementu projektu?

    Wymienia tylko elementy klas, na które relacja zezwala dla tego elementu, więc nie da się utworzyć powiązania, którego schemat nie definiuje.

  3. Co w kategoriach inżynierii systemów zapisuje powiązanie zasobu z akcją relacją performs?

    Alokację funkcji do fizycznej części, która ją wykonuje.

Więcej informacji

Transkrypcja

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

Introduction

Chapter three: attributes and relationships. Attributes describe an item. Relationships connect items, and they are what turn a list of items into a model.

We continue with the Bike-Share Dock project from the last chapter.

Attributes

Open the Database, and select the requirement Unlock a Bike. The inspector's Item section holds its number, name and description. Below it, Attributes holds the attributes of its class, such as a rationale and a status.

On screen: Database → 1.1 Unlock a Bike → Attributes.

A rationale says why the requirement exists, which helps when someone later wants to change it. Type it in, and click elsewhere to save.

On screen: Rationale.

Asset and Action have their own attributes, such as a function's duration, which simulation uses later. A project owner can add attributes to any class in the Schema.

On screen: Attributes of an Action.

Relate items

Now the relationships. Select Unlock a Bike again, and click Trace in the inspector. It groups the relations of this class by purpose. Find traced from, click its plus button, and choose Link existing.

On screen: Trace → traced from → + → Link existing…

The picker lists only items that this relation allows. Check Find a Bike Nearby, the need this requirement answers, and click Link Selected.

On screen: Pick N.1 → Link Selected.

Every relationship has a name in each direction. Select the need, and its Trace shows the same link the other way round: Find a Bike Nearby is traced to Unlock a Bike.

On screen: N.1 → traced to 1.1.

Structure and allocation

Next, the system's structure. Select Bike-Share Dock, find decomposed by, and relate its three parts at once: the docking bay, the kiosk and the charging unit. The back office service is an external system, outside the dock, so it is not one of its parts.

On screen: S.0 → decomposed by → S.1–S.3.

Then say which part does what. Select the kiosk. Performs has no links yet, so tick Show all relations, and relate the kiosk with performs to Rent a Bike and Take Payment. In systems engineering terms, you are allocating functions to the physical parts.

On screen: S.2 Kiosk → Show all relations → performs → F.1, F.4.

The docking bay performs Return a Bike, and the charging unit performs Charge Bikes. They are related the same way.

On screen: S.1, S.3 performs (entered off camera).

Finally, link the function to the requirement it meets. Select Rent a Bike, and relate it with satisfies to Unlock a Bike.

On screen: F.1 → satisfies → 1.1.

Reading the links

Trace shows the relations that have links, plus a few kept visible even when empty. Untick Show all relations, and you see just what this function is connected to.

On screen: Trace → Show all relations off.

Double-click the row to open the Entity View. It shows the same sections on a full page, and linking works here too.

On screen: Entity View of Rent a Bike.

Click a related item's name to move to it. From the function, go to the kiosk that performs it, and from there to the dock it belongs to. This is how you walk the model.

On screen: Entity View: → Kiosk → Bike-Share Dock.

Recap

Let's recap. You edited attributes, related items with Link existing, read each link from both ends, decomposed the system, allocated functions to parts, and walked the links in the Entity View.

Next, you draw part of this model as a diagram.