Skip to content
Snippets Groups Projects
Commit 01cd8b26 authored by Jdrezen's avatar Jdrezen
Browse files

Modification pour tester les courbes

parent 7fe7ee12
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,8 @@ class ControleurPhilosophersExample(Controleur):
self.__numberPhilosopher = 10
self.__barChart = []
self.__barChart.append(self.addBarChart('Eaten Pastas'))
self.__barChart.append(self.addBarChart('Hours of tkinking'))
self.__barChart.append(self.addBarChart('Hours of hunger'))
#self.__barChart.append(self.addBarChart('Hours of tkinking'))
#self.__barChart.append(self.addBarChart('Hours of hunger'))
def initialisation(self):
......@@ -22,16 +22,16 @@ class ControleurPhilosophersExample(Controleur):
# Init
self.setTitle(self.__barChart[0],'Eaten Pastas')
self.setXLabel(self.__barChart[0],'Philosophers')
self.setYLabel(self.__barChart[0],'Number of eaten pastas')
#self.setXLabel(self.__barChart[0],'Philosophers')
#self.setYLabel(self.__barChart[0],'Number of eaten pastas')
self.setTitle(self.__barChart[1],'Hours of thinking')
self.setXLabel(self.__barChart[1],'Philosophers')
self.setYLabel(self.__barChart[1],'Hours')
#self.setTitle(self.__barChart[1],'Hours of thinking')
#self.setXLabel(self.__barChart[1],'Philosophers')
#self.setYLabel(self.__barChart[1],'Hours')
self.setTitle(self.__barChart[2],'Hours of hunger')
self.setXLabel(self.__barChart[2],'Philosophers')
self.setYLabel(self.__barChart[2],'Hours')
#self.setTitle(self.__barChart[2],'Hours of hunger')
#self.setXLabel(self.__barChart[2],'Philosophers')
#self.setYLabel(self.__barChart[2],'Hours')
self.draw_text(40,15, "EATING")
self.draw_text(40,45, "THINKING")
......@@ -51,9 +51,10 @@ class ControleurPhilosophersExample(Controleur):
self.__philosophers.append(carre)
nom = 'Mr ' + str(i)
self.addColumn(self.__barChart[0],nom)
self.addColumn(self.__barChart[1],nom)
self.addColumn(self.__barChart[2],nom)
self.addPoint(self.__barChart[0],x,y)
#self.addColumn(self.__barChart[0],nom)
#self.addColumn(self.__barChart[1],nom)
#self.addColumn(self.__barChart[2],nom)
def updateCycle(self, env, amas):
agents = amas.get_Agents_Sorted()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment