-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c362ac
commit 4286b8a
Showing
6 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
Documentation/Diagrams/MeasurementSequenceDiagram.plantuml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@startuml | ||
box "Layers" | ||
participant "State Machine" | ||
participant "Application Layer" | ||
participant "Transport Layer" | ||
participant "Physical Layer" | ||
participant "Measurement Storage" | ||
end box | ||
|
||
"State Machine" -> "Application Layer" : connect() | ||
"Application Layer" -> "Transport Layer" : connect() | ||
"Transport Layer" -> "Physical Layer" : connect() | ||
"Physical Layer" -> "Device" : Establish connection | ||
|
||
loop Repeat for each measurement | ||
|
||
"State Machine" -> "Application Layer" : getMeasurement() | ||
"Application Layer" -> "Transport Layer" : getFrame() | ||
"Transport Layer" -> "Physical Layer" : getData() | ||
"Device" -> "Physical Layer" : data | ||
"Physical Layer" -> "Transport Layer" : data | ||
|
||
"Transport Layer" -> "Application Layer" : frame | ||
"Application Layer" -> "State Machine" : measurement | ||
|
||
"State Machine" -> "Measurement Storage" : saveMeasurement() | ||
"Measurement Storage" -> File : Write data to CSV | ||
|
||
"State Machine" -> Console : Display measurement | ||
end | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@startuml | ||
state "Ionization Chamber State Machine" as SM { | ||
[*] --> InitIonizationChamber : Start | ||
|
||
state "Init Ionization Chamber" as InitIonizationChamber { | ||
} | ||
InitIonizationChamber --> InitMeasurementStorage : Connected | ||
|
||
state "Init Measurement Storage" as InitMeasurementStorage { | ||
} | ||
InitMeasurementStorage --> GetMeasurementFromIonizationChamber : Storage Ready | ||
|
||
state "Get Measurement From Ionization Chamber" as GetMeasurementFromIonizationChamber { | ||
} | ||
GetMeasurementFromIonizationChamber --> SaveMeasurement : Measurement Acquired | ||
|
||
state "Save Measurement" as SaveMeasurement { | ||
} | ||
SaveMeasurement --> ShowMeasurementToUser : Saved | ||
|
||
state "Show Measurement To User" as ShowMeasurementToUser { | ||
} | ||
ShowMeasurementToUser --> GetMeasurementFromIonizationChamber : Continue Measurement | ||
|
||
InitIonizationChamber --> [*] : Failure | ||
InitMeasurementStorage --> [*] : Failure | ||
GetMeasurementFromIonizationChamber --> [*] : Failure | ||
SaveMeasurement --> [*] : Failure | ||
ShowMeasurementToUser --> [*] : Failure | ||
} | ||
@enduml |
Oops, something went wrong.