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
9db0a49e
Commit
9db0a49e
authored
Mar 13, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACO now supports operators scheduling rules. Further testing required
parent
a74ba7f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dream/plugins/ACO.py
dream/plugins/ACO.py
+2
-1
No files found.
dream/plugins/ACO.py
View file @
9db0a49e
...
@@ -8,6 +8,7 @@ import operator
...
@@ -8,6 +8,7 @@ import operator
import
xmlrpclib
import
xmlrpclib
from
dream.simulation.Queue
import
Queue
from
dream.simulation.Queue
import
Queue
from
dream.simulation.Operator
import
Operator
from
dream.simulation.Globals
import
getClassFromName
from
dream.simulation.Globals
import
getClassFromName
class
ACO
(
plugin
.
ExecutionPlugin
):
class
ACO
(
plugin
.
ExecutionPlugin
):
...
@@ -47,7 +48,7 @@ class ACO(plugin.ExecutionPlugin):
...
@@ -47,7 +48,7 @@ class ACO(plugin.ExecutionPlugin):
collated
=
dict
()
collated
=
dict
()
for
node_id
,
node
in
data
[
'graph'
][
'node'
].
items
():
for
node_id
,
node
in
data
[
'graph'
][
'node'
].
items
():
node_class
=
getClassFromName
(
node
[
'_class'
])
node_class
=
getClassFromName
(
node
[
'_class'
])
if
issubclass
(
node_class
,
Queue
):
if
issubclass
(
node_class
,
Queue
)
or
issubclass
(
node_class
,
Operator
)
:
collated
[
node_id
]
=
list
(
node_class
.
getSupportedSchedulingRules
())
collated
[
node_id
]
=
list
(
node_class
.
getSupportedSchedulingRules
())
assert
collated
assert
collated
...
...
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