Skip to content

Commit 568ecda

Browse files
committed
updated best practice page
1 parent 77f0e19 commit 568ecda

13 files changed

Lines changed: 207 additions & 88 deletions

docs/carp-mobile-sensing/best-practice.mdx

Lines changed: 132 additions & 66 deletions
Large diffs are not rendered by default.
227 KB
Loading
183 KB
Loading
250 KB
Loading
605 KB
Loading
171 KB
Loading
184 KB
Loading
295 KB
Loading
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
%% CAMS software architecture Mermaid source
2+
%% Regenerate SVG (requires Mermaid CLI):
3+
%% npx -y @mermaid-js/mermaid-cli -i docs/carp-mobile-sensing/images/cams_architecture.mmd -o docs/carp-mobile-sensing/images/cams_architecture.svg
4+
5+
flowchart LR
6+
subgraph CL[Client manager layer]
7+
SCM[SmartPhoneClientManager]
8+
REG[Registries]
9+
CTL[Controllers<br/>Device / AppTask / Notification]
10+
SDC[SmartphoneDeploymentControllers]
11+
SCM --> REG
12+
SCM --> CTL
13+
SCM --> SDC
14+
end
15+
16+
subgraph SL[Service layer]
17+
DS[DeploymentService]
18+
DM[Data managers<br/>SQLite / File / Firebase / CAWS]
19+
end
20+
21+
subgraph PL[Sampling layer]
22+
SP[Sampling packages]
23+
PB[Probes]
24+
SRC[Flutter plugins / OS sensors / external devices]
25+
SP --> PB
26+
PB --> SRC
27+
end
28+
29+
DS --> SCM
30+
REG --> SP
31+
SDC --> DM
32+
PB --> DM
33+
34+
classDef client fill:#FFF4E5,stroke:#C30E32,stroke-width:1px,color:#3a2a1a;
35+
classDef service fill:#EAF4FF,stroke:#2B6CB0,stroke-width:1px,color:#1A365D;
36+
classDef sampling fill:#EAFBF2,stroke:#2F855A,stroke-width:1px,color:#1C4532;
37+
38+
class SCM,REG,CTL,SDC client;
39+
class DS,DM service;
40+
class SP,PB,SRC sampling;

docs/carp-mobile-sensing/images/cams_architecture.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)