Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
54b1d037
Commit
54b1d037
authored
Dec 06, 2013
by
Georgios Dagkakis
Committed by
Sebastien Robin
Dec 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unused commented code removed from Batch
parent
e92b51ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
26 deletions
+1
-26
dream/simulation/Batch.py
dream/simulation/Batch.py
+1
-26
No files found.
dream/simulation/Batch.py
View file @
54b1d037
...
...
@@ -38,31 +38,6 @@ class Batch(Entity):
self
.
numberOfUnits
=
numberOfUnits
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
# #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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment