aboutsummaryrefslogtreecommitdiff
path: root/sem5
diff options
context:
space:
mode:
Diffstat (limited to 'sem5')
-rw-r--r--sem5/oop/m3/opgaver.md37
1 files changed, 34 insertions, 3 deletions
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