Rozdziały kursu
Szkolenia · Ścieżka 3. Zachowanie i architektura · Rozdział 3.3 z 6
3.3 Alokacja 2:33
Zdecyduj, która część stacji wykonuje każdą funkcję, i znajdź to, co zostało.
Pokazuje Holarch 1.27.
Czego się nauczysz
- Konfigurowanie macierzy identyfikowalności akcji względem zasobów z relacją performed by
- Alokowanie funkcji do zasobu, który ją wykonuje, jednym kliknięciem w macierzy
- Używanie opcji Tylko luki do znajdowania akcji, których nie wykonuje żaden zasób
- Potwierdzanie alokacji w sekcji Ślad elementu
Alokuj funkcje stacji Bike-Share Dock i kroki Rent a Bike do części, które je wykonują, w macierzy akcji względem zasobów z relacją performed by, a następnie użyj opcji Tylko luki, aby wyświetlić to, co nadal nie ma wykonawcy.
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.
- 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).
- Otwórz Weryfikacja → Macierz identyfikowalności. Kliknij etykietę Wiersze, ustaw Wiersze z na Hierarchia pod encją główną, wybierz OPS Run Nominal Imaging Pass jako element główny i kliknij Gotowe.
- Kliknij etykietę Kolumny, ustaw Kolumny z na Wszystkie encje klasy z klasą Asset i ustaw Relacja na performed by.
- Zaznacz Tylko luki. Pozostaje OPS.9 Hold Data Onboard oraz element główny OPS, który system wykonuje jako całość.
- Kliknij komórkę na przecięciu OPS.9 Hold Data Onboard i 1.4 C&DH, części, która przechowuje dane ładunku w pamięci. Następnie zaznacz OPS.9 w Bazie danych i odczytaj performed by w jego sekcji Ślad.
- Aby przejść całość ze sprawdzaniem, uruchom samouczek 6 Architektura fizyczna i alokacja (Pomoc → Samouczki).
Gotowe, gdy Tylko luki nie wymienia już OPS.9, a jego sekcja Ślad pokazuje performed by 1.4 C&DH.
Sprawdź się
- Dlaczego ustawić Relacja na performed by zamiast Wszystkie dozwolone?
- Gdzie jest przechowywana alokacja?
- Tylko luki pokazuje wiersz. Czy to zawsze błąd?
Pokaż odpowiedzi
Dlaczego ustawić Relacja na performed by zamiast Wszystkie dozwolone?
Gdy wybrano jeden typ, kliknięcie pustej komórki tworzy dokładnie tę relację. Przy wszystkich dozwolonych typach Holarch musi zapytać, o który chodzi, gdy pasuje kilka.
Gdzie jest przechowywana alokacja?
W elementach, jako performed by w Action i performs w Asset. Macierz jest tylko widokiem tych powiązań, więc każdy inny widok, np. sekcja Ślad elementu, pokazuje tę samą alokację.
Tylko luki pokazuje wiersz. Czy to zawsze błąd?
Nie. Operację lub funkcję najwyższego poziomu może wykonywać system jako całość, więc nie potrzebuje ona jednego wykonawcy. Każdy pozostały krok zwykle go potrzebuje.
Więcej informacji
Transkrypcja
Pokaż transkrypcję (narracja i to, co widać na ekranie)
Introduction
Welcome back. Functions say what the dock does. Its parts, the assets, say what it is. Allocation joins the two.
In this chapter you allocate every function to the part that performs it.
What allocation is
Each function should be performed by a part of the system. A function nothing performs will not happen, and a part with no function is weight with no job. In the model, allocation is one relationship: performed by.
On screen: Card: allocation.
Set up the matrix
A matrix is the quickest way to allocate many functions at once. Open Verification, then Traceability Matrix.
On screen: Verification → Traceability Matrix.
Click Rows, and choose all entities of the class Action. Set Columns to the class Asset the same way. Then set the relationship to performed by, so a click on a cell creates exactly that.
On screen: Rows → class Action; Columns → class Asset; Relationship: performed by.
Allocate the functions
The top-level functions first. Three were allocated in Getting Started, and the matrix marks them: Rent a Bike by the Rental Kiosk, Return a Bike by the Docking Bay, and Charge Bikes by the Charging Unit.
On screen: Existing marks: F.1, F.2, F.3.
Allocate the other two. Take Payment is performed by the Back Office Service: click the cell where its row and that column meet. Report Dock Status is performed by the kiosk, which talks to the back office.
On screen: F.4 × S.4, F.5 × S.2.
The steps of Rent a Bike from the last chapter need performers too. Identify Rider happens at the kiosk, Check Account in the back office, and Unlock Bay in the docking bay.
On screen: F.1.1 × S.2, F.1.2 × S.4, F.1.3 × S.1.
Find the gaps
Now turn on Gaps only. The matrix keeps only the rows and columns with no link: the steps still to allocate, and the top-level function, which is done by the dock as a whole.
On screen: Gaps only.
The rest follow the same way. Show Bay Number and Start Rental belong to the kiosk and the back office, and Relock Bay to the docking bay.
On screen: F.1.4 × S.2, F.1.6 × S.4, F.1.7 × S.1.
On the item
Allocation is stored on the items, not in the matrix. Select Rent a Bike in the Database, and open its Trace section: performed by lists the Rental Kiosk.
On screen: Database → F.1 → Trace.
Recap
Let's recap. You set up a matrix of actions against assets with performed by, allocated the functions and the steps with one click each, and used Gaps only to find what was left.
Next, you define how the dock's parts connect: interfaces.