Rozdziały kursu
Szkolenia · Ścieżka 1. Pierwsze kroki · Rozdział 1.4 z 8
1.4 Pierwszy diagram 4:00
Rysowanie modelu, rozbudowywanie go na diagramie i jeden model w każdym widoku.
Pokazuje Holarch 1.27.
Czego się nauczysz
- Tworzenie diagramu Asset systemu za pomocą + Nowy diagram
- Pokazywanie na diagramie funkcji wykonywanych przez każdą część
- Dodawanie części i elementu Conduit na diagramie i odnajdywanie ich w Bazie danych
- Przełączanie typu diagramu, aby zobaczyć te same elementy jako hierarchię
- Tworzenie diagramu Spider pokazującego ślad wokół jednego wymagania
Utwórz diagram Asset stacji Bike-Share Dock z istniejącego elementu systemu: Holarch rysuje jej części i ich funkcje na podstawie relacji. Dodaj zewnętrzne zaplecze biurowe i element Conduit, nową część i kabel zasilający, zmień nazwę części na diagramie i zobacz zmianę w Bazie danych, a następnie wyświetl te same elementy jako hierarchię i prześledź wymaganie na diagramie Spider.
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)).
- Kliknij Diagramy na dole paska nawigacji, a następnie + Nowy diagram. Wybierz Diagram Asset, wpisz
EPSw polu Diagram dla, wybierz 1.3 EPS i kliknij Utwórz. Włącz Wykonywane elementy Action, aby zobaczyć, którą funkcję wykonuje każda część. - Wybierz + Asset ▾ → Nowy podrzędny Asset… i utwórz
Battery Heater. Kliknij ⋯ (Więcej działań) na pasku narzędzi diagramu, a następnie + Conduit: od Battery Pack do Battery Heater, o nazwieHeater Power Line. Następnie wybierz Rozmieść ▾ → Uporządkuj układ. - Otwórz Bazę danych i znajdź Battery Heater i Heater Power Line jako nowe wiersze.
- Po powrocie na kartę diagramu przełącz typ na Diagram hierarchii za pomocą selektora typu.
- Utwórz Diagram Spider dla 3.2 Battery Capacity i pozostaw poziom 2.
Gotowe, gdy diagram Spider dla 3.2 pokazuje Battery Pack, który go spełnia, i TC-07 Battery Capacity Test, który go weryfikuje.
Sprawdź się
- Niczego nie usuwasz, ale zmieniasz nazwę części na diagramie. Gdzie jeszcze pojawia się nowa nazwa?
- Dlaczego nowy Diagram Asset dla 1.3 EPS od razu pokazuje trzy części?
- Kiedy Diagram Spider jest bardziej przydatny niż Diagram Asset?
Pokaż odpowiedzi
Niczego nie usuwasz, ale zmieniasz nazwę części na diagramie. Gdzie jeszcze pojawia się nowa nazwa?
Wszędzie, gdzie występuje element: w Bazie danych, dokumentach, innych diagramach i inspektorze. Diagram jest widokiem modelu, a nie osobnym rysunkiem.
Dlaczego nowy Diagram Asset dla 1.3 EPS od razu pokazuje trzy części?
Diagram odczytuje relacje decomposed by, które już istnieją w modelu, więc części są rysowane bez ręcznego rozmieszczania.
Kiedy Diagram Spider jest bardziej przydatny niż Diagram Asset?
Gdy potrzebny jest ślad wokół jednego elementu przez różne typy relacji: potrzeba, funkcja, część i test, np. aby ocenić wpływ zmiany.
Więcej informacji
Transkrypcja
Pokaż transkrypcję (narracja i to, co widać na ekranie)
Introduction
Chapter four: your first diagram. In Holarch a diagram is a view of the model. It draws items and relationships that already exist, and whatever you add on a diagram goes into the model.
We continue with the Bike-Share Dock, whose parts and functions we related in the last chapter.
Create a diagram
Open Diagrams at the bottom of the rail. It lists every diagram in the project. None is saved yet, but Holarch already offers derived views of the dock, because the dock has parts.
On screen: Diagrams page: derived views only.
Click New Diagram, and pick the type. An Asset Diagram shows a system and its parts.
On screen: + New Diagram → Asset Diagram.
Then choose the root, the item the diagram is about. Type the first letters of Bike-Share Dock, pick it, and click Create.
On screen: Root: S.0 Bike-Share Dock → Create.
Holarch draws the dock with the three parts you related in the last chapter. Nothing was drawn by hand: the diagram reads the decomposed by relationships.
On screen: The asset diagram.
Check Performed Actions, and each part lists the functions it performs. That is the allocation from the last chapter, now on the picture.
On screen: Performed Actions.
Add to the model on the diagram
The back office service is outside the dock, but the kiosk talks to it. Click Asset, choose Existing Asset Outside the Root, and pick Back Office Service. It appears outside the dock's border.
On screen: + Asset ▾ → Existing Asset Outside the Root… → S.4.
A conduit is a physical or data link between assets. Click Conduit, connect the kiosk to the back office service, name the link Cellular Data Link, and click Create.
On screen: + Conduit → Kiosk → Back Office Service → Cellular Data Link.
The Arrange menu tidies the picture. Click Arrange, then Tidy Layout.
On screen: Arrange ▾ → Tidy Layout.
New parts can be added on the diagram too. Click Asset, choose New Child Asset, and create the dock's power supply.
On screen: + Asset ▾ → New Child Asset… → S.5 Power Supply.
Connect it to the charging unit with a second conduit, the Power Cable, and lay the diagram out again.
On screen: + Conduit → Power Supply → Charging Unit → Power Cable; Tidy Layout.
One model, many views
Now select the kiosk. The inspector shows the same item you created in the Database. Rename it Rental Kiosk.
On screen: Select Kiosk → inspector → Rental Kiosk.
Open the Database. The kiosk is renamed there too, and the power supply and both conduits are new rows. There is only one model, and the diagram is one view of it.
On screen: Database: Rental Kiosk, Power Supply, conduits.
The same items can be drawn in other ways. Go back to the diagram's tab, and switch its type at the top to Hierarchy Diagram: the dock's breakdown as a tree.
On screen: Back to the diagram → type: Hierarchy Diagram.
A spider diagram follows the links outward from one item. On the Diagrams page, click New Diagram, choose Spider Diagram, and make the requirement Unlock a Bike its root.
On screen: Diagrams → + New Diagram → Spider → root 1.1.
Set the level to two. It shows the requirement, the need it traces to, the function that satisfies it, and the part that performs that function: the traceability you built, on one page.
On screen: Level 2.
Every diagram can be exported with Export: as a picture, a Word document, a web page or a print, for a report or a review.
On screen: Export… dialog.
Recap
Let's recap. You created an asset diagram from the dock, saw its parts and functions drawn from the model, added an external system, a part and two conduits, renamed a part on the diagram, and viewed the same items as a hierarchy and a spider diagram.
Next, you write a requirements document whose requirements are items of this same model.