Commit 673e78d6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

BatchScrapMachine to pass canDeliverOnInterruption to Machine

parent be2056f8
...@@ -45,7 +45,8 @@ class BatchScrapMachine(Machine): ...@@ -45,7 +45,8 @@ class BatchScrapMachine(Machine):
# ======================================================================= # =======================================================================
def __init__(self, id, name, capacity=1, \ def __init__(self, id, name, capacity=1, \
processingTime=None, repairman='None',\ processingTime=None, repairman='None',\
scrapQuantity={}, **kw): scrapQuantity={},
canDeliverOnInterruption=False, **kw):
if not processingTime: if not processingTime:
processingTime = {'distributionType': 'Fixed', processingTime = {'distributionType': 'Fixed',
'mean': 1} 'mean': 1}
...@@ -53,7 +54,8 @@ class BatchScrapMachine(Machine): ...@@ -53,7 +54,8 @@ class BatchScrapMachine(Machine):
Machine.__init__(self,id=id,name=name,\ Machine.__init__(self,id=id,name=name,\
capacity=capacity,\ capacity=capacity,\
processingTime=processingTime, processingTime=processingTime,
repairman=repairman) repairman=repairman,
canDeliverOnInterruption=canDeliverOnInterruption)
# set the attributes of the scrap quantity distribution # set the attributes of the scrap quantity distribution
if not scrapQuantity: if not scrapQuantity:
......
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