Giter Club home page Giter Club logo

ds_project's Introduction

DS_Project

  1. Add json.jar file from libs folder to build-path to handle json.

  2. Booking ID format to be {campusName}B{4-digitID}. Example: KKLB0012

  3. seperate logic into start and stop methods in server

  4. udp messages format to be {4-digit-sequenceNumber}-={function}-={param1}-={param2} etc.

    Example:

    Function Message Format
    createRoom 0001-=create-={adminID}-={roomNum}-={date}-={timeslots(comma seperated)}
    deleteRoom 0002-=delete-={adminID}-={roomNum}-={date}-={timeslots(comma seperated)}
    bookRoom 0003-=book-={studentID}-={campusName}-={roomNumber}-={date}-={timeslot}
    changeReservation 0004-=change-={studentID}-={oldBookingID}-={campusName}-={roomNumber}-={date}-={timeslot}
    cancelBooking 0005-=cancel-={studentID}-={bookingID}
    getAvailableTimeSlots 0006-=availability-={studentID}-={date}
  5. FrontEnd UDP Message to Replica Manager to be of formats

    • error:not-available if server is not available.
    • error:{expected_correct_answer} if wrong response.
  6. Server response messages:

    Function Success Message Failure Message
    createRoom success failed
    deleteRoom success failed
    bookRoom success: {bookingID} failed
    changeReservation success: {bookingID} failed
    cancelBooking success failed
    getAvailableTimeSlots success: KKL0 DVL0 WST0 failed
  7. Ports

    Component Port
    FrontEnd 4001
    Sequencer 5001
    ReplicaManger 6001
    KKL Server 7001
    DVL Server 7002
    WST Server 7003
  8. JSON format for representing database is available in RR-format.json file

P.S. { } in above formats needs to be excluded in actual implementation.

ds_project's People

Contributors

julianraj avatar rashmimanandhar avatar

Stargazers

Mudra Parikh avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

mudraparikh

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.