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
2055dcc3
Commit
2055dcc3
authored
Apr 08, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new test Topologoy73, different schedulingRules for operators and queues
parent
d2847ec3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1998 additions
and
0 deletions
+1998
-0
dream/simulation/JSONInputs/Topology73.json
dream/simulation/JSONInputs/Topology73.json
+1210
-0
dream/simulation/OperatorRouter.py
dream/simulation/OperatorRouter.py
+2
-0
dream/tests/dump/Topology73.json.result
dream/tests/dump/Topology73.json.result
+786
-0
No files found.
dream/simulation/JSONInputs/Topology73.json
0 → 100644
View file @
2055dcc3
This diff is collapsed.
Click to expand it.
dream/simulation/OperatorRouter.py
View file @
2055dcc3
...
...
@@ -398,6 +398,8 @@ class Router(ObjectInterruption):
if
len
(
operator
.
candidateEntities
[
0
].
candidateReceivers
)
==
1
:
operatorsWithOneOption
.
append
(
operator
)
# TODO: the operator here actually chooses entity. This may pose a problem as two entities may be equivalent
# and as the operators chooses the sorting of the queue (if they do reside in the same queue is not taken into account)
# sort the candidateEntities list of each operator according to its schedulingRule
for
operator
in
[
x
for
x
in
self
.
candidateOperators
if
x
.
candidateEntities
]:
operator
.
sortCandidateEntities
()
...
...
dream/tests/dump/Topology73.json.result
0 → 100644
View file @
2055dcc3
This diff is collapsed.
Click to expand it.
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