aboutsummaryrefslogtreecommitdiff
path: root/sem5/oop/m3
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-09-10 10:35:28 +0200
committerJulian T <julian@jtle.dk>2020-09-10 10:35:28 +0200
commit1841d34509d17750ffbfce63382a129c63bf4bd7 (patch)
tree3a412a2b2c465752a7924320038fc15f96138fb3 /sem5/oop/m3
parent21805664ca0ff0a619f82394d00074179335f801 (diff)
Finished oop assignment
Diffstat (limited to 'sem5/oop/m3')
-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