-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUseUML.use
More file actions
100 lines (87 loc) · 1.49 KB
/
UseUML.use
File metadata and controls
100 lines (87 loc) · 1.49 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
model FamilyTaskManager
enum Category {Material, Grocerie}
enum TaskState { Active, Completed, Cancelled }
class Task
attributes
id : Integer
title : String
note : String
dueDate : Integer -- Should be date
recurrent : Boolean
estimatedTime : Real
rewardPts : Integer
state : TaskState
operations
assignUser()
unassignUser()
completeTask()
cancelTask()
grantReward()
end
class User
attributes
id : Integer
fName : String
lName : String
isParent : Boolean
profilePicId : Integer
accumulatedPts : Integer
operations
getIsParent()
getPassword()
end
class Tool
attributes
id : Integer
name : String
supply : Integer
pictureID : Integer
end
class ShoppingItem
attributes
id : Integer
name : String
quantity : Integer
needToBuy : Boolean
category : Category
end
class Family
attributes
id: Integer
operations
requestTaskCreation()
lookForTask()
addToTaskList()
requestSwitchUser()
addShoppingItem()
addToShoppingList()
end
association CreatedBy between
Task[*] role created
User[1] role creator
end
association AssignedTo between
Task[*]
User[0..1]
end
association Task__Tool between
Task[*]
Tool[*]
end
-- All family associations should be unidirectional, but Use won't let me
association Family__Task between
Family[1]
Task[*]
end
association Family__User between
Family[1]
User[1..*]
end
association Family__Tool between
Family[1]
Tool[*]
end
association Family__ShoppingItem between
Family[1]
ShoppingItem[*]
end