This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEntity.puml
87 lines (85 loc) · 1.83 KB
/
Entity.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@startuml
package entities {
'abstract class Entity {
' -id: double[1]
' -creationDate: Date[1]
'}
abstract class Owner {
}
class User {
-name: String[1]
-password: String[1]
-email: String[1]
}
class Dojo {
-name: String[1]
}
class Glove {
-macAddress: String[1]
-name: String[1]
}
enum Hand {
RIGHT,
LEFT
}
enum Role {
USER,
ADMIN
}
class Training {
-endedDate: Date[1]
}
class Series {
}
class Hit {
-duration: int[1]
-velocity: double[1]
-accuracy: float[1]
}
class HitRef {
-index: int[1]
-name: String[1]
-duration: int[1]
-velocity: double[1]
-accuracy: float[1]
}
class SeriesRef {
-name: String[1]
-numberOfSequences: int[1]
}
class VectorRef {
-index: int[1]
-xAxis: float[1]
-yAxis: float[1]
-zAxis: float[1]
}
enum TrainingStatus {
PENDING,
IN_PROGRESS,
PAUSED,
FINISHED
}
'Entity <|-- Owner
'Entity <|-- Glove
'Entity <|-- Training
'Entity <|-- Set
'Entity <|-- Hit
'Entity <|-- SetRef
'Entity <|-- VectorRef
Owner <|-- User
Owner <|-- Dojo
User "1" --> "0..* -trainings" Training
Training "1" --> "1..* -series" Series
Training --> "1 -status" TrainingStatus
Series "1" --> "1..* -combination" Hit
SeriesRef --> "1..* -combination" HitRef
SeriesRef "0..* -seriesRef" <-- "0..1" User
HitRef "1" --> "1..* -vectorRefs" VectorRef
Series "*" -- "1 -series" SeriesRef
Owner "1 -owner" <-- "*" Glove
Dojo "1" --> "0..* -users" User
User "1" --> "0..2" Glove
User -left-> "1 -role" Role
Glove -> "1" Hand
}
@enduml