forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-eclipse-iceoryx#982 Add StatusPort .puml diagram
Signed-off-by: Simon Hoinkis <simon.hoinkis@apex.ai>
- Loading branch information
1 parent
2c5f6a2
commit 5306043
Showing
2 changed files
with
162 additions
and
0 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 @@ | ||
@startuml | ||
|
||
title StatusPort overview | ||
|
||
skinparam classAttributeIconSize 0 | ||
|
||
enum ActiveChunk { | ||
FIRST | ||
SECOND | ||
} | ||
|
||
class Transaction { | ||
+activeChunk: ActiveChunk | ||
+abaCounter: uint32_t | ||
} | ||
|
||
class StatusPortData { | ||
+latestTransaction: std::atomic<Transaction> | ||
+serviceDescription: capro::ServiceDescription | ||
+chunks: SharedChunk[2] | ||
} | ||
|
||
class StatusPortReader<T> { | ||
+StatusPortReader(statusPortDataPtr: cxx::not_null<StatusPortData* const) | ||
+take(callable: cxx::function_ref<void(const T&)>): void | ||
' Open question if copyTake() is wanted | ||
'copyTake(callable: cxx::function_ref<void(const T&)>): void) | ||
-getMembers() const: const StatusPortData* | ||
-getMembers(): StatusPortData* | ||
-enableEvent(triggerHandle: iox::popo::TriggerHandle&&, event: const MyTriggerClassEvents): void | ||
-disableEvent(event: const MyTriggerClassEvents): void | ||
' Some more methods need to be implemented in the StatusPortReader to be attachable to a Listener | ||
' See https://github.com/eclipse-iceoryx/iceoryx/blob/master/iceoryx_examples/waitset/ice_waitset_trigger.cpp | ||
' Open question if copyTake() is wanted | ||
'-m_copyOfUserData: T | ||
-m_statusPortDataPtr: StatusPortData* | ||
} | ||
|
||
|
||
class StatusPortWriter<T> { | ||
+StatusPortWriter(statusPortDataPtr: cxx::not_null<StatusPortData* const) | ||
+store(callable: cxx::function_ref<void(T&)>): void | ||
-getMembers() const: const StatusPortData* | ||
-getMembers(): StatusPortData* | ||
-m_statusPortDataPtr: StatusPortData* | ||
} | ||
|
||
StatusPortWriter ..> StatusPortData | ||
StatusPortReader ..> StatusPortData | ||
|
||
@enduml |
111 changes: 111 additions & 0 deletions
111
doc/design/diagrams/status-port/status-port-overview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.