Holarch
과정의 장

교육 · 트랙 3. 동작과 아키텍처 · 3.2장 (전체 6장)

3.2 Action 다이어그램 2:55

기능을 병렬 분기, 결정, 단계를 트리거하는 항목이 있는 단계들로 나눕니다.

Holarch 1.27 화면입니다.

← 3.1 기능과 FFBD · 모든 장 · 3.3 할당 →

학습 내용

  • 기능을 Action 다이어그램으로 열고 Action을 선 위로 끌어 단계를 추가하기
  • 병렬 분기와 합계가 100%인 분기 확률이 있는 결정 추가하기
  • 한 단계가 생성하고 다른 단계가 트리거로 받는 Input/Output 만들기
  • 다이어그램의 단계가 모델의 Action이 되는 방식 설명하기

Rent a Bike를 Action 다이어그램으로 열고 캔버스에서 단계를 만듭니다. 순차 액션, 병렬 분기, 분기 확률이 있는 결정, 그리고 한 단계가 생성하고 다른 단계가 받는 Input/Output 항목입니다.

프로젝트 파일

  • 시작 프로젝트 (.holarch.json; 프로젝트 관리 → 프로젝트 파일 ▾ → 프로젝트 가져오기 (.json)…)
  • 완성 프로젝트 (.holarch.json; 프로젝트 관리 → 프로젝트 파일 ▾ → 프로젝트 가져오기 (.json)…)

동영상은 holarch.app에서 재생됩니다. 개인정보 처리방침을 참조하십시오.

실습

CubeSat EO-1 데모 프로젝트에서 Holarch로 직접 해 보십시오.

  1. EO-1 데모 프로젝트를 열거나 만드십시오. 프로젝트 관리 → 프로젝트 파일 ▾ → 새 데모 프로젝트 → CubeSat (Guided systems engineering).
  2. 데이터베이스에서 F10 Enter Safe Mode를 선택하고 다음에서 열기 ▾ → Action 다이어그램을 선택합니다.
  3. 추가 패널에서 Action을 선 위로 끌어 놓고 이름을 Detect Undervoltage로 지정합니다. 그런 다음 그 뒤의 선 위로 병렬을 끌어 놓고, 한 분기에는 Shed Payload Loads를, 다른 분기에는 Point Arrays to Sun을 둡니다.
  4. 병렬 뒤의 선 위로 OR를 끌어 놓고 이름을 Battery recovered?로 지정합니다. 속성 패널에서 분기 확률을 80과 20으로 설정하고, 첫 번째 분기에는 Resume Nominal Mode를, 두 번째 분기에는 Keep Charging을 둡니다.
  5. Input/Output을 Detect Undervoltage 위로 끌어 놓고 이름을 Undervoltage Flag로 지정합니다. I/O 아래의 핸들을 Shed Payload Loads 위로 끌어 놓고 입력 (트리거)를 선택합니다.

F10의 다이어그램에 다섯 단계, 병렬 분기, 합계 100%인 OR, 그리고 Detect Undervoltage에서 Shed Payload Loads로 전달되는 Undervoltage Flag가 표시되면 완료입니다.

스스로 확인

  1. 선 위에 Action을 놓으면 모델에 무엇이 추가됩니까?
  2. 트리거 입력과 선택 입력의 차이는 무엇입니까?
  3. OR의 분기 확률의 합계가 100%여야 하는 이유는 무엇입니까?
답 보기
  1. 선 위에 Action을 놓으면 모델에 무엇이 추가됩니까?

    다이어그램이 속한 기능 아래에 분해되어 흐름의 해당 위치에 놓이는 새 Action입니다. 이 Action은 데이터베이스와 이를 표시하는 모든 뷰에 나타납니다.

  2. 트리거 입력과 선택 입력의 차이는 무엇입니까?

    트리거 입력이 있는 단계는 해당 항목이 도착할 때까지 시작되지 않습니다. 선택 입력은 수신되지만 단계를 붙잡아 두지 않습니다.

  3. OR의 분기 확률의 합계가 100%여야 하는 이유는 무엇입니까?

    시뮬레이터는 확률에 따라 분기를 고릅니다. 숫자의 합계가 100%가 아니면 속성 패널이 경고합니다. 확률을 모르는 경우 없음을 선택하십시오. 그러면 시뮬레이터가 실행 중에 묻고, Monte Carlo는 같은 확률을 사용합니다.

더 읽어 보기

대본

대본 보기 (내레이션과 화면 내용)

Introduction

Welcome back. This chapter takes one function, Rent a Bike, and draws what happens inside it, step by step.

You will build an action diagram on the canvas, from the Add panel.

The canvas

Open the Database, select Rent a Bike, and choose Open in, then Action Diagram. The canvas starts with a start, an end, and the line between them. The Add panel on the left holds the building blocks.

On screen: Database → F.1 → Open in ▾ → Action Diagram.

Steps in order

Drag an Action onto the line, and name it Identify Rider. The rider taps a card or a phone at the kiosk.

On screen: Action → line → Identify Rider.

The next step drops onto the line after it: Check Account. The back office confirms the rider can rent. Each new step is joined to the last for you.

On screen: Action → Check Account.

Parallel branches and a decision

Two things happen at once next: the bay unlocks, and the kiosk shows the rider which bay it is. Drag a Parallel onto the line. It opens two branches that start together and join when both finish.

On screen: Parallel → line.

Drop an action onto each branch: Unlock Bay on the first, Show Bay Number on the second.

On screen: An action on each branch.

Then a decision: does the rider take the bike within thirty seconds? Drag an Or onto the line, and put the question in its name.

On screen: Or → line → name.

Each branch of a decision has a probability, for simulation later. Most riders take the bike: ninety-five percent for yes, five for no. The panel checks that they add up to one hundred.

On screen: Branch probabilities 95 / 5.

On the yes branch the rental starts: Start Rental. On the no branch the bay locks again: Relock Bay.

On screen: An action on each branch.

Inputs and outputs

Steps also pass items to each other. Drag an Input/Output onto Check Account: the step now produces it. Name it Unlock Code, the approval the back office sends.

On screen: I/O → Check Account → Unlock Code.

Unlock Bay receives the code, and receiving it is what starts that step. Drag from the handle on Unlock Code onto Unlock Bay, and choose Input, trigger. An optional input would not start the step.

On screen: Handle on Unlock Code → Unlock Bay → Input (trigger).

The diagram is part of the model. The steps are actions under Rent a Bike, and the item and its links appear in the Database and on every view that shows them.

On screen: The completed action diagram.

Recap

Let's recap. You opened a function as an action diagram, dropped steps onto the line, added parallel branches and a decision with probabilities, and connected an item that triggers a step.

Next, you decide which part of the dock performs each function: allocation.