Commit c852aa1f authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

correction in Job outputResutlsJSON

parent 699ae99d
...@@ -82,7 +82,7 @@ class Job(Entity): # inherits from the Entity c ...@@ -82,7 +82,7 @@ class Job(Entity): # inherits from the Entity c
# TODO : check if there is a need for setting a different 'type' for the MouldAssembly than 'Machine' # TODO : check if there is a need for setting a different 'type' for the MouldAssembly than 'Machine'
# ask Georgios if the method __class__.__name__ of finding the class type of the last step is correct # ask Georgios if the method __class__.__name__ of finding the class type of the last step is correct
# if the entity is of type orderComponent and the last step in it's schedule is Assembly # if the entity is of type orderComponent and the last step in it's schedule is Assembly
elif self.type=='OrderComponent' and self.schedule[-1][0].__class__.__name__=='MouldAssemblyManaged': elif self.type=='OrderComponent' and self.schedule[-1][0].__class__.__name__ in set(['MouldAssemblyManaged','MouldAssembly']):
json['results']['completionTime']=self.schedule[-1][1] json['results']['completionTime']=self.schedule[-1][1]
completionTime=self.schedule[-1][1] completionTime=self.schedule[-1][1]
#else input "still in progress" #else input "still in progress"
......
...@@ -1076,27 +1076,6 @@ class Machine(CoreObject): ...@@ -1076,27 +1076,6 @@ class Machine(CoreObject):
or self.timeLastEntityEnded==self.env.now or self.timeLastEntityEnded==self.env.now
or self.checkIfActive()) or self.checkIfActive())
# # =======================================================================
# # calculates the setup time
# # =======================================================================
# def calculateSetupTime(self):
# return self.stpRng.generateNumber()
# # =======================================================================
# # calculates the Load time
# # =======================================================================
# def calculateLoadTime(self):
# return self.loadRng.generateNumber()
# # =======================================================================
# # calculates the Load time
# # =======================================================================
# def calculateTime(self, type='Processing'):
# if type=='Setup':
# return self.stpRng.generateNumber()
# elif type=='Load':
# return self.loadRng.generateNumber()
#=========================================================================== #===========================================================================
# checks whether the entity can proceed to a successor object # checks whether the entity can proceed to a successor object
#=========================================================================== #===========================================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment