Skip to content

Commit

Permalink
add delta_q editor sequence diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuhn committed Dec 15, 2024
1 parent b1a969b commit b779e23
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions delta_q/docs/overview.d2
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,30 @@ web-app.editor -> core.parser: "Turns text into DeltaQ"
web-app.agent -> core.evaluator: "Turns DeltaQ into CDFs\nand resource usage distribution functions"
web-app.editor -> core.renderer: "Turns DeltaQ into HTML"
web-app -> deps: "Built with"

Editing workflow: {
shape: sequence_diagram
near: center-right

user
renderer: Renderer /\nindex.html
editor: Editor
parser: Parser
agent: Agent
storage: Local Storage

user -> editor.edit: "starts editing\n(either a single expression\nor the whole model)"
editor."this bar represents\nthe open edit UI"
editor.edit -> renderer: "initialises the editor\nwith text rendering"
loop {
user -> editor.edit: "edits the expression"
editor.edit -> parser: "attempt parse"
parser -> editor.edit: "error message\nor DeltaQ"
editor.edit -> renderer: "updates the text\nand error status"
}
user -> editor.edit: "saves the expression"
editor.edit -> storage: "stores the DeltaQ"
editor -> agent: "evaluate selected expression"
agent -> editor: "returns the Outcome\nor error message"
editor -> renderer: "updates the\nplotly.js diagrams"
}

0 comments on commit b779e23

Please sign in to comment.