Code Monkey home page Code Monkey logo

ws18-project-commitment_issues's Introduction

Build Status

MAAS Project - Commitment_Issues

Add a brief description of your project. Make sure to keep this README updated, particularly on how to run your project from the command line.

Team Members

Dependencies

  • JADE v.4.5.0
  • JSON Version 20180813+

How to run

Just install gradle and run:

gradle run --args='-packaging -delivery -visualization'

If you get an error saying --args is not supprted, use the below command:

./gradlew run --args='-packaging -delivery -visualization'

It will automatically get the dependencies and start JADE with the configured agents. In case you want to clean you workspace run

gradle clean

Distributed Operation

Follow these steps to run multiple stages on different systems.

  • Connect all systems to the same network.

  • Search for open ports using the command:

    netstat -lntu
  • Look for a port whose state is not LISTEN (this will be the PORT used below).

  • Find the host's IP address using the command: (in field wlp8s0, Inet addr: ...)

    ipconfig
  • Start the host using the command:
    gradle run --args='-isHost [host ip address] -localPort [PORT] -[STAGE] -noTK'

Example:

    gradle run --args='-isHost 192.168.43.113 -localPort 5353 -packaging -noTK'
  • Start a client using the command:
    gradle run --args='-host [HOST IP ADDRESS] -port [HOST LISTENING PORT] -[STAGE]'

Example:

    gradle run --args='-host 192.168.43.113 -port 5353 -packaging'

Eclipse

To use this project with eclipse run

gradle eclipse

This command will create the necessary eclipse files. Afterwards you can import the project folder.

ws18-project-commitment_issues's People

Contributors

abanoubabdelmalak avatar ahmedfaisal95 avatar anenriquez avatar argenos avatar dharminb avatar dr4gonbl4de avatar drealarun avatar element54 avatar erickkramer avatar jackuzzi003 avatar janhavi19 avatar janl1992 avatar madmax2012 avatar moriarty avatar sushant-chavan avatar tmetzl avatar widyaaulia avatar zahidse avatar

Watchers

 avatar  avatar  avatar

ws18-project-commitment_issues's Issues

Implement Packaging Agent

This agent should receive the prepared items that are ready to be packed in boxes. The agent then packs items based on the priority of delivery time.

  • Behavior to receive prepared items

  • Prioritize the orders based on delivery time

Implement TruckAgent

  • A behavior to query the time to move between two points from the StreetNetwork
  • Computes time needed to deliver
  • Proposes to the TransportAgent the time to deliver the requested order
  • Request the Transport agnet to provide list of boxes to deliver
  • Communicate the current position (possibly also the status) to visualization agent
  • Communicate the delivery status of an order to the mailbox

Add interface agents

  • Theses are the common agents' names:
    proofer
    cooling racks
    loading bay
    mailbox

Implement GraphVisualizationAgent

  • Receives and parses message from StreetNetworkAgent
  • Periodically requests the TruckAgent for thier current position
  • Visualizes the data using JavaFX and update it periodically
  • Create a pull request to the upstream

Implement MailboxAgent

  • Parse the message received from TruckAgent
  • Inform all interested agents about the completion of a customer order
  • Create a pull request to the upstream

Implement OrderAggregator

  • Parse the message received from the loading bay agent
  • Check order fulfillment
  • Inform the Transport agent once an order is fulfilled with a message containing the list of boxes for the order

Follow-up of TruckAgent

This is the follow-up issue of #46

  • Load the initial position of the trucks from the provided delivery.json file. This depends on the name of the transport company.
  • Use the order Information broadcasted by the order processor to extract the customer and bakery name as well as time and date of delivery.
  • Implement a data structure to store the received boxes and its contents.
  • Use the right service type for communicating with the TransportAgent.

Implement TransportAgent

  • Parse the message from OrderAggregator
  • Call for proposal to deliver orders from the trucks and choose the best truck for delivery
  • Inform the trucks of the list of boxes and the customer location for an order

Modify LoadingBay Agent to to fit architecture updates

Updating the LoadingBay agent to ensure that all the items of a certain product in a certain order arrive before passing the boxes over to the delivery stage. This change is required to enable integration with the packaging phase.

Must accomplish the following:

  • Receive a message containing boxes of products relating to a particular order and parsing it
  • Maintain a database of the products and their quantities received for each customer order ID
  • Receive messages of all order and all their details (from the OrderProcessor)
  • Cross check orders and received boxes: For each order's boxes, should not send over to delivery until all products have arrived.

Finalize StreetNetworkAgent

Follow-up to #47.

  • Integrate the StreetNetwork agent with the rest of the delivery stage agents
  • Obtain the visualization agent ID/name to communicate graph visualization messages
  • Test the functionalities of the agent

Generating required agents for sample scenarios

Hi Argentina,
Could you please clarify if we need to implement just the orderProcessor and Customer agents based on the parsed json files, or we need to implement all the agents that can be based on the json file(for example the baking agents)

Implement StreetNetworkAgent

  • Parse the JSON file containing street network information
  • Handles queries for travel time between two nodes
  • Communicate to the VisualizationAgent the complete street network graph

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.