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
be2056f8
Commit
be2056f8
authored
Nov 27, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in Machine
parent
9145d573
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dream/simulation/Machine.py
dream/simulation/Machine.py
+2
-2
No files found.
dream/simulation/Machine.py
View file @
be2056f8
...
...
@@ -165,7 +165,7 @@ class Machine(CoreObject):
self
.
currentlyPerforming
=
None
self
.
tinM
=
0
self
.
timeLastProcessingStarted
=
0
self
.
timeLastOperationStarted
=
0
self
.
timeLastOperationStarted
=
-
1
self
.
interruption
=
False
self
.
breakTime
=
0
# flag notifying that there is operator assigned to the actievObject
...
...
@@ -912,7 +912,7 @@ class Machine(CoreObject):
self
.
printTrace
(
activeEntity
.
name
,
interrupted
=
self
.
objName
)
self
.
outputTrace
(
activeObjectQueue
[
0
].
name
,
"Interrupted at "
+
self
.
objName
)
# recalculate the processing time left tinM
if
self
.
timeLastOperationStarted
:
if
self
.
timeLastOperationStarted
>=
0
:
self
.
tinM
=
self
.
tinM
-
(
self
.
env
.
now
-
self
.
timeLastOperationStarted
)
if
(
self
.
tinM
==
0
):
# sometimes the failure may happen exactly at the time that the processing would finish
# this may produce disagreement with the simul8 because in both SimPy and Simul8
...
...
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