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
8155ffef
Commit
8155ffef
authored
Nov 14, 2013
by
Georgios Dagkakis
Committed by
Jérome Perrin
Dec 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unused commented code removed
parent
87f93d8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
37 deletions
+0
-37
dream/simulation/BatchDecomposition.py
dream/simulation/BatchDecomposition.py
+0
-1
dream/simulation/Source.py
dream/simulation/Source.py
+0
-36
No files found.
dream/simulation/BatchDecomposition.py
View file @
8155ffef
...
...
@@ -109,7 +109,6 @@ class BatchDecomposition(CoreObject):
activeObjectQueue
=
activeObject
.
getActiveObjectQueue
()
#get the internal queue of the active core object
activeEntity
=
activeObjectQueue
.
pop
()
G
.
BatchWaitingList
.
append
(
activeEntity
)
# this batch has to be reassembled by the method reassemble
batchNumberOfUnits
=
activeEntity
.
numberOfUnits
alreadyAllocatedUnits
=
0
...
...
dream/simulation/Source.py
View file @
8155ffef
...
...
@@ -57,42 +57,6 @@ class Source(CoreObject):
def
initialize
(
self
):
# using the Process __init__ and not the CoreObject __init__
CoreObject
.
initialize
(
self
)
# Process.__init__(self)
# # no predecessor or successor index
# self.Up=True #Boolean that shows if the object is in failure ("Down") or not ("up")
# self.currentEntity=None
# # ============================== total times ===============================================
# self.totalBlockageTime=0 #holds the total blockage time
# self.totalFailureTime=0 #holds the total failure time
# self.totalWaitingTime=0 #holds the total waiting time
# self.totalWorkingTime=0 #holds the total working time
# self.completedJobs=0 #holds the number of completed jobs
# # ============================== Entity related attributes =================================
# self.timeLastEntityEnded=0 #holds the last time that an entity
# # ended processing in the object
# self.nameLastEntityEnded="" #holds the name of the last entity
# #that ended processing in the object
# self.timeLastEntityEntered=0 #holds the last time that an
# #entity entered in the object
# self.nameLastEntityEntered="" #holds the name of the last
# #entity that entered in the object
# self.timeLastFailure=0 #holds the time that the last
# #failure of the object started
# self.timeLastFailureEnded=0 #holds the time that the last
# #failure of the object Ended
# # ============================== failure related times =====================================
# self.downTimeProcessingCurrentEntity=0 #holds the time that the object was down
# #while processing the current entity
# self.downTimeInTryingToReleaseCurrentEntity=0 #holds the time that the object was down while trying
# #to release the current entity
# self.downTimeInCurrentEntity=0 #holds the total time that the object was down
# #while holding current entity
# self.timeLastEntityLeft=0 #holds the last time that an entity left the object
#
# self.processingTimeOfCurrentEntity=0 #holds the total processing time that the current entity required
# # ============================== waiting flag ==============================================
# self.waitToDispose=False #shows if the object waits to dispose an entity
# initialize the internal Queue (type Resource) of the Source
self
.
Res
=
Resource
(
capacity
=
infinity
)
...
...
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