Skip to content
Snippets Groups Projects
Commit 2e056f12 authored by shined day's avatar shined day
Browse files

Merge branch...

Merge branch '34-communicating-agent-read_mails-shouldn-t-be-private-so-you-can-override-it' into 'master'

read_mails can now be overridden

Closes #34

See merge request be-pyamak/pyamak-noyau!17
parents 850479ef 912b7b1c
No related branches found
No related tags found
No related merge requests found
...@@ -106,12 +106,12 @@ class CommunicatingAgent(Agent): ...@@ -106,12 +106,12 @@ class CommunicatingAgent(Agent):
Override of phase 1 agent so he read mail before he perceive Override of phase 1 agent so he read mail before he perceive
this is the first phase of a cycle this is the first phase of a cycle
""" """
self._read_mails() self.read_mails()
self.on_perceive() self.on_perceive()
self.compute_criticality() self.compute_criticality()
self._next_phase() self._next_phase()
def _read_mails(self) -> None: def read_mails(self) -> None:
""" """
method that open all mail in the mailbox method that open all mail in the mailbox
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment