2015-09-141 These materials are prepared only for the students enrolled in the course Distributed...
-
Upload
ginger-dalton -
Category
Documents
-
view
215 -
download
2
Transcript of 2015-09-141 These materials are prepared only for the students enrolled in the course Distributed...
23-04-19 1
• These materials are prepared only for the students enrolled in
the course Distributed Software Development (DSD) at the
Department of Computer Science and Engineering,
University of Mälardalen, Västerås, Sweden and at the Faculty
of Electrical Engineering and Computing, University of Zagreb,
Croatia (year 2003/2004).
• For all other purposes, authors’ written permission is needed!
• The purpose of these materials is to help students in better
understanding of lectures in DSD and not their replacement!
NOTICE!
23-04-19 2
Selected Topics in Software Engineering -
Distributed Software Development
23-04-19 3
The Interactive Museum Team Presents:
Interactive Museum
Project Current state
23-04-19 4
• Introduction
• Current status for :– Mote network– Main Application– PDA Application– Web Application– Database
• Project status update
What we will talk about?
23-04-19 5
Mote network
• Main concern: control of the radio range– Dynamic motes: small (0.5 m – 4 m) range
• How to achieve such small range?
– Static & base: large ( > 30 m)
• Solution: abilitiy to control mica2 RF Transciever
• Test results: minimal ranges– 0.4 – 0.5 m– 3.3 – 3.9 m
23-04-19 6
Mote network modeling
• UML is inadequate
• Each object in mote network is microcontroller based computer– Preemption (non-deterministic state switching,
even when in transition between states)– composite states modeling
• Single mote can be in one or more states at a time• Whole mote network also • State of all motes determines state of network
23-04-19 7
Mote network modeling
– Overall concurrency / independent execution of every network entity
• Radio communication between motes is lossy by nature
• Solution for model representation:
Petri Nets
23-04-19 8
Mote network as Petri net
23-04-19 9
Mote network - status
• Current state:– Prototype of dynamic mote– Static mote prototype– Base mote (GenericBase from TinyOS library)– First functional version of mote network to
application bridge (for C#)
23-04-19 10
• Pocket PC Emulator– Simulates the PDA through VS 2005– Works perfect with the PDA Application
PDA Application
• PDA Device– Upgraded to .NET Compact Framework 2.0– Working WiFi connection using WPA-PSK
with TKIP encryption– The PDA Application works perfect
23-04-19 11
PDA Application
23-04-19 12
• PDA Application Connections– Connects to a PDA Server (Windows Service)– Interacts with a Web Service– (Maybe video streaming in the future)
• PDA Application Functionalities– Bookmarks– History– Text/Image and maybe video
PDA Application
PDA Server
• Windows Service
• Functionalities– Identify visitor PDA to inform of available
exhibit information
• Communication– Connects to PDA through TCP/IP streams– Connects to database through Web Services– Messages from Mote Server by RPC
23-04-19 13
PDA Server – Example
• Message recieved when a visitor reaches the proximity of an exhibit
• Dynamic Mote ID and Static Mote ID
• Consults the database
• Alerts the PDA of available information on the viewed exhibit
23-04-19 14
23-04-19 15
Web Service
• Database Requests– Supply the interaction with the actual
database– The central point of data communication (will
be used by the main application, Web application and the PDA)
• Response type– From the beginning we had objects, now
changed to DataSet
23-04-19 16
Web Application
23-04-19 17
Web Application (logged in)
23-04-19 18
Based on ”Relational Entities”
Database Design
–The Session
–The Visitor
– A central “Modification Table”
–The Exhibit
–The Employee / Admin
–The PDA
Exhibit Entities
Creator
PK CreatorID
FK1 OriginID CreatorName DateOfBirth DateOfDeathFK2 ModificationID
Origin
PK OriginID
Country CityFK2 ModificationID
Placement
PK PlacementID
LocationX LocationYFK1 FloorPlanIDFK2 ModificationID
FloorPlan
PK FloorPlanID
FloorPlanLocationFK1 ModificationID
StaticMote
PK StaticMoteID
FK1 ExhibitionIDFK2 PlacementIDFK3 ModificationID
CreatorInformation
PK CreatorInformationID
FK2 MultimediaContentIDFK1 CreatorIDFK3 ModificationID
ExhibitInformation
PK ExhibitInformationID
FK1 ExhibitIDFK2 ModificationIDFK3 MultimediaContentID
MultimediaContent
PK MultimediaContentID
MultimediaContent MultimediaContentParameter MultimediaContentMimeTypeFK1 ModificationID
Exhibition
PK ExhibitionID
ExhibitionNameFK2 CreatorID CreatedYearFK1 OriginIDFK3 ModificationID
Visitor Entities
User
PK UserID
Password Username LastLoginFK1 ModificationID EmailAddress
ExhibitionVisit
PK,FK1 MuseumVisitIDPK,FK2 ExhibitionID
EnterTime LeaveTime
MuseumVisit
PK MuseumVisitID
FK1 UserID VisitDate
Session Entities
WebApplicationLog
PK WebApplicationLogID
FK2 UserIDFK1 LogID
Log
PK LogID
LogDate DescriptionFK1 LogCodeID
Session
PK SessionID
FK2 PDAID DynamicMoteIDFK1 MuseumVisitID RegistratorEmployee Invalidated
LogCode
PK LogCodeID
Type
AdminApplicationLog
PK AdminLogID
FK1 EmployeeIDFK2 LogID
PDA Entity Employee Entity
PDA
PK PDAID
IP DescriptionFK1 ModificationID
Employee
PK EmployeeID
EmailAddress Firstname Lastname Phone Address Zip Country EmploymentDateFK1 ModificationID LastLogin Authority DisplayName Password
ExhibitInformation
PK ExhibitInformationID
FK1 ExhibitIDFK2 ModificationIDFK3 MultimediaContentID
CreatorInformation
PK CreatorInformationID
FK2 MultimediaContentIDFK1 CreatorIDFK3 ModificationID
MultimediaContent
PK MultimediaContentID
MultimediaContent MultimediaContentParameter MultimediaContentMimeTypeFK1 ModificationID
Exhibition
PK ExhibitionID
ExhibitionNameFK2 CreatorID CreatedYearFK1 OriginIDFK3 ModificationID
ExhibitionVisit
PK,FK1 MuseumVisitIDPK,FK2 ExhibitionID
EnterTime LeaveTime
MuseumVisit
PK MuseumVisitID
FK1 UserID VisitDate
Creator
PK CreatorID
FK1 OriginID CreatorName DateOfBirth DateOfDeathFK2 ModificationID
Origin
PK OriginID
Country CityFK2 ModificationID
User
PK UserID
Password Username LastLoginFK1 ModificationID EmailAddress
Placement
PK PlacementID
LocationX LocationYFK1 FloorPlanIDFK2 ModificationID
FloorPlan
PK FloorPlanID
FloorPlanLocationFK1 ModificationID
PDA
PK PDAID
IP DescriptionFK1 ModificationID
Session
PK SessionID
FK2 PDAID DynamicMoteIDFK1 MuseumVisitID RegistratorEmployee Invalidated
StaticMote
PK StaticMoteID
FK1 ExhibitionIDFK2 PlacementIDFK3 ModificationID
LogCode
PK LogCodeID
Type
Employee
PK EmployeeID
EmailAddress Firstname Lastname Phone Address Zip Country EmploymentDateFK1 ModificationID LastLogin Authority DisplayName Password
Modification
PK ModificationID
AddedBy AddedDate LastModifiedBy LastModifiedDate
AdminApplicationLog
PK AdminLogID
FK1 EmployeeIDFK2 LogID
WebApplicationLog
PK WebApplicationLogID
FK2 UserIDFK1 LogID
Log
PK LogID
LogDate DescriptionFK1 LogCodeID
Project Status
• Communication– Group skype meetings – twice a week– Individual meetings (any time, any day)
• Skype• E-Mail
– Posting general information• FER Web• Google group• Forums
– Etc. (mobile or land line phone, ...)
Project Status
• Comments / Experiences / Problems– No problems
• Came to agreements for all discussed topics
– Very pleased that everything is going as planned (for now... ;) ), well except project cost
• Project Cost
Current Planned Cost 6200 €
Current Actual Cost 7900 €
Planned Project Cost 16750 €
Forecasted Project Cost 18450 €
Project Status
• Overall project status: on track
• Time schedule: on track
Finished week Forecast Id
Milestone Description
Responsible Dept./Initials Plan
Week +/- Actual
Metr Rem
M-001 Project Plan W45-06 W45-06 0 W45-06 M-002 Requirement Definition
Approved W46-06 W46-06 0 W46-06
M-003 Design Description Approved
W47-06 W47-06 0 W47-06
M-004 Product Prototype W51-06 W51-06
Project Status
• Activity plan: on track
Finished Next week Future
23-04-19 28