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
0e4a576b
Commit
0e4a576b
authored
Aug 13, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup in Machine code
parent
11429cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dream/simulation/Machine.py
dream/simulation/Machine.py
+3
-3
No files found.
dream/simulation/Machine.py
View file @
0e4a576b
...
...
@@ -614,9 +614,6 @@ class Machine(CoreObject):
G
.
pendingEntities
.
append
(
activeObjectQueue
[
0
])
# set the variable that flags an Entity is ready to be disposed
self
.
waitToDispose
=
True
#do this so that if it is overtime working it is not counted as off-shift time
if
not
self
.
onShift
and
self
.
interruptedBy
==
'ShiftScheduler'
:
self
.
timeLastShiftEnded
=
self
.
env
.
now
# update the total working time
# the total processing time for this entity is what the distribution initially gave
if
not
self
.
shouldPreempt
:
...
...
@@ -650,6 +647,9 @@ class Machine(CoreObject):
self
.
endedLastProcessing
.
succeed
(
self
.
env
.
now
)
interruption
.
waitinSignal
=
False
self
.
isWorkingOnTheLast
=
False
# set timeLastShiftEnded attribute so that if it is overtime working it is not counted as off-shift time
if
self
.
interruptedBy
==
'ShiftScheduler'
:
self
.
timeLastShiftEnded
=
self
.
env
.
now
# =======================================================================
# actions to be carried out when the processing of an Entity ends
...
...
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