From 8968820d07f00b752b7aba37712cfa7446371a79 Mon Sep 17 00:00:00 2001 From: Igor Rutka Date: Thu, 6 Aug 2026 11:30:09 +0200 Subject: [PATCH] Fixed folder name and mermaid diagram --- ems/docs/GopacsIntegration.md | 31 +++++++++++++------ .../EmsOptimisation.md | 0 2 files changed, 22 insertions(+), 9 deletions(-) rename ems/docs/{OptimisationMethods => optimisationMethods}/EmsOptimisation.md (100%) diff --git a/ems/docs/GopacsIntegration.md b/ems/docs/GopacsIntegration.md index b9046cd..b884dd2 100755 --- a/ems/docs/GopacsIntegration.md +++ b/ems/docs/GopacsIntegration.md @@ -155,18 +155,31 @@ sequenceDiagram participant API as GOPACS Redispatch API participant TP as Trading Platform (future) - loop every poll interval (≥ 5 min) + loop Every poll interval (≥ 5 min) OR->>API: GET /machineannouncements (CONGESTIONMANAGEMENT, ANNOUNCEMENT_OPEN) - API-->>OR: announcements - Note right of OR: Record every newly-seen announcement in history - OR->>API: GET .../eansolvingeffectivity per announcement - API-->>OR: EAN categories per announcement - Note right of OR: Keep announcements where the contracted EAN
is listed; prefer MANDATORY over VOLUNTARY - OR->>OR: On a new selection: update redispatch* attributes,
record a second history entry with effectivity,
set redispatchBidStatus = PENDING_CONFIRMATION + API-->>OR: Announcements + + Note right of OR: Record every newly seen announcement in history + + OR->>API: GET /eansolvingeffectivity (per announcement) + API-->>OR: EAN categories + + Note right of OR: Keep announcements where the contracted EAN is listed + Note right of OR: Prefer MANDATORY over VOLUNTARY + + OR->>OR: Update redispatch attributes + Note right of OR: On a new selection: + Note right of OR: - Update redispatch* attributes + Note right of OR: - Record history entry with effectivity + Note right of OR: - Set redispatchBidStatus = PENDING_CONFIRMATION end - Op->>OR: Set redispatchBidPrice, toggle redispatchConfirmBid = true - OR->>OR: Log bid, set redispatchBidStatus = CONFIRMED + Op->>OR: Set redispatchBidPrice + Op->>OR: Set redispatchConfirmBid = true + + OR->>OR: Log bid + OR->>OR: Set redispatchBidStatus = CONFIRMED + OR-->>TP: Place order (not yet implemented) ``` diff --git a/ems/docs/OptimisationMethods/EmsOptimisation.md b/ems/docs/optimisationMethods/EmsOptimisation.md similarity index 100% rename from ems/docs/OptimisationMethods/EmsOptimisation.md rename to ems/docs/optimisationMethods/EmsOptimisation.md