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
b6adfd03
Commit
b6adfd03
authored
Mar 07, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mew sorting method sortCandidateEntities for operator. To be used by OperatorRouter
parent
34344b44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
dream/simulation/Operator.py
dream/simulation/Operator.py
+17
-0
No files found.
dream/simulation/Operator.py
View file @
b6adfd03
...
...
@@ -60,6 +60,23 @@ class Operator(Repairman): # XXX isn't it the other way around ?
# the station that the operator is assigned to
self
.
operatorAssignedTo
=
None
# =======================================================================
# sorts the candidateEntities of the Operator according to the scheduling rule
# =======================================================================
def
sortCandidateEntities
(
self
,
candidateEntities
=
[]):
pass
# # TODO: have to consider what happens in case of a critical order
# # FIFO sorting has no meaning when sorting candidateEntities
# if self.schedulingRule=="FIFO":
# self.activeCandidateQSorter('WT', candidateEntities=candidateEntities)
# #if we have sorting according to multiple criteria we have to call the sorter many times
# elif self.schedulingRule=="MC":
# for criterion in reversed(self.multipleCriterionList):
# self.activeCandidateQSorter(criterion=criterion, candidateEntities=candidateEntities)
# #else we just use the default scheduling rule
# else:
# self.activeCandidateQSorter(self.schedulingRule, candidateEntities=candidateEntities)
# =======================================================================
# sorts the activeCallerrs of the Operator 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