-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ratings.puml
48 lines (40 loc) · 1.12 KB
/
Ratings.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@startuml
Interface Manager
Interface StorageController<T> {
+ T Query()
+ void Add()
+ void Remove()
+ void Update()
}
class Tier {
+ String name
}
struct RatingTierMatch {
+ any[] ratingRange
+ Tier tier
}
RatingTierMatch "1" --- "1" Tier : contains
struct Rating {
+ UserUUID identifier
+ any ratings
}
Rating "1" --- "1" UserUUID : contains
class RatingManager implements Manager {
+ {static} List<RatingTierMatch> ratingTierMatch
+ {static} Rating GetCurrentUserRating()
}
RatingManager "1" --- "N" RatingTierMatch : contains
RatingManager --- User : use
RatingManager --- Rating : use
class UserSessionManager implements Manager {}
RatingManager --- UserSessionManager : use
RatingManager --- RatingStorageController : use
class RatingStorageController<T> implements StorageController {}
RatingStorageController --- Rating : use
class RatingsSubSystem {
+ {static} RatingManager ratingManager
+ {static} RatingStorageController ratingStorageController
}
RatingsSubSystem "1" o-- "1" RatingManager : contains
RatingsSubSystem "1" o-- "1" RatingStorageController : contains
@enduml