Skip to content

Commit

Permalink
Initial puml flowchart
Browse files Browse the repository at this point in the history
Signed-off-by: AssemblyJohn <[email protected]>
  • Loading branch information
AssemblyJohn committed Aug 13, 2024
1 parent 8f2598d commit ced958e
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
36 changes: 36 additions & 0 deletions doc/ocpp_201_monitors_periodic_flowchart copy.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@startuml Periodic Monitors

start
:DB Monitor Config Setup;
:DB Monitor Initialization;
if (Monitoring Enabled?) then (yes)
:Query Config\nProcess Time;
:Enable Monitor\nProcessor;
repeat
:Verify Periodic\nMonitors;
if(Periodic Monitor\nTime Elapsed?) then (yes)
if(Online?) then (yes)
if(Active Monitoring Severity\n> Monitor Severity?) then (yes)
:Queue \nPeriodic Monitor;
else (no)
:Discard Monitor;
endif
else (no)
if(Offline Monitoring Severity\n> Monitor Severity?) then (yes)
:Queue \nPeriodic Monitor;
else (no)
:Discard Monitor;
endif
endif
else(no)
:Update Monitor\nElapsed Time;
endif
:Verify Triggered\nMonitors;
:Queue Triggered\nMonitors;
repeat while (Each N Seconds)
else (no)
:Do Nothing;
endif
stop

@enduml
34 changes: 34 additions & 0 deletions doc/ocpp_201_monitors_trigger_flowchart.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@startuml Periodic Monitors

start
:DB Monitor Config Setup;
:DB Monitor Initialization;
if (Monitoring Enabled?) then (yes)
:Inject Device\nModel Listener;
:Enable Monitor\nProcessor;
repeat
:Verify Variable\nMonitors;
if(Variable Monitor\nTriggered?) then (yes)
if(Online?) then (yes)
if(Active Monitoring Severity\n> Monitor Severity?) then (yes)
:Queue Monitor;
else (no)
:Discard Monitor;
endif
else (no)
if(Offline Monitoring Severity\n> Monitor Severity?) then (yes)
:Queue Monitor;
else (no)
:Discard Monitor;
endif
endif
else(no)
:Do Nothing;
endif
repeat while (DB Variable Updated)
else (no)
:Do Nothing;
endif
stop

@enduml

0 comments on commit ced958e

Please sign in to comment.