This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph.dot
214 lines (182 loc) · 5.63 KB
/
graph.dot
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
digraph eternityII{
newrank=true;
node [
//fontname = "Source Code Pro"
//fontsize = 12
shape="record"
fixedsize=false
]
//nodesep=1.0
edge [
//fontname = "Source Code Pro"
//fontsize = 8
//fontcolor= blue
style=dashed
dir=both
arrowtail=none
]
subgraph clusterPathFinder{
label = "PathFinder"
path
pvalue
cvariable
value
variable
}
subgraph clusterSolver{
label=Solver
solver
pcsolver
}
subgraph clusterModel{
label=Model
model
cmodel
pmodel
}
subgraph clusterObs{
label="Observer-Observable"
observer
observable
}
{rank=source; solver pcsolver}
{rank=same; constraint pcconstraint}
{rank=same; model observable}
/*
* Core
*/
path [label = "{PathFinder
|
- variable : unique_ptr≤VariableInterface≥\l
- value : unique_ptr≤ValueInterface≥\l
|
+ set(unique_ptr≤VariableInterface≥) : void\l
+ set(unique_ptr≤ValueInterface≥) : void\l
+ nextValue(DataInterface &) : DataInterface\l
+ nextVariable(int &) : DataInterface\l
}"]
/*
* Interfaces
*/
constraint [
label = " { «ConstraintInterface»
|
//TOADAPT
# first : ModelInterface &\l
# second : ModelInterface &\l
|
+ rollback(int &depth) : void
}"
]
solver [
label = "{ «SolverInterface»
||
+ initialize(PathFinder &) : void\l
+ resolve() : void
}"
]
model [label = "{ «ModelInterface»
||
+ rollback(int &depth) : void\l
}"]
value [label = "{ «ValueInterface»
||
+ initialize(GameData &) : void\l
+ next(DataInterface &) : DataInterface\l
}"]
variable [label = "{ «VariableInterface»
||
+ initialize(GameData &) : void\l
+ next(int &depth) : DataInterface\l
}"]
data [label = "{ «DataInterface»| + valid: bool\l}"]
observer [label = " { «ObserverInterface»
||
//TOADAPT\l
+ accepted(DataInterface &) : void\l
+ discarded(DataInterface &) : void\l
}"]
observable [label = "{ «ObservableInterface»
|
# observers:vector≤Observer *≥\l
|
+ add(Observer &) : void\l
+ remove(int &) : void\l
+ accept(DataInterface &) : void\l
+ discard(DataInterface &) : void\l
}"]
/*
* classes
*/
pcsolver [label = "{PieceCaseSolver
|
- pathFinder : PathFinder *\l
|
- resolve(int &depth) : void\l
- resolve(VariableData &, int &) : void\l
- isValid(PieceData &) : bool\l
- isValid(CaseData &) : bool\l
}"]
pcconstraint [label = "{PieceCaseConstraint
||
+ accept(CaseData &): void\l
+ accept(PieceData &): void\l
+ discard(CaseData &): void\l
+ discard(PieceData &): void\l
}"]
pmodel [label = "{PieceModel
|
+ casesQte: vector≤int≥\l
+ casesPossible: vector≤vector≤vector≤vector≤bool≥≥≥≥\l
+ isAvailable : vector≤bool≥\l
- casesQteHistory : vector≤vector≤int≥≥\l
- casesPossibleHistory: vector≤vector≤vector≤vector≤vector≤bool≥≥≥≥≥\l
- isAvailableHistory : vector≤vector≤bool≥≥\l
|
}"]
cmodel [label = "{CaseModel
|
+ piecesQte: vector≤vector≤int≥≥\l
+ piecesPossible: vector≤vector≤vector≤vector≤bool≥≥≥≥\l
+ isAvailable : vector≤vector≤int≥≥\l
- piecesQteHistory : vector≤vector≤vector≤int≥≥≥\l
- piecesPossibleHistory: vector≤vector≤vector≤vector≤vector≤bool≥≥≥≥≥\l
- isAvailableHistory: vector≤vector≤vector≤bool≥≥≥\l
|
}"]
pvalue [label = "{PieceNormalValue
||
+ next(PieceData &) : PieceData\l
}"]
cvariable [label = "{CaseRowscanVariable
||
+ next(int &depth) : CaseData\l
}"]
pdata [label = "{PieceData
|
+ id : int\l
+ rotation : int\l
}"];
cdata [label = "{CaseData
|
+ x: int\l
+ y: int\l
}"];
// Inherance
pcsolver -> solver [arrowhead = empty]
pcconstraint -> constraint [arrowhead = empty]
{pmodel cmodel} -> model [arrowhead = empty]
pvalue -> value [arrowhead = empty]
cvariable -> variable [arrowhead = empty]
constraint -> observer [arrowhead = empty]
model -> observable [arrowhead = empty]
{pdata cdata} -> data
// Composed of
path -> {pvalue cvariable}[arrowtail=diamond arrowhead=none style=normal headlabel=1 taillabel=1]
// agregates
pcsolver -> {path,pcconstraint} [ arrowtail=odiamond style=normal arrowhead=none headlabel=1 taillabel=1];
{pcconstraint pvalue} -> pmodel [ arrowtail=odiamond,style=normal arrowhead=none headlabel=1 taillabel=1];
{pcconstraint cvariable} -> cmodel [ arrowtail=odiamond,style=normal arrowhead=none headlabel=1 taillabel=1];
{pcconstraint pmodel pvalue pcsolver path} -> pdata[ arrowtail=odiamond,style=normal arrowhead=none headlabel=1 taillabel=1];
{pcconstraint pcsolver path cmodel cvariable}-> cdata [ arrowtail=odiamond,style=normal arrowhead=none headlabel=1 taillabel=1];
}