android around the clock

15
Android around the clock Authors : Lior Narkis Maxim Chepurnyak Supervisor : Ittay Eyal

Upload: kedem

Post on 22-Feb-2016

26 views

Category:

Documents


0 download

DESCRIPTION

Android around the clock. Authors: Lior Narkis Maxim Chepurnyak Supervisor: Ittay Eyal. Agenda. Motivation Project Goals CTP algorithm Application top-level Main modules overview Clock synchronization Membership Playback command dispatch Media Player control GUI - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Android around the clock

Android around the clockAuthors :

Lior NarkisMaxim Chepurnyak

Supervisor:Ittay Eyal

Page 2: Android around the clock

Agenda Motivation Project Goals CTP algorithm Application top-level Main modules overview

Clock synchronization Membership Playback command dispatch Media Player control GUI

Design environment Milestones

Page 3: Android around the clock

Motivation Android based smart-phones are very

common nowadays. These phones are used by many also as a media device.

We want to let a group of two or more of these phones, play the same song at the same time.

The playback can be controlled by any of group member.

Page 4: Android around the clock

Project goals Creating a distributed Android application

which will play a song on different devices all together.

The application will manage the group membership by supporting joining and leaving.

The application will keep all the group members clocks synchronized to each other.

The application will ensure global ordering of users’ commands.

Page 5: Android around the clock

Classless Time Protocol A network clock synchronization

protocol Based on Omer Gurewitz’s work

published in IEEE/ACM TRANSACTIONS ON NETWORKING, VOL. 14, NO. 4, AUGUST 2006

Improvement to NTP

Page 6: Android around the clock

Application top-level

• The diagram is neither complete nor final

Page 7: Android around the clock

Clock synchronization module

Implements CTP. Provides a synchronized clock for other

modules. Provides a level of confidence

parameter indicating the CTP quality.

Page 8: Android around the clock

Clock synchronization module – class diagram

Page 9: Android around the clock

Clock synchronization module – sequence diagram for NTP packet life-cycle

Page 10: Android around the clock

Membership module Maintaining a list of active

members(“alive” messages). Support joining and leaving(avoiding

partitions and livelocks). Provides the members list to the rest of

the modules.

Page 11: Android around the clock

Playback command dispatch(PCD) module Broadcasts commands list sent by the

MPC to all group members(including itself).

Delivers commands list to the MPC if no later commands list was delivered before.

Page 12: Android around the clock

Media player control(MPC) module Drives the Android media player. Receives commands from the GUI and

sends those to the PCD. Receives commands lists delivered by

the PCD. Processing the commands list.

Page 13: Android around the clock

GUI module Simple. Provides joining and leaving a group. Provides basic playback operations.

Page 14: Android around the clock

Design Environment The following tools/packages will be used:

Eclipse JRE 7+ JDK 1.7+ Android SDK tools for eclipse Paradigm UML plugin for eclipse – community

edition The project will be written in Java, using Android

libraries, and will be checked on the Android emulator and real Android smart-phones.

Page 15: Android around the clock

Milestones Completion of mid semester report. Basic clock synchronization module Basic membership module Basic PCD module Basic MPC module Basic GUI module Basic app