variables added to Entity and Operator for use by OperatorRouter

parent 82cbad0c
......@@ -61,6 +61,11 @@ class Entity(object):
# variable used to differentiate entities with and entities without routes
self.family='Entity'
# variables to be used by OperatorRouter
self.canProceed=False # boolean that is used to check weather the entity can proceed to the candidateReceiver
self.candidateReceivers=[] # list of candidateReceivers of the entity (those stations that can receive the entity
self.candidateReceiver=None # the station that is finaly chosen to receive the entity
# =======================================================================
# outputs results to JSON File
# =======================================================================
......
......@@ -60,6 +60,10 @@ class Operator(Repairman): # XXX isn't it the other way around ?
# the station that the operator is assigned to
self.operatorAssignedTo=None
# variables to be used by OperatorRouter
self.candidateEntities=[] # list of the entities requesting the operator at a certain simulation Time
self.candidateEntity=None # the entity that will be chosen for processing
# =======================================================================
# sorts the candidateEntities of the Operator according to the scheduling rule
# =======================================================================
......
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