本文整理汇总了Python中ObjectInterruption.ObjectInterruption.initialize方法的典型用法代码示例。如果您正苦于以下问题:Python ObjectInterruption.initialize方法的具体用法?Python ObjectInterruption.initialize怎么用?Python ObjectInterruption.initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectInterruption.ObjectInterruption
的用法示例。
在下文中一共展示了ObjectInterruption.initialize方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
# signal used to initiate the generator of the Router
self.isCalled=self.env.event()
# list that holds all the objects that can receive
self.pendingObjects=[]
self.calledOperator=[]
# list of the operators that may handle a machine at the current simulation time
self.candidateOperators=[]
# list of criteria
self.multipleCriterionList=[]
# TODO: find out which must be the default for the scheduling Rule
self.schedulingRule='WT'
# flag used to check if the Router is initialised
self.isInitialized=True
self.invoked=False
self.criticalPending=[]
self.preemptiveOperators=[]
self.toBeSignalled=[]
self.conflictingOperators=[]
self.conflictingEntities=[]
self.conflictingStations=[]
self.occupiedReceivers=[]
self.entitiesWithOccupiedReceivers=[]
示例2: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.timeLastOperationEnded=0
self.timeOperationStarted=0
self.timeWaitForOperatorStarted=0
self.waitForOperator=False
# Broker events
self.isCalled=self.env.event()
self.resourceAvailable=self.env.event()
示例3: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
# signal used to initiate the generator of the Router
self.isCalled=self.env.event()
# lists that hold all the objects that can receive
self.pendingMachines=[]
self.pendingQueues=[]
# list of the operators that may handle a machine at the current simulation time
self.candidateOperators=[]
# flag used to check if the Router is initialised
self.isInitialized=True
self.invoked=False
self.preemptiveOperators=[]
self.toBeSignalled=[]
self.criticalQueues=[]
self.pending=[] # list of entities that require operators now
示例4: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.remainingShiftPattern=list(self.shiftPattern)
# self.victimEndedLastProcessing=self.env.event()
self.waitingSignal=False
示例5: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.remainingBreakPattern=list(self.breakPattern)
self.waitingSignal=False
示例6: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.victimStartsProcess = self.env.event()
self.victimEndsProcess = self.env.event()
示例7: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.readData()
self.FDC=FutureDemandCreator()
from Globals import G
G.AllocationManagementList.append(self)
示例8: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
# self.victimEndedLastProcessing=self.env.event()
self.waitingSignal=False
# not used yet
self.victimIsEmptyBeforeMaintenance=self.env.event()
示例9: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.remainingShiftPattern=list(self.shiftPattern)
示例10: initialize
# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
def initialize(self):
ObjectInterruption.initialize(self)
self.readData()
self.FDC=FutureDemandCreator()