Commit 10308468 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Sebastien Robin

cleanup, unused methods removed

parent 38fcc358
......@@ -233,7 +233,7 @@ class Conveyer(CoreObject):
totalLength+=self.Res.activeQ[i].length
return self.length<totalLength
#checks if the Mover shoul be called so that the move is performed
#checks if the Mover should be called so that the move is performed
def callMover(self):
return self.call
......
......@@ -341,14 +341,5 @@ class Dismantle(CoreObject):
json['results']['waiting_ratio']['max']=self.Waiting[0]
G.outputJSON['elementList'].append(json)
#takes the array and checks if all its values are identical (returns false) or not (returns true)
#needed because if somebody runs multiple runs in deterministic case it would crash!
def checkIfArrayHasDifValues(self, array):
difValuesFlag=False
for i in range(1, len(array)):
if(array[i]!=array[1]):
difValuesFlag=True
return difValuesFlag
\ No newline at end of file
......@@ -188,14 +188,6 @@ class Machine(CoreObject):
self.totalBlockageTime+=totalTime-(tinMStart+failureTime) #the time of blockage is derived from
#the whole time in the machine
#minus the processing time and the failure time
#checks if the waitQ of the machine is empty
def checkIfWaitQEmpty(self):
return len(self.M.waitQ)==0
#checks if the activeQ of the machine is empty
def checkIfActiveQEmpty(self):
return len(self.M.activeQ)==0
#checks if the machine is Up
def checkIfMachineIsUp(self):
return self.Up
......
......@@ -89,11 +89,7 @@ class Queue(CoreObject):
#if entity just got to the dummyQ set its startTime as the current time
if self.isDummy:
self.Res.activeQ[0].startTime=now()
#checks if the Q has one available place
def checkIfQHasPlace(self):
return len(self.Q.activeQ)<self.capacity
#checks if the Queue can accept an entity
#it checks also who called it and returns TRUE only to the predecessor that will give the entity.
def canAccept(self):
......
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