Commit 54b1d037 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Sebastien Robin

unused commented code removed from Batch

parent e92b51ab
...@@ -38,31 +38,6 @@ class Batch(Entity): ...@@ -38,31 +38,6 @@ class Batch(Entity):
self.numberOfUnits=numberOfUnits self.numberOfUnits=numberOfUnits
self.numberOfSubBatches=1 #integer that shows in how many sub batches is the batch broken self.numberOfSubBatches=1 #integer that shows in how many sub batches is the batch broken
self.subBatchList=[] #list that contains the sub-batches that this batch has been broken into self.subBatchList=[] #list that contains the sub-batches that this batch has been broken into
# #breaks the Batch to a number of SubBatches
# def breakToSubBatches(self, numberOfSubBatches=2):
# numberOfSubBatchUnits=self.numberOfUnits/numberOfSubBatches #for now it considers that the division gives an integer
# #(E.g. 100 units to be divided to 4 sub-batches)
# activeObjectQueue=self.currentStation.getActiveObjectQueue() #get the internal queue of the active core object
# activeObjectQueue.remove(self) #the Batch is non-existent in this active Queue now (since it is broken)
# for i in range(numberOfSubBatches):
# subBatch=SubBatch(str(self.id)+'_'+str(i), self.name+"_SB_"
# +str(i), self.id, numberOfUnits=numberOfSubBatchUnits) #create the sub-batch
# activeObjectQueue.append(subBatch) #append the sub-batch to the active object Queue
# self.subBatchList.append(subBatch)
# self.numberOfSubBatches=numberOfSubBatches
#
# #re-assembles a batch that was broken into sub-batches
# def reAssembleBatch(self):
# self.numberOfUnits=0
# activeObjectQueue=self.subBatchList[0].currentStation.getActiveObjectQueue() #get the internal queue of the active core object
# #it should be the same for all the sub-batches
# for subBatch in self.subBatchList:
# self.numberOfUnits+=subBatch.numberOfUnits #maybe there are units lost (scrapped), so it has to be re-calculated
# #the sub-batch no longer exists
# activeObjectQueue.remove(subBatch)
# del subBatch
\ No newline at end of file
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