Commit 50bc0bc3 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

MachineJobShop and RandomNumberGenerator Correction

parent c6718658
......@@ -239,13 +239,14 @@ class MachineJobShop(Machine):
# check if the operation defined as an argument requires manual operation
#===========================================================================
def checkForManualOperation(self,type,entity=None):
typeDict={'Setup':'setupTime', 'Processing':'processingTime'}
assert type!=None, 'a type must be defined for the checkForManualOperation method'
if not entity:
activeEntity=self.getActiveObjectQueue()[0]
else:
activeEntity=entity
# read the definition of the time from the remainingRoute dict
time=activeEntity.remainingRoute[0].get(str(type),{})
time=activeEntity.remainingRoute[0].get(str(typeDict[str(type)]),{})
operationType=time.get('operationType', 'not defined')
# if the operationType is not 'not defined'
if operationType!='not defined':
......
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