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

Modification pour tester les courbes

parent 01cd8b26
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,8 @@ class ControleurPhilosophersExample(Controleur): ...@@ -11,8 +11,8 @@ class ControleurPhilosophersExample(Controleur):
self.__numberPhilosopher = 10 self.__numberPhilosopher = 10
self.__barChart = [] self.__barChart = []
self.__barChart.append(self.addBarChart('Eaten Pastas')) self.__barChart.append(self.addBarChart('Eaten Pastas'))
#self.__barChart.append(self.addBarChart('Hours of tkinking')) self.__barChart.append(self.addBarChart('Hours of tkinking'))
#self.__barChart.append(self.addBarChart('Hours of hunger')) self.__barChart.append(self.addPlotChart('Hours of hunger'))
def initialisation(self): def initialisation(self):
...@@ -22,16 +22,16 @@ class ControleurPhilosophersExample(Controleur): ...@@ -22,16 +22,16 @@ class ControleurPhilosophersExample(Controleur):
# Init # Init
self.setTitle(self.__barChart[0],'Eaten Pastas') self.setTitle(self.__barChart[0],'Eaten Pastas')
#self.setXLabel(self.__barChart[0],'Philosophers') self.setXLabel(self.__barChart[0],'Philosophers')
#self.setYLabel(self.__barChart[0],'Number of eaten pastas') self.setYLabel(self.__barChart[0],'Number of eaten pastas')
#self.setTitle(self.__barChart[1],'Hours of thinking') self.setTitle(self.__barChart[1],'Hours of thinking')
#self.setXLabel(self.__barChart[1],'Philosophers') self.setXLabel(self.__barChart[1],'Philosophers')
#self.setYLabel(self.__barChart[1],'Hours') self.setYLabel(self.__barChart[1],'Hours')
#self.setTitle(self.__barChart[2],'Hours of hunger') self.setTitle(self.__barChart[2],'Hours of hunger')
#self.setXLabel(self.__barChart[2],'Philosophers') self.setXLabel(self.__barChart[2],'Philosophers')
#self.setYLabel(self.__barChart[2],'Hours') self.setYLabel(self.__barChart[2],'Hours')
self.draw_text(40,15, "EATING") self.draw_text(40,15, "EATING")
self.draw_text(40,45, "THINKING") self.draw_text(40,45, "THINKING")
...@@ -51,10 +51,12 @@ class ControleurPhilosophersExample(Controleur): ...@@ -51,10 +51,12 @@ class ControleurPhilosophersExample(Controleur):
self.__philosophers.append(carre) self.__philosophers.append(carre)
nom = 'Mr ' + str(i) nom = 'Mr ' + str(i)
self.addPoint(self.__barChart[0],x,y)
#self.addColumn(self.__barChart[0],nom) self.addColumn(self.__barChart[0],nom)
#self.addColumn(self.__barChart[1],nom) self.addColumn(self.__barChart[1],nom)
#self.addColumn(self.__barChart[2],nom) self.addPoint(self.__barChart[2],0,x,y)
self.addCurve(self.__barChart[2],'go')
self.addPoint(self.__barChart[2],1,x-10,y-10)
def updateCycle(self, env, amas): def updateCycle(self, env, amas):
agents = amas.get_Agents_Sorted() 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