naming convention for sorting activeCallers changed

parent 1bae5d7d
...@@ -82,20 +82,20 @@ class Operator(Repairman): # XXX isn't it the other way around ? ...@@ -82,20 +82,20 @@ class Operator(Repairman): # XXX isn't it the other way around ?
# sorts the activeCallerrs of the Operator according to the scheduling rule # sorts the activeCallerrs of the Operator according to the scheduling rule
# TODO: change the name of the class (they are not entities) # TODO: change the name of the class (they are not entities)
# ======================================================================= # =======================================================================
def sortEntities(self): def sortActiveCallers(self):
#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.activeQSorter(criterion=criterion) self.activeCallerQSorter(criterion=criterion)
#else we just use the default scheduling rule #else we just use the default scheduling rule
else: else:
self.activeQSorter(self.schedulingRule) self.activeCallerQSorter(self.schedulingRule)
# ======================================================================= # =======================================================================
# sorts the activeCallers of the activeCallersList according to the scheduling rule # sorts the activeCallers of the activeCallersList according to the scheduling rule
# ======================================================================= # =======================================================================
# TODO: entityToGet is not updated for all stations, consider using it for all stations or withdraw the idea # TODO: entityToGet is not updated for all stations, consider using it for all stations or withdraw the idea
def activeQSorter(self, criterion=None): def activeCallerQSorter(self, criterion=None):
activeObjectQ=self.activeCallersList activeObjectQ=self.activeCallersList
if criterion==None: if criterion==None:
criterion=self.schedulingRule criterion=self.schedulingRule
......
...@@ -181,7 +181,7 @@ class OperatorManagedJob(Operator): ...@@ -181,7 +181,7 @@ class OperatorManagedJob(Operator):
# sorts the Entities of the Queue according to the scheduling rule # sorts the Entities of the Queue according to the scheduling rule
# ======================================================================= # =======================================================================
# TODO: entityToGet is not updated for all stations, consider using it for all stations or withdraw the idea # TODO: entityToGet is not updated for all stations, consider using it for all stations or withdraw the idea
def activeQSorter(self, criterion=None): def activeCallerQSorter(self, criterion=None):
activeObjectQ=self.activeCallersList activeObjectQ=self.activeCallersList
if criterion==None: if criterion==None:
criterion=self.schedulingRule criterion=self.schedulingRule
......
...@@ -161,7 +161,7 @@ class Router(ObjectInterruption): ...@@ -161,7 +161,7 @@ class Router(ObjectInterruption):
receiverIsActive: receiverIsActive:
# sort the activeCallersList of the operator # sort the activeCallersList of the operator
operator.sortEntities() operator.sortActiveCallers()
# find the activeCaller that has priority # find the activeCaller that has priority
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment