Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGawron committed Dec 11, 2024
1 parent 6c362ac commit 4286b8a
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Documentation/Diagrams/MeasurementSequenceDiagram.plantuml
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
1 change: 1 addition & 0 deletions Documentation/Diagrams/MeasurementSequenceDiagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions Documentation/Diagrams/MeasurementStateMachine.plantuml
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
Loading

0 comments on commit 4286b8a

Please sign in to comment.