Code Monkey home page Code Monkey logo

ws18-project-mas_maas's People

Contributors

ahmedfaisal95 avatar anenriquez avatar argenos avatar codacy-badger avatar dharminb avatar dr4gonbl4de avatar drealarun avatar element54 avatar emassey2 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  avatar

Forkers

widyaaulia

ws18-project-mas_maas's Issues

Request Kneading gets stuck when all kneading machines are busy.

If all needing machines are busy, the RequestKneading behavior resends a CFP, but since all machines are still busy, the request is not taken and the time does not move forward.

Possible solution: Pop the product from the needsKneading workqueue after receiving a kneadingNotification for the corresponding kneadingRequest. Retry CFP after receiving a kneadingNotification for the remaining products in the needsKneading queue.

The DoughManager assigns two kneading machines to one kneadingRequest

Example:

***** > KneadingMachineAgent_bakery-001_kneading-machine-001 WILL perform Kneading for ( agent-identifier :name [email protected]:8133/JADE  :addresses (sequence http://angela:7778/acc ))Kneading information -> {"kneadingTime":8.0,"guids":["order-001"],"productType":"Muffin"}

KneadingMachineAgent_bakery-001_kneading-machine-001 Kneading for 8.0 Muffin

-----> DoughManager_bakery-001 confirmation received from -> KneadingMachineAgent_bakery-001_kneading-machine-001 for: Kneading request was received {"kneadingTime":8.0,"guids":["order-001"],"productType":"Muffin"}

DoughManager_bakery-001 rejection received from -> KneadingMachineAgent_bakery-001_kneading-machine-001 for: {"kneadingTime":8.0,"guids":["order-001"],"productType":"Muffin"}

DoughManager_bakery-001 Accepting proposal from KneadingMachineAgent_bakery-001_kneading-machine-004@192.168.2.112:8133/JADE for: {"kneadingTime":8.0,"guids":["order-001"],"productType":"Muffin"}

***** > KneadingMachineAgent_bakery-001_kneading-machine-004 WILL perform Kneading for ( agent-identifier :name [email protected]:8133/JADE  :addresses (sequence http://angela:7778/acc ))Kneading information -> {"kneadingTime":8.0,"guids":["order-001"],"productType":"Muffin"}

-----> DoughManager_bakery-001 confirmation received from -> KneadingMachineAgent_bakery-001_kneading-machine-004 for: Kneading request was received {"kneadingTime":8.0,"guids":["order-001"],"productType":"Muffin"}

The DoughManager receives a CONFIRM and a FAILURE from the same kneadingMachine.
After receiving a failure, it enters to the option 2 of the switch and sends a new ACCEPT_PROPOSAL. As a result, two kneading machines receive the same kneadingRequest.

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.