From 1841d34509d17750ffbfce63382a129c63bf4bd7 Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 10 Sep 2020 10:35:28 +0200 Subject: Finished oop assignment --- sem5/oop/m3/opgaver.md | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) (limited to 'sem5') diff --git a/sem5/oop/m3/opgaver.md b/sem5/oop/m3/opgaver.md index 8d4c8aa..32da576 100644 --- a/sem5/oop/m3/opgaver.md +++ b/sem5/oop/m3/opgaver.md @@ -4,7 +4,7 @@ 2020-09-10:oop/mm3/opg/1 #5953/G ``` -## Opgave 1 +## Opgave 1 - Usecase diagram ```plantuml left to right direction @@ -29,6 +29,37 @@ uha --> db ura --> db ``` -## Opgave 2 +## Opgave 2 - Requirements -## Opgave 3 \ No newline at end of file +Functional: +- Must validate and check user info. +- Keep track of available space. +- Store animals. +- Respect special food requirements. + +Usability: +- Easy to use GUI as it's going to be used by Animal owner. + +## Opgave 3 - Domain model + +```plantuml +@startuml +class "Animal owner" as ao +ao : offender? + +class "Animal" as an +an : name +an : race + +class "Cage" as cage + +class "Reservation" as r +r : start +r : end + +r "1" -- "*" ao : reserved_by +r "1" -- "0..1" cage : reserved +cage "0..1" -- "1" an : stores +ao "*" -- "1" an : owns +@enduml +``` \ No newline at end of file -- cgit v1.2.3