本文整理汇总了Python中dream.simulation.imports.Machine.removeEntity方法的典型用法代码示例。如果您正苦于以下问题:Python Machine.removeEntity方法的具体用法?Python Machine.removeEntity怎么用?Python Machine.removeEntity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dream.simulation.imports.Machine
的用法示例。
在下文中一共展示了Machine.removeEntity方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: removeEntity
# 需要导入模块: from dream.simulation.imports import Machine [as 别名]
# 或者: from dream.simulation.imports.Machine import removeEntity [as 别名]
def removeEntity(self, entity):
activeEntity=Machine.removeEntity(self, entity)
if self.state==-1:
activeEntity.status='Bad'
else:
self.numGoodParts+=1
return activeEntity
示例2: removeEntity
# 需要导入模块: from dream.simulation.imports import Machine [as 别名]
# 或者: from dream.simulation.imports.Machine import removeEntity [as 别名]
def removeEntity(self,entity=None):
# run the default method
activeEntity=Machine.removeEntity(self, entity)
# count the number of parts in the server.
# If it is empty have one internal queue to signal the queue before the compound object
if not self.countInternalParts():
self.sendSignal(receiver=QB, signal=QB.canDispose, sender=Q1)
return activeEntity