From ced958ec6cd4f52fce817db07eba1edcec890bcb Mon Sep 17 00:00:00 2001 From: AssemblyJohn Date: Mon, 12 Aug 2024 16:14:39 +0300 Subject: [PATCH] Initial puml flowchart Signed-off-by: AssemblyJohn --- ..._201_monitors_periodic_flowchart copy.puml | 36 +++++++++++++++++++ doc/ocpp_201_monitors_trigger_flowchart.puml | 34 ++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 doc/ocpp_201_monitors_periodic_flowchart copy.puml create mode 100644 doc/ocpp_201_monitors_trigger_flowchart.puml diff --git a/doc/ocpp_201_monitors_periodic_flowchart copy.puml b/doc/ocpp_201_monitors_periodic_flowchart copy.puml new file mode 100644 index 000000000..7beef4263 --- /dev/null +++ b/doc/ocpp_201_monitors_periodic_flowchart copy.puml @@ -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 \ No newline at end of file diff --git a/doc/ocpp_201_monitors_trigger_flowchart.puml b/doc/ocpp_201_monitors_trigger_flowchart.puml new file mode 100644 index 000000000..94d1403bf --- /dev/null +++ b/doc/ocpp_201_monitors_trigger_flowchart.puml @@ -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 \ No newline at end of file