当前位置: 首页>>代码示例>>Python>>正文


Python ObjectInterruption.initialize方法代码示例

本文整理汇总了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=[]
开发者ID:cpcdevelop,项目名称:dream,代码行数:29,代码来源:OperatorRouter.py

示例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()
开发者ID:goodhobak,项目名称:dream,代码行数:11,代码来源:OperatedPoolBroker.py

示例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
开发者ID:jerome-nexedi,项目名称:dream,代码行数:18,代码来源:OperatorRouter.py

示例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
开发者ID:Kodextor,项目名称:dream,代码行数:7,代码来源:ShiftScheduler.py

示例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
开发者ID:goodhobak,项目名称:dream,代码行数:6,代码来源:ScheduledBreak.py

示例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()
开发者ID:goodhobak,项目名称:dream,代码行数:6,代码来源:PeriodicMaintenance.py

示例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)
开发者ID:Kodextor,项目名称:dream,代码行数:8,代码来源:AllocationManagement.py

示例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()
开发者ID:cpcdevelop,项目名称:dream,代码行数:8,代码来源:ScheduledMaintenance.py

示例9: initialize

# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
 def initialize(self):
     ObjectInterruption.initialize(self)
     self.remainingShiftPattern=list(self.shiftPattern) 
开发者ID:mmariani,项目名称:dream,代码行数:5,代码来源:ShiftScheduler.py

示例10: initialize

# 需要导入模块: from ObjectInterruption import ObjectInterruption [as 别名]
# 或者: from ObjectInterruption.ObjectInterruption import initialize [as 别名]
 def initialize(self):
     ObjectInterruption.initialize(self)
     self.readData()
     self.FDC=FutureDemandCreator()
开发者ID:cpcdevelop,项目名称:dream,代码行数:6,代码来源:AllocationManagement.py


注:本文中的ObjectInterruption.ObjectInterruption.initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。