Git Product home page Git Product logo

assignment4's Introduction

Vector Clock

This repository contains the project template for completing Task 1, Task 2 of Assignment 4. Execute the commands from the root folder BCS-DS-Assignment-Package/tasks.

NOTE: After loading the project depending on which IDE (if using), you might see some file not found errors. However, they will disappear after you have successfully built the project using following command from the tasks folder.

Table of Contents

Project Structure

src
    ├── main
    │   └── java
    │       └── com
    │           └── assignment4
    │               └── tasks
    │                   ├── LTClientThread.java
    │                   ├── LamportTimestamp.java (Lamports Timestamp implementaion)
    │                   ├── Message.java (Message format to be exchanged between server and the clients. This class can be instantiated to hold and access the content of the message and the timestamp)
    │                   ├── ServerThread.java (Server thread)
    │                   ├── UdpLTClient.java (UDP client to use lamports Timestamp implementation)
    │                   ├── UdpServer.java (Server main implementation)
    │                   ├── UdpVectorClient.java (UDP client to use vector clock)
    │                   ├── VectorClientThread.java
    │                   └── VectorClock.java (VectorClock implementation)
    └── test
        └── java
            └── com
                └── assignment4
                    └── test
                        ├── LamportTimestampTest.java (Test file for LogicalClock.java)
                        └── VectorClockTest.java (Test file for VectorClock.java)

Run Server

On MacOS:
./gradlew build  -x test
./gradlew run -PchooseMain="com.assignment4.tasks.UdpServer"  
On Windows:
.\gradlew build  -x test
.\gradlew run -PchooseMain="com.assignment4.tasks.UdpServer"  

Task 1

  1. Test your Lamport Timestamp implementation
On MacOS:
./gradlew test 
On Windows:
.\gradlew test
  1. Run your Lamport Timestamp client
On MacOS:
./gradlew run -PchooseMain="com.assignment4.tasks.UdpLTClient" --console=plain 
On Windows:
.\gradlew run -PchooseMain="com.assignment4.tasks.UdpLTClient" --console=plain 

Task 2

  1. Test your vector clock implementation
On MacOS:
./gradlew test 
On Windows:
.\gradlew test
  1. Run your vector clock client
MacOS
 ./gradlew run -PchooseMain="com.assignment4.tasks.UdpVectorClient" --console=plain 
Windows
 .\gradlew run -PchooseMain="com.assignment4.tasks.UdpVectorClient" --console=plain 

assignment4's People

Contributors

jhasanjiv5 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.