From 245d1a9f0e052a92bb09d59d62b88d9a76c3ad13 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Tue, 12 Dec 2023 20:16:55 +0100 Subject: [PATCH] First class diagram messaging extension --- Documents/proto/messaging_extension/Makefile | 3 +- Documents/proto/messaging_extension/class.uml | 85 +++++++++++++++++++ 2 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 Documents/proto/messaging_extension/class.uml diff --git a/Documents/proto/messaging_extension/Makefile b/Documents/proto/messaging_extension/Makefile index cf0e6b4..09bf6a8 100644 --- a/Documents/proto/messaging_extension/Makefile +++ b/Documents/proto/messaging_extension/Makefile @@ -11,7 +11,7 @@ extension_messagerie.pdf:use_case_messagerie.tex extension_messagerie.bbl extens use_case_messagerie.tex: use_case_messagerie.uml plantuml -tlatex:nopreamble use_case_messagerie.uml -image: use_case_messagerie.uml interaction_diagram.uml +image: use_case_messagerie.uml interaction_diagram.uml class.uml plantuml $^ extension_messagerie.bbl: extension_messagerie.bcf @@ -24,6 +24,7 @@ clean: latexmk -C rm -f use_case_messagerie.tex rm -f extension_messagerie.{bbl,run.xml} + rm -f class.tex run: extension_messagerie.pdf xdg-open $< diff --git a/Documents/proto/messaging_extension/class.uml b/Documents/proto/messaging_extension/class.uml new file mode 100644 index 0000000..6f7bc8d --- /dev/null +++ b/Documents/proto/messaging_extension/class.uml @@ -0,0 +1,85 @@ +@startuml +title Class diagram for Messaging extension + +package Messages { + class Message{ + content: String + response: Message + respond(User, String) + } + class Discussion{ + name: String + users: ArrayList + invite(User) + sendMessage(User, String) + } + Discussion *-- Message +} + +package Forums { + class Forum{ + name: String + Owner: Teacher + Registered: ArrayList + {static} createForum(Course): Forum + createTopic(String): Topic + createPoll(String, PollType, ArrayList