+ All Categories
Home > Documents > Runking : a context aware running ranking system

Runking : a context aware running ranking system

Date post: 22-Feb-2016
Category:
Upload: noe
View: 40 times
Download: 0 times
Share this document with a friend
Description:
Runking : a context aware running ranking system. Agenda. Motivation System Architecture Mobile Data Management Context Awareness Q & A. Motivation. People are lazy when doing fitness Import competition among friends to push them to do more exercise “Mike is running longer than Jim” - PowerPoint PPT Presentation
20
Runking: a context aware running ranking system
Transcript
Page 1: Runking : a context aware running ranking system

Runking: a context aware running ranking system

Page 2: Runking : a context aware running ranking system

Agenda

• Motivation

• System Architecture

• Mobile Data Management

• Context Awareness

• Q & A

Page 3: Runking : a context aware running ranking system

Motivation

• People are lazy when doing fitness

• Import competition among friends to push them to do more exercise– “Mike is running longer than Jim”– “You’re the laziest among your friends”

• Track and rank their degree of running activity

Page 4: Runking : a context aware running ranking system

System Architecture

• Mobile Client-Server Model with:– Single Server– Multiple Clients

Page 5: Runking : a context aware running ranking system

Server Side Design• A lightweight server

implementation containing all business logic and data storage

• Database Server– NoSQL database MongoDB

• Application Server– Python with Asynchronous

socket server Mongo DB

User InformationActivity

Information

Python Script Engine

Asynchronous Socket Server

MongoDB Python Driver

TCP 4009 Port

Page 6: Runking : a context aware running ranking system

Database Design

Name Data type Description

uid string User identification

pwd string Login password

follow string array Whom the user have followed

Name Data type Description

uid string User Identification

beg date begin time of the activity

end date finish time of the activity

cur date the time that the activity was saved to database

length integer length of the running

trace string GPS latitude and longitude trace

User Collection

Activity Collection

Page 7: Runking : a context aware running ranking system

Client Side Design

Smart Client

Activity List

Rank Chart

Trace on Google

Map

Settings

Context aware logging

Data manage

ment

Page 8: Runking : a context aware running ranking system
Page 9: Runking : a context aware running ranking system

Mobile Data Management

• Disconnected Operation– Local Data Copy– Local Command Queue

• Data Dissemination– Pub / Sub Model– Push & Pull

• Data Caching– DC-PS-SL

Page 10: Runking : a context aware running ranking system

Disconnected Operation

• User can view / modify the data no matter there is network or not.

• If network is available, communicate with server directly.

• If no network, store the operation command sequence into the local queue.

• Send the queued commands when reconnected.

Page 11: Runking : a context aware running ranking system

Disconnected Operation

Page 12: Runking : a context aware running ranking system

Local Command Queue Operation

Page 13: Runking : a context aware running ranking system

Data Dissemination

• Pub / Sub Model

• User can subscribe messages from interested users in “Setting -> Friend Setting”

• Only those subscribed message will be disseminated to user.

Page 14: Runking : a context aware running ranking system

Pull and Push

• Pull the activity list down to pull data from server manually.

• Data push can be enabled in “Settings”

Page 15: Runking : a context aware running ranking system

Push Policy Design

• New Friend Push:– Push as soon as some user

follow you

• New Activity Push:– Push only when:– Your rank will be surpassed

soon. (lead < 5%)– The rank has changed

Page 16: Runking : a context aware running ranking system

Data Caching

• Cache data on cellphone

• Replace cached item only when expired.

• User can set the cache period in Settings, default is 60 days.

• User can manually clear all cached items

Page 17: Runking : a context aware running ranking system

Protocol Design: DC-PS-SL

Page 18: Runking : a context aware running ranking system

DC-PS-SL

• DC: (Delta Consistency) Server only push to client when satisfy certain policy (as described in push policy design).

• PS: Push

• SL: (Stateless) Server doesn’t maintain state information of client, client may miss the push when disconnected.

Page 19: Runking : a context aware running ranking system

Context Awareness

Page 20: Runking : a context aware running ranking system

ThanksQ & A


Recommended