CSC/ECE 517 Spring 2015 S1503 LWJZ: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
==Background==
==Background==
===What’s Sahana Eden?===  
===What’s Sahana Eden?===  
Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors. It is the latest evolution of Sahana Software which was initially developed by members of the information technology (IT) community in Sri Lanka to provide solutions for the relief effort following the 2004 Indian Ocean Tsunami. <br>
Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors. It is the latest evolution of Sahana Software which was initially developed by members of the information technology (IT) community in Sri Lanka to provide solutions for the relief effort following the 2004 Indian Ocean Tsunami.  
<ref>http://eden.sahanafoundation.org/wiki/BluePrint/Mobile/EdenMobileFramework </ref><br>


===What does Sahana Eden do?===
===What does Sahana Eden do?===
Line 79: Line 80:
==Documentation==
==Documentation==
former developer discussion about Sahana Oden  
former developer discussion about Sahana Oden  
*An [https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/sahana-eden google discussion], explaining former problems developers met and corresponding solutions
*An [http://eden.sahanafoundation.org/wiki/BluePrint/Mobile/EdenMobileFramework basic introduction] about the framework of Edenmobile including application design, source   
*An [http://eden.sahanafoundation.org/wiki/BluePrint/Mobile/EdenMobileFramework basic introduction] about the framework of Edenmobile including application design, source   
*An [https://docs.google.com/a/ncsu.edu/document/d/11bblC7klisYjN7Gjw6hDcs5TZ8uesJD3o2xnM2gI914/edit# overview of all the Sahana Eden projects]
*An [https://docs.google.com/a/ncsu.edu/document/d/11bblC7klisYjN7Gjw6hDcs5TZ8uesJD3o2xnM2gI914/edit# overview of all the Sahana Eden projects]
*An [http://eden.sahanafoundation.org/wiki/BluePrint/Mobile#J2ME list] of all the requirements need to be done in this project.  
*An [http://eden.sahanafoundation.org/wiki/BluePrint/Mobile#J2ME list] of all the requirements need to be done in this project.  
*An [https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/sahana-eden google discussion], explaining former problems developers met and corresponding solutions
*[https://github.com/szhao8/eden Open source code about Sahana Eden]
*[https://github.com/szhao8/eden Open source code about Sahana Eden]
*[https://github.com/szhao8/EdenMobile Open source code about Eden Mobile]
*[https://github.com/szhao8/EdenMobile Open source code about Eden Mobile]

Revision as of 19:25, 8 April 2015

S1503. Sahana Eden Mobile Client

Introduction

Purpose

This project aims at adding new functions to the EdenMobile client app to serve users better.These functions will allow mobile users to add new shelters and hospitals, get information of hospitals and shelters offline/online, get GPS location of device, and provide multilingual support.

Background

What’s Sahana Eden?

Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors. It is the latest evolution of Sahana Software which was initially developed by members of the information technology (IT) community in Sri Lanka to provide solutions for the relief effort following the 2004 Indian Ocean Tsunami. <ref>http://eden.sahanafoundation.org/wiki/BluePrint/Mobile/EdenMobileFramework </ref>

What does Sahana Eden do?

Sahana Eden provides various of functions which are sorted in several different modules.

Organization Registry

  • Sahana Eden’s Organization Registry can track what organizations do and organizations also could record their Offices, Warehouse and Field Sites including their locations so they can be mapped as well as links to other modules such as Human Resources, Assets and Inventory.

Project Tracking

  • Sahana Eden provides a valuable tool which could tell people what are going on about the project to help organizations responding to disasters know where the greatest needs are and coordinate with others who are engaged in similar work.

Human Resources

  • There are contact lists in Sahana Eden which can be access by users to ensure that the right people can be contacted at the right time.

Inventory

  • Sahana Eden can be used to manage inventories of items and match requests for items with warehouses and other facilities which have them available. Sahana Eden can support multiple Catalogs of Items as well as providing alternative items to ensure more effective use of supplies.

Assets

  • Sahana Eden is able to manage assets which are needed to respond to disasters, track where they are, who they have been assigned to, and what condition they are in. This ensures that assets are used effectively and efficiently.

Assessments

  • Sahana Eden can be used to collect and analyze information from assessments to help organizations more effectively plan their disaster management activities.

Scenarios & Events

  • To help organizations better plan for disasters, Sahana Eden can be used to plan for different scenarios, including recording what human resources, assets, facilities and tasks will be needed to effectively respond.

Map

  • Sahana Eden has fully integrated mapping functionality which allows any location-based data to be visualized on a map. Maps provide situational awareness which is essential when either planning to prepare for or respond to a disaster.

Shelter Management

  • When disasters are widespread and result in population displacement, understanding and tracking the landscape of shelters - and the people in them - is a critical activity. The Shelter Registry provides functionality to list and track information on shelters and on the people arriving and departing.

Messaging

  • Sahana Eden provides support for messages to be sent to one or Distribution Groups by Email, SMS, Twitter and Google Talk. Interactive messages can also be set up to allow people to send short message queries to Sahana Eden and receive automatic responses.


Sahana Eden Architecture

The basic Sahana Eden architecture is as follows:

Web Server Apache Other web servers can also be used, such as Cherokee.
Application Sahana Eden
Web Application Framework Web2Py
Programming Language Python & Java Script
Database MySQL, PostgreSQL, or SQLite

MySQL, PostgreSQL, and SQLite are supported.

Other databases should be usable without major additional work since Web2Py supplies many connectors.

Operating System Linux (Debian recommended) Windows and Mac OS X are possible, but only recommended for single-user environments.

Scope

We will realize the signup, secure login and logout function, which would add new module into the following files:

  • communication.js
  • controller.js
  • model.js
  • view.js

We will make it available in multiple languages environment which will implement the languages fold. We will add some new items including:“ hospital”, “vehicles” which will be added into the folder named “plugins”. The following file will be added into their corrsponding folders:
Hospitals:

  • mHospital.js (model)
  • hospital.js, editHospital.js, hospital.html, hospital.css, editHospital.html (views)
  • hospitalController.js (controller)
  • config.js(Giving details on the configuration of the plugin)

Vehicles:

  • mVehicles.js (model)
  • vehicles.js, editVehicles.js, vehicles.html, vehicles.css, editVehicles.html (views)
  • vehiclesController.js (controller)
  • config.js(Giving details on the configuration of the plugin)

Also, we find some bugs and eliminate them. These could be any possible file in this project.

Documentation

former developer discussion about Sahana Oden


Design

Overview

In this design, we add several modules to the EdenMobile client app to allow mobile users to add new shelters and hospitals. Also, users can see the list of hospitals and shelters both offline and online and we can pass users' location to the nearest medical facilities. At last, a multilingual environment is also supported.

Requirements

The major requirements are that:

  • Secure login;
  • Multiple languages;
  • users are able to work offline, and update forms and content when online;
  • The initial forms that will be implemented are Hospitals, and Shelters;

Architecture

Use Cases

  • 1. Security Log in
    • Actor: Mobile App User
    • Actions:
      • User fills login form, which includes username, password and Captcha code.
      • Submit form to Sahana Server.

  • 2. Submit forms to server
    • Actor: Mobile App User
    • Actions:
      • User logs in to Sahana Server.
      • User fills forms of shelter/warehouse/disaster etc.
      • Submit form to Sahana Server.

  • 3. Submit forms to local storage
    • Actor: Mobile App User
    • Actions:
      • User fills forms of shelter/warehouse/disaster etc.
      • Submit form to local database.

  • 4. Download new forms from server
    • Actor: Mobile App User
    • Actions:
      • User logs in to Sahana Server.
      • Download new forms from server

  • 5. Synchronize local data with server
    • Actor: Mobile App User
    • Actions:
      • User logs in to Sahana Server.
      • Synchronize local data with server

  • 6. Multi-Language Support
    • Actor: Mobile App User
    • Actions:
      • User logs in to Sahana Server.
      • Choose a language from settings page

  • The UML use case diagram is shown below:
Use Case Diagram

References