Giter VIP home page Giter VIP logo

hackfestmain's Introduction

youSupply – Software Requirements Specification

Preface

When a disaster strikes, the main bottleneck for recovery is resources, or the lack thereof. However, this is not a problem that can be solved by simply adding more money and resources, the real problem is inefficient distribution. This is a problem that can even affect centralized organizations like NGOs and is a major prohibitor of recovery for decentralized systems. Each household possesses resources, yet faces needs. If these providers and consumers are made aware of each other, they can help each other with their deficits.

Glossary

  1. Source - Person offering resources
  2. Sinks - Person requesting resources
  3. Nodes - Representation of Sources and Sinks algorithmically
  4. Cluster - Set of one or more sources and sinks, defined geographically
  5. System - Set of clusters
  6. Deficits - Set of sinks which cannot be satisfied by the sources in its cluster
  7. Extras - Set of sources that do not contribute to the feasibility of the cluster
  8. Excesses - Set of sources which contain surplus resources after satisfaction of its cluster
  9. Feasible Cluster - Subset of a cluster that has no deficits
  10. Perfect Cluster - Subset of a cluster that is Feasible and minimum excess(es)
  11. Free Pool - Set of Deficits and Extras in a system
  12. Feasibility Score - A score that evaluates a (something) taking distance and feasibility
  13. Client - An account type that creates sources and sinks
  14. Delivery Agent(Agent) - An account type that satisfies sources and sinks
  15. Route - A path through a cluster that satisfies all the nodes
  16. Delivery - A route is built of individual deliveries

System Architecture

​The core of the system is a database that users can connect to and interact with, so we implement a data-centered architecture. The database contains all the data of the needs and surpluses of all users. 

​Through a mobile frontend application, users can post their requirements and delivery agents can choose to satisfy requirements. In order for the algorithm to function, there must be a backend system that tracks the needs and can find optimal routes in an area. The backend is also needed for the frontend to interact with the database.

A backend is also required for integration with other organizations, it can be a public API or a specialized frontend that provides information on a region. In order to implement misuse prevention and reinforce community health, users should be able to rate other users or report them

System Requirements Specification

Functional Requirements

Users should be able to post their needs and surpluses

Users will only be able to add items from a pre defined list

Delivery agents should be able to pick what requests they can satisfy

There should be an algorithm to optimize requests and supplies to satisfy all requests

NGOs will be able to view overall system info and useful metrics (such as number of requests, number of deliveries, etc) to help them plan their efforts

Measures should be implemented to prevent misuse

​Users should be able to report other users for a variety of reasons such as not reporting their actual requirements or other misuse.

The reporting system should be factored into the algorithm to decide optimal routes

​Misuse prevention starts from the user’s mindset and as such, users should be encouraged to participate in a genuine manner through positive feedback systems such as likes or reviews

Users should be able to directly connect with other users bypassing the algorithm if they so choose

Non Functional Requirements

​The app should be very accessible to users so it is very important that the main functionality must be user friendly and easy to do. There should be minimal region for error

There should be features to foster a sense of community among the users

​It should be a very simple process for a user to add a request to the system. The user should be able to add a request in under 2 minutes

​The algorithm should have an accuracy of over 95% and take current situations into account such as inaccessible areas.

System Evolution

​The community system is very user focused and as such will change over the course of testing and throughout its lifecycle as users start exploiting the system. The direct connection system will also change during testing based on how users utilise the system.

System Models

The system flow is as follows:

1. Multiple users post sets of requirements containing needs, surpluses or both 2. The algorithm uses the data posted and finds optimal paths between the users to satisfy the requirements 3. Delivery agents can find the optimal route closest to them and choose to follow the route or manually claim jobs based on their preferences 4. The delivery agents then distribute the resources and mark them as delivered, which the users must validate and the request is fulfilled

All the steps occur concurrently but every piece of data must flow in this order

Data Flow Diagram

Level 0 (Context Diagram):

WhatsApp Image 2024-07-04 at 14 13 13

Level 1:

WhatsApp Image 2024-07-04 at 14 13 22

Level 2:

DFD for User

WhatsApp Image 2024-07-04 at 14 13 34

DFD for Delivery Agent

WhatsApp Image 2024-07-04 at 14 13 39

Level 3:

WhatsApp Image 2024-07-04 at 14 28 14

hackfestmain's People

Contributors

akashshanmugraj avatar ther3dwizard avatar sanjithaa26 avatar pramo20 avatar okeerthikuttan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.