From 0c4e78a8e6d3287db94d0a90bbe98c3220d474e9 Mon Sep 17 00:00:00 2001 From: Albert Mietus Date: Tue, 9 Apr 2024 14:50:37 +0200 Subject: [PATCH] aigr-nodes for machinery... updated --- .../Design/50.notes/240408-aigr-machinery.rst | 41 ++++++++++++++++--- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/CCastle/DocParts/Design/50.notes/240408-aigr-machinery.rst b/CCastle/DocParts/Design/50.notes/240408-aigr-machinery.rst index ad5c62a..3434960 100644 --- a/CCastle/DocParts/Design/50.notes/240408-aigr-machinery.rst +++ b/CCastle/DocParts/Design/50.notes/240408-aigr-machinery.rst @@ -8,11 +8,22 @@ AIGR nodes for Machinery (240408) package machinery { - class DispatchTable { + class "machinery" as M { + delegate: implementation + } + note right #aquamarine + There are many Machineries (options). + All implementation details are + stored the the delegate. + (None when abstract) + endnote + + + abstract DispatchTable { handlers: List } DispatchTable <|-- eDispatchTable - note right: Event DispatchTable + note right: **E**vent DispatchTable abstract send_proto { + outport @@ -20,6 +31,15 @@ AIGR nodes for Machinery (240408) # handlers: DispatchTable - index: } + note left #aqua + This represents a + line-of-code to + **send** event/data + over a connection + end note + class sendStream <> {} + class sendData <> {} + class sendEvent {} send_proto <|-- sendStream send_proto <|-- sendData send_proto <|-- sendEvent @@ -31,9 +51,18 @@ AIGR nodes for Machinery (240408) - in: # protocol } + note right #aqua + This is the result of + a line-of-code that + connects two ports + endnote + M <|--- send_proto + M <|--- connection + M <|--- send_proto + M <|--- DispatchTable } - AIGR <|--machinery + AIGR <|--M class EventHandler note left: A component-callable\n per event (in a Protocol),\n per port @@ -43,14 +72,14 @@ AIGR nodes for Machinery (240408) 'metaclass Component class Component - connection *-> Port: out - connection *-> Port: in + connection o-> Port: out + connection o-> Port: in connection .. Protocol : //indirect// Protocol .. Port Port "*" <-* Component eDispatchTable -> "*" EventHandler - eDispatchTable "1" <-* "1" Port + eDispatchTable "1" <... "1" Port Component *--> "*" EventHandler @enduml