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
1ce56521
Commit
1ce56521
authored
Nov 18, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments added
parent
8f7596f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dream/simulation/Machine.py
dream/simulation/Machine.py
+2
-0
No files found.
dream/simulation/Machine.py
View file @
1ce56521
...
@@ -441,6 +441,7 @@ class Machine(CoreObject):
...
@@ -441,6 +441,7 @@ class Machine(CoreObject):
self
.
expectedSignals
[
'processOperatorUnavailable'
]
=
1
self
.
expectedSignals
[
'processOperatorUnavailable'
]
=
1
# dummy variable to keep track of the time that the operation starts after every interruption
# dummy variable to keep track of the time that the operation starts after every interruption
# update timeLastOperationStarted both for Machine and Operator (if any)
self
.
timeLastOperationStarted
=
self
.
env
.
now
self
.
timeLastOperationStarted
=
self
.
env
.
now
if
self
.
currentOperator
:
if
self
.
currentOperator
:
self
.
currentOperator
.
timeLastOperationStarted
=
self
.
env
.
now
self
.
currentOperator
.
timeLastOperationStarted
=
self
.
env
.
now
...
@@ -838,6 +839,7 @@ class Machine(CoreObject):
...
@@ -838,6 +839,7 @@ class Machine(CoreObject):
self
.
shouldPreempt
=
False
self
.
shouldPreempt
=
False
# reset the variables used to handle the interruptions timing
# reset the variables used to handle the interruptions timing
self
.
breakTime
=
0
self
.
breakTime
=
0
# update totalWorking time for operator and also print trace
if
self
.
currentOperator
:
if
self
.
currentOperator
:
operator
=
self
.
currentOperator
operator
=
self
.
currentOperator
self
.
outputTrace
(
operator
.
name
,
"ended a process in "
+
self
.
objName
)
self
.
outputTrace
(
operator
.
name
,
"ended a process in "
+
self
.
objName
)
...
...
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