hbrs-maas / ws18-project-mas_maas Goto Github PK
View Code? Open in Web Editor NEWws18-project-mas_maas created by GitHub Classroom
ws18-project-mas_maas created by GitHub Classroom
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.
As specified in project slides. The production in the bakery is done between 00.00 and 12.00 every day.
The file is very hard to read, make sure you use line breaks and appropriate format to make it easier for me to grade.
In the behaviour RequestKneading, sometimes the DoughManager does not get a reply from all KneadingMachineAgents and thus, it does no go to option 2 of the switch case.
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.
This can be a place to discuss and finalise the message content that needs to be passed between right-brothers and mas-maas
Using the architecture.xml file inside docs, create a workflow specifically for the dough preparation stage
Create a markdown file to explain the structure of the input and output message
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.