-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Piet Gömpel <[email protected]>
- Loading branch information
Showing
4 changed files
with
87 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Message Dispatching Class Diagram | ||
|
||
```mermaid | ||
classDiagram | ||
class MessageDispatcherInterface { | ||
+dispatch_call(const json& call, bool triggered = false) | ||
+dispatch_call_async(const json& call, bool triggered = false): std::future~EnhancedMessage~T~~ | ||
+dispatch_call_result(const json& call_result) | ||
+dispatch_call_error(const json& call_error) | ||
} | ||
class v16_MessageDispatcher { | ||
- MessageQueue& message_queue | ||
- ChargePointConfiguration& configuration | ||
- RegistrationStatus& registration_status | ||
} | ||
class v201_MessageDispatcher { | ||
- MessageQueue& message_queue | ||
- DeviceModel& device_model | ||
- ConnectivityManager& connectivity_manager | ||
- RegistrationStatusEnum& registration_status | ||
} | ||
class v201_DataTransferInterface { | ||
+data_transfer_req(request: DataTransferRequest): std::optional~DataTransferResponse~ | ||
+handle_data_transfer_req(call: Call~DataTransferRequest~) | ||
} | ||
class v201_DataTransfer { | ||
-MessageDispatcherInterface &message_dispatcher | ||
-std::optional~function~ data_transfer_callback | ||
} | ||
class v201_ChargePoint { | ||
std::unique_ptr~MessageDispatcherInterface~ message_dispatcher | ||
std::unique_ptr~v201_DataTransferInterface~ data_transfer | ||
} | ||
class v16_ChargePoint { | ||
std::unique_ptr~MessageDispatcherInterface~ message_dispatcher | ||
} | ||
MessageDispatcherInterface <|-- v16_MessageDispatcher | ||
MessageDispatcherInterface <|-- v201_MessageDispatcher | ||
v201_DataTransferInterface <|-- v201_DataTransfer | ||
MessageDispatcherInterface *-- v201_DataTransfer | ||
MessageDispatcherInterface *-- v201_ChargePoint | ||
v201_DataTransferInterface *-- v201_ChargePoint | ||
MessageDispatcherInterface *-- v16_ChargePoint | ||
``` |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters