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
b49e8af9
Commit
b49e8af9
authored
Mar 05, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amendment to signalRouter method
parent
7daa2dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dream/simulation/ManPyObject.py
dream/simulation/ManPyObject.py
+4
-2
No files found.
dream/simulation/ManPyObject.py
View file @
b49e8af9
...
...
@@ -66,14 +66,16 @@ class ManPyObject(object):
#===========================================================================
@
staticmethod
def
signalRouter
(
receiver
=
None
):
from
Globals
import
G
# if an operator is not assigned to the receiver then do not signal the receiver but the Router
try
:
# XXX in the case of dedicatedOperator assignedOperators must be always True in order to avoid invoking the Router
# in the case of skilled router there is no need to signal
if
'Skilled'
in
str
(
G
.
RouterList
[
0
].
__class__
):
return
False
if
not
receiver
.
assignedOperator
or
\
(
receiver
.
isPreemptive
and
len
(
receiver
.
Res
.
users
)
>
0
):
if
receiver
.
isLoadRequested
():
try
:
from
Globals
import
G
if
not
G
.
RouterList
[
0
].
invoked
and
G
.
RouterList
[
0
].
expectedSignals
[
'isCalled'
]:
# self.printTrace(self.id, signal='router')
G
.
RouterList
[
0
].
invoked
=
True
...
...
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