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
0fc1b914
Commit
0fc1b914
authored
May 30, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QueueManagedJob signalRouter corrected
parent
fce319bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
dream/simulation/ExitJobShop.py
dream/simulation/ExitJobShop.py
+3
-3
dream/simulation/QueueManagedJob.py
dream/simulation/QueueManagedJob.py
+9
-6
No files found.
dream/simulation/ExitJobShop.py
View file @
0fc1b914
...
...
@@ -25,9 +25,9 @@ Created on 2 oct 2012
extends the Exit object so that it can act as a jobshop station. Preceding station is read from the Entity
'''
from
SimPy.Simulation
import
Process
,
Resource
from
SimPy.Simulation
import
activate
,
passivate
,
waituntil
,
now
,
hold
#
from SimPy.Simulation import Process, Resource
#
from SimPy.Simulation import activate, passivate, waituntil, now, hold
import
simpy
from
Exit
import
Exit
# ===========================================================================
...
...
dream/simulation/QueueManagedJob.py
View file @
0fc1b914
...
...
@@ -113,12 +113,15 @@ class QueueManagedJob(QueueJobShop):
if
receiver
.
identifyEntityToGet
().
manager
:
if
receiver
.
isLoadRequested
():
if
receiver
.
identifyEntityToGet
().
manager
.
isAssignedTo
()
!=
receiver
:
from
Globals
import
G
if
not
G
.
Router
.
invoked
:
# self.printTrace(self.id, signal='router')
G
.
Router
.
invoked
=
True
G
.
Router
.
isCalled
.
succeed
(
self
.
env
.
now
)
return
True
try
:
from
Globals
import
G
if
not
G
.
Router
.
invoked
:
# self.printTrace(self.id, signal='router')
G
.
Router
.
invoked
=
True
G
.
Router
.
isCalled
.
succeed
(
G
.
env
.
now
)
return
True
except
:
return
False
else
:
return
False
except
:
...
...
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