new flag added to Router, used to check if the Router should sort the...

new flag added to Router, used to check if the Router should sort the operators and the pendingEntities
parent 1a411c54
...@@ -48,11 +48,11 @@ class Router(ObjectInterruption): ...@@ -48,11 +48,11 @@ class Router(ObjectInterruption):
self.type = "Router" self.type = "Router"
# signal used to initiate the generator of the Router # signal used to initiate the generator of the Router
self.startCycle=SimEvent('startCycle') self.startCycle=SimEvent('startCycle')
# TODO: create an initialise method for router to reset the attributes for every replication
self.isInitialized=False self.isInitialized=False
self.candidateOperators=[] self.candidateOperators=[]
self.multipleCriterionList=[] self.multipleCriterionList=[]
self.schedulingRule='WT' self.schedulingRule='WT'
self.sorting=False
#=========================================================================== #===========================================================================
# the initialize method # the initialize method
...@@ -68,7 +68,10 @@ class Router(ObjectInterruption): ...@@ -68,7 +68,10 @@ class Router(ObjectInterruption):
self.multipleCriterionList=[] self.multipleCriterionList=[]
# TODO: find out which must be the default for the scheduling Rule # TODO: find out which must be the default for the scheduling Rule
self.schedulingRule='WT' self.schedulingRule='WT'
# flag used to check if the Router is initialised
self.isInitialized=True self.isInitialized=True
# boolean flag to check whether the Router should perform sorting on operators and on pendingEntities
self.sorting=False
# ======================================================================= # =======================================================================
# the run method # the run method
......
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