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

CalculateProcessingTime() CoreObject method now

parent 2737b568
......@@ -169,4 +169,9 @@ class CoreObject(Process):
# ========== get the receiver object queue in a removeEntity transaction. ======================
def getReceiverObjectQueue(self):
return self.getReceiverObject().Res.activeQ
\ No newline at end of file
# =======================================================================
# 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