Commit d1ae4684 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Sebastien Robin

CalculateProcessingTime() CoreObject method now

parent 2737b568
......@@ -170,3 +170,8 @@ class CoreObject(Process):
def getReceiverObjectQueue(self):
return self.getReceiverObject().Res.activeQ
# =======================================================================
# calculates the processing time
# =======================================================================
def calculateProcessingTime(self):
return self.rng.generateNumber() # this is if we have a default processing time for all the entities
\ No newline at end of file
......@@ -216,11 +216,6 @@ class Machine(CoreObject):
def checkIfMachineIsUp(self):
return self.Up
# =======================================================================
# calculates the processing time
# =======================================================================
def calculateProcessingTime(self):
return self.rng.generateNumber() # this is if we have a default processing time for all the entities
# =======================================================================
# checks if the Machine can accept an entity
......
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