From 912b7b1cd542268bb47b7d9ece5e397bb5b86d23 Mon Sep 17 00:00:00 2001
From: shinedday <shinedday@gmail.com>
Date: Mon, 17 May 2021 09:36:16 +0200
Subject: [PATCH] read_mails can now be overridden

---
 pyAmakCore/classes/communicating_agent.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyAmakCore/classes/communicating_agent.py b/pyAmakCore/classes/communicating_agent.py
index be6d0f0..2f27a64 100644
--- a/pyAmakCore/classes/communicating_agent.py
+++ b/pyAmakCore/classes/communicating_agent.py
@@ -106,12 +106,12 @@ class CommunicatingAgent(Agent):
         Override of phase 1 agent so he read mail before he perceive
         this is the first phase of a cycle
         """
-        self._read_mails()
+        self.read_mails()
         self.on_perceive()
         self.compute_criticality()
         self._next_phase()
 
-    def _read_mails(self) -> None:
+    def read_mails(self) -> None:
         """
         method that open all mail in the mailbox
         """
-- 
GitLab