Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
citizen-science
symbai
Commits
67ca5a86
Commit
67ca5a86
authored
May 01, 2014
by
Dave Griffiths
Browse files
docs
parent
f5d8f4a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
67ca5a86
...
@@ -35,10 +35,10 @@ other clients.
...
@@ -35,10 +35,10 @@ other clients.
In this way, data changes are merged and propagated through the system.
In this way, data changes are merged and propagated through the system.
Syncing
Syncing
algorithm
-------
-------
----------
Sending data from client to server:
Sending data from client to server
is all about dirty flags
:
| Android (client) | Raspberry Pi (server |
| Android (client) | Raspberry Pi (server |
|-------------------------------|------------------------------|
|-------------------------------|------------------------------|
...
@@ -46,6 +46,8 @@ Sending data from client to server:
...
@@ -46,6 +46,8 @@ Sending data from client to server:
| For each dirty entity, send all dirty attributes | Return message to confirm reciept |
| For each dirty entity, send all dirty attributes | Return message to confirm reciept |
| | Overwrite all dirty attributes, increment version number |
| | Overwrite all dirty attributes, increment version number |
Receiving changes from the server to the client is all about version numbers:
| Android (client) | Raspberry Pi (server |
| Android (client) | Raspberry Pi (server |
|-------------------------------|------------------------------|
|-------------------------------|------------------------------|
| Request all entity version numbers | Send versions... |
| Request all entity version numbers | Send versions... |
...
@@ -54,12 +56,15 @@ Sending data from client to server:
...
@@ -54,12 +56,15 @@ Sending data from client to server:
Code dependancies
-----------------
Common code is stored in /eavdb
|
ktv | ktv-list | sql
|
|
Notes | |
|
| ----|----------
-------|-------
----------------|
| ----|----------
|
----------------|
|
|
racket-fix |
|
Low level (data types and platform stuff) | ktv | ktv-list
|
sql/
racket-fix
|
|
entity-values | entity-insert | entity-get |
|
Entity read/write |
entity-values | entity-insert | entity-get |
| entity-update |
|
Updating entities |
entity-update |
| entity-sync | entity-filter |
| Higher level features
| entity-sync | entity-filter |
| eavdb |
|
Top level stuff |
eavdb |
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment