... | @@ -26,9 +26,7 @@ The listeners file contains all the possible messages that the agents must send. |
... | @@ -26,9 +26,7 @@ The listeners file contains all the possible messages that the agents must send. |
|
2. The 'respond_to_request' method will receive all the requests to connect with the API with two verifications, if the agent passes by both of them, it will be added to the agents list. A response will always be sent to the agents informing if their action was or wasn't done.
|
|
2. The 'respond_to_request' method will receive all the requests to connect with the API with two verifications, if the agent passes by both of them, it will be added to the agents list. A response will always be sent to the agents informing if their action was or wasn't done.
|
|
3. The 'respond_to_request_ready' get the simulation pre-step and send to all the agents that called this method.
|
|
3. The 'respond_to_request_ready' get the simulation pre-step and send to all the agents that called this method.
|
|
|
|
|
|
|
|
> All the previously methods uses the 'call_responses' method wich is a handler to send the correct response to the agents using the 'emiters.py' file.
|
|
All the previously methods uses the 'call_responses' method wich is a handler to send the correct response to the agents using the 'emiters.py' file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The emiters file contains some methods that do the same stuff but with little changes. Each method in this file will send to the agents a response related to an event. The event is the name of the listener that the agent must have to receive the response. The response contains either the action was successfull or not in some cases, on others it contains the pre step of the simulation, but all they do is send the agents some kind of information.
|
|
The emiters file contains some methods that do the same stuff but with little changes. Each method in this file will send to the agents a response related to an event. The event is the name of the listener that the agent must have to receive the response. The response contains either the action was successfull or not in some cases, on others it contains the pre step of the simulation, but all they do is send the agents some kind of information.
|
... | | ... | |