forked from nus-cs2103-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from AY2324S2-CS2103T-W12-3/update-dg-assets
Add asset implementation description in DG
- Loading branch information
Showing
3 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam arrowThickness 1.1 | ||
skinparam arrowColor MODEL_COLOR | ||
skinparam classBackgroundColor MODEL_COLOR | ||
skinparam DefaultTextAlignment left | ||
skinparam classAttributeFontColor white | ||
skinparam classAttributeIconSize 0 | ||
|
||
show members | ||
|
||
package model { | ||
|
||
package asset { | ||
|
||
class Asset { | ||
-assetSerial: String | ||
== | ||
+{static} of(String): Asset | ||
} | ||
|
||
} | ||
|
||
package person { | ||
|
||
class Person { | ||
-assets: Assets | ||
== | ||
} | ||
|
||
package Fields { | ||
|
||
class Assets { | ||
-assets: Set<Asset> | ||
== | ||
+{static} of(String[]): Assets | ||
+{static} edit(Asset, Asset): Assets | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} | ||
|
||
Assets "1..*" *-left- "*" Asset : > contain | ||
|
||
Person o-right- Assets : > has | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters