Commit d7c7277217040f00a0d7cc9d6cf8b940c9198706
1 parent
3df5e1de
Exists in
dev
routine_process() : envoi commande n'est plus bloquant (simulateur)
Showing
3 changed files
with
5 additions
and
4 deletions
Show diff stats
README.md
... | ... | @@ -73,8 +73,8 @@ Author: E. Pallier |
73 | 73 | |
74 | 74 | VERSION: 0.20.31 |
75 | 75 | |
76 | -Comment: mode "test" (-t) géré (= mode simulateur) | |
77 | - | |
76 | +Comment: routine_process() : envoi commande n'est plus bloquant | |
77 | + | |
78 | 78 | - Scenario de test : |
79 | 79 | - lancer agents A et B en mode simu (option -t): ./pyros.py -t start agentA,agentB |
80 | 80 | - attendre 1 à 2mn jusqu'à obtenir les 2 résultats suivants: | ... | ... |
src/agent/Agent.py
... | ... | @@ -500,7 +500,8 @@ class Agent: |
500 | 500 | if cmd: cmd = self.command_process(cmd) |
501 | 501 | |
502 | 502 | # ROUTINE process |
503 | - if self.is_active(): self.routine_process() | |
503 | + #if self.is_active(): | |
504 | + self.routine_process() | |
504 | 505 | #self.printd("I am IDLE, so I bypass the routine_process (do not send any new command)") |
505 | 506 | |
506 | 507 | self.printd("------END COMMMAND PROCESSING------") | ... | ... |
src/agent/AgentA.py
... | ... | @@ -21,7 +21,7 @@ class AgentA(Agent): |
21 | 21 | # Run the assertion tests at the end |
22 | 22 | SIMULATOR_WITH_TEST = True |
23 | 23 | #SIMULATOR_MAX_DURATION_SEC = None |
24 | - SIMULATOR_MAX_DURATION_SEC = 120 | |
24 | + SIMULATOR_MAX_DURATION_SEC = 100 | |
25 | 25 | # Who should I send commands to ? |
26 | 26 | #SIMULATOR_COMMANDS_DEST = "myself" |
27 | 27 | SIMULATOR_COMMANDS_DEST = "AgentB" | ... | ... |