Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
wiki:software:beuthbot:software-architecture [11.12.2019 10:19] Christopher Lehmann |
wiki:software:beuthbot:software-architecture [23.01.2020 15:30] (aktuell) Timo Bruns [Software Architecture] |
||
---|---|---|---|
Zeile 22: | Zeile 22: | ||
> Bot <=> Gateway <=> Registry <=> Service | > Bot <=> Gateway <=> Registry <=> Service | ||
- | Following diagram shows that in more detail. | + | Following diagram shows that in more detail: |
+ | |||
+ | < | ||
+ | abstract class Bot | ||
+ | class TelegramBot | ||
+ | class TwitterBot | ||
+ | |||
+ | Bot <|-- TelegramBot | ||
+ | Bot <|-- TwitterBot | ||
+ | |||
+ | class Gateway | ||
+ | class MetaMetaPersistence | ||
+ | class MetaPersistence | ||
+ | |||
+ | package nlp { | ||
+ | |||
+ | class " | ||
+ | class " | ||
+ | class " | ||
+ | class " | ||
+ | class " | ||
+ | class " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | |||
+ | Gateway -- nlp | ||
+ | |||
+ | Bot "1..*" -- Gateway | ||
+ | |||
+ | Gateway -- MetaMetaPersistence | ||
+ | |||
+ | class Registry | ||
+ | |||
+ | Gateway " | ||
+ | Registry -- MetaPersistence | ||
+ | |||
+ | abstract class Service | ||
+ | |||
+ | class MensaService | ||
+ | Service <|-- MensaService | ||
+ | Service <|-- WetterService | ||
+ | |||
+ | Registry " | ||
+ | </ | ||
+ | |||
+ | A user can write the //Bot// to request informations, | ||
+ | |||
+ | Following sequence diagram further illustrates that: | ||
<uml> | <uml> | ||
Zeile 36: | Zeile 84: | ||
Gateway -> Bot : response (text|audio) | Gateway -> Bot : response (text|audio) | ||
</ | </ | ||
- | |||
- | A user can write the //Bot// to request informations, | ||
- | |||
- | Following sequence diagram further illustrates that. | ||
- | |||
- | : Response | ||
+ | } | ||
+ | |||
+ | |||
+ | class Message { | ||
+ | id: unique | ||
+ | evaluated: Meaning | ||
+ | evaluate() | ||
+ | } | ||
+ | |||
+ | Request *-- Message | ||
+ | |||
+ | Response -- Request | ||
+ | |||
+ | |||
+ | class Response { | ||
+ | request: Request | ||
+ | answer | ||
+ | history: Trace | ||
+ | } | ||
+ | |||
+ | class TextMessage { | ||
+ | content | ||
+ | } | ||
+ | |||
+ | class AudioMessage { | ||
+ | url | ||
+ | } | ||
+ | |||
+ | Message <|-- AudioMessage | ||
+ | Message <|-- TextMessage | ||
+ | </ | ||
+ | <WRAP pagebreak></ |