summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-01 14:27:04 -0700
committermo khan <mo.khan@gmail.com>2020-01-01 14:27:04 -0700
commit58ed506affe32bc7640007285d0c82cf66eba5ef (patch)
treee3e543e59569a1c1590ef3df81327facba6ea307
parent44f1230cdbbf0dbab5763984b416949ee64b5016 (diff)
Convert uml to image
-rw-r--r--assignments/1/README.md22
-rw-r--r--assignments/1/associative-entity.pngbin0 -> 10258 bytes
-rw-r--r--assignments/1/associative-entity.uml19
-rwxr-xr-xbin/uml3
4 files changed, 23 insertions, 21 deletions
diff --git a/assignments/1/README.md b/assignments/1/README.md
index f2e1989..1929ff0 100644
--- a/assignments/1/README.md
+++ b/assignments/1/README.md
@@ -47,27 +47,7 @@ a. Associative entity
> An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances.
Project ||-<- Policy ->-|| SoftwareLicense
- ```plantuml
- @startuml
- entity 'Project' as project {
- *id: number
- *name: varchar(255)
- }
- entity 'Policy' as policy {
- *id: number
- *classification: number
- *project_id: number
- *software_license_id: number
- }
- entity 'SoftwareLicense' as license {
- *id: number
- *spdx_id: varchar(255)
- *name: varchar(255)
- }
- project ||..|{ policy
- license ||..|{ policy
- @enduml
- ```
+ ![associative entity example](./associative-entity.png)
b. Weak entity
c. Unary relationship
diff --git a/assignments/1/associative-entity.png b/assignments/1/associative-entity.png
new file mode 100644
index 0000000..6e62f99
--- /dev/null
+++ b/assignments/1/associative-entity.png
Binary files differ
diff --git a/assignments/1/associative-entity.uml b/assignments/1/associative-entity.uml
new file mode 100644
index 0000000..a52a489
--- /dev/null
+++ b/assignments/1/associative-entity.uml
@@ -0,0 +1,19 @@
+@startuml
+entity "Project" as project {
+ *id: number
+ *name: varchar(255)
+}
+entity "Policy" as policy {
+ *id: number
+ *classification: number
+ *project_id: number
+ *software_license_id: number
+}
+entity "SoftwareLicense" as license {
+ *id: number
+ *spdx_id: varchar(255)
+ *name: varchar(255)
+}
+project ||..|{ policy
+license ||..|{ policy
+@enduml
diff --git a/bin/uml b/bin/uml
new file mode 100755
index 0000000..9e57042
--- /dev/null
+++ b/bin/uml
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+plantuml assignments/1/associative-entity.uml