Skip to content
Snippets Groups Projects
Commit 7125e579 authored by Jdrezen's avatar Jdrezen
Browse files

Ajout d'une méthode updateWindow qui est encapsulé dans updateCycle

parent 7f8a8339
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ class ControleurPhilosophersExample(Controleur):
self.addColumn(self.__barChart[1],nom)
self.addColumn(self.__barChart[2],nom)
def updateCycle(self, env, amas):
def updateWindow(self, env, amas):
agents = amas.get_Agents_Sorted()
for i in range(10):
......
......@@ -35,7 +35,4 @@ class PhilosophersAmasExamples(Amas):
self.__observer = observer
def on_cycle_end(self):
try:
self.__observer.updateCycle(self.get_environment(), self)
except:
print('trql trql')
self.__observer.updateCycle(self.get_environment(), self)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment