Skip to content

Commit

Permalink
Merge pull request #251 from RoeReRe/v1.5-dg-c
Browse files Browse the repository at this point in the history
Update Storage class diagram
  • Loading branch information
TeeRenJing committed Nov 14, 2023
2 parents 2579408 + ce6c5a4 commit dc55950
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/diagrams/StorageClassDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ Class StorageManager

package "PrescriptionList Storage" #F4F6F6{
Class "<<interface>>\nPrescriptionListStorage" as PrescriptionListStorage
Class JsonPrescriptionStorage
Class JsonPrescriptionListStorage
Class JsonSerializablePrescriptionList
}

package "Prescription Storage" #F4F6F6 {
Class JsonAdaptedPrescription
Class JsonAdaptedDrug
}

package "CompletedPrescriptionList Storage" #F4F6F6 {
Class "<<interface>>\nCompletedPrescriptionListStorage" as CompletedPrescriptionListStorage
Class JsonCompletedPrescriptionListStorage
Class JsonSerializableCompletedPrescriptionList
}

}

Class HiddenOutside #FFFFFF
Expand All @@ -31,14 +40,22 @@ HiddenOutside ..> Storage
StorageManager .up.|> Storage
StorageManager -up-> "1" UserPrefsStorage
StorageManager -up-> "1" PrescriptionListStorage
StorageManager -up-> "1" CompletedPrescriptionListStorage

Storage -left-|> UserPrefsStorage
Storage -right-|> PrescriptionListStorage
Storage -right-|> CompletedPrescriptionListStorage

JsonUserPrefsStorage .up.|> UserPrefsStorage

JsonPrescriptionListStorage .up.|> PrescriptionListStorage
JsonPrescriptionListStorage ..> JsonSerializablePrescriptionList
JsonSerializablePrescriptionList --> "*" JsonAdaptedPrescription

JsonCompletedPrescriptionListStorage .up.|> CompletedPrescriptionListStorage
JsonCompletedPrescriptionListStorage ..> JsonSerializableCompletedPrescriptionList
JsonSerializableCompletedPrescriptionList --> "*" JsonAdaptedPrescription

JsonAdaptedPrescription --> "*" JsonAdaptedDrug

@enduml

0 comments on commit dc55950

Please sign in to comment.