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
eb711b48
Commit
eb711b48
authored
May 08, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sortCandidateEntities of OperatorManagedJob corrected
parent
ea36e753
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
dream/simulation/OperatorManagedJob.py
dream/simulation/OperatorManagedJob.py
+13
-13
No files found.
dream/simulation/OperatorManagedJob.py
View file @
eb711b48
...
@@ -86,19 +86,19 @@ class OperatorManagedJob(Operator):
...
@@ -86,19 +86,19 @@ class OperatorManagedJob(Operator):
# def isAssignedTo(self):
# def isAssignedTo(self):
# return self.operatorAssignedTo
# return self.operatorAssignedTo
#
# =======================================================================
# =======================================================================
#
# sorts the candidateEntities of the Operator according to the scheduling rule
# sorts the candidateEntities of the Operator according to the scheduling rule
#
# TODO: maybe the argument is not needed. the candidate entities is a variable of the object
# TODO: maybe the argument is not needed. the candidate entities is a variable of the object
#
# =======================================================================
# =======================================================================
#
def sortCandidateEntities(self):
def
sortCandidateEntities
(
self
):
#
# TODO: have to consider what happens in case of a critical order
# TODO: have to consider what happens in case of a critical order
#
#if we have sorting according to multiple criteria we have to call the sorter many times
#if we have sorting according to multiple criteria we have to call the sorter many times
#
if self.schedulingRule=="MC":
if
self
.
schedulingRule
==
"MC"
:
#
for criterion in reversed(self.multipleCriterionList):
for
criterion
in
reversed
(
self
.
multipleCriterionList
):
#
self.activeCandidateQSorter(criterion=criterion)
self
.
activeCandidateQSorter
(
criterion
=
criterion
)
#
#else we just use the default scheduling rule
#else we just use the default scheduling rule
#
else:
else
:
#
self.activeCandidateQSorter(self.schedulingRule)
self
.
activeCandidateQSorter
(
self
.
schedulingRule
)
# =======================================================================
# =======================================================================
# sorts the Entities of the Queue according to the scheduling rule
# sorts the Entities of the Queue according to the scheduling rule
...
...
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