Commit 000d766c authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

new method checkInitialOperationTypes to retrieve the operation types defined by the initialWIP

parent b49885ec
......@@ -301,6 +301,12 @@ class Machine(CoreObject):
self.env.process(self.router.run())
self.router.isActivated=True
#===========================================================================
# get the initial operationTypes (setup/processing) : manual or automatic
#===========================================================================
def checkInitialOperationTypes(self):
pass
#===========================================================================
# method controlling if there is a need to yield
#===========================================================================
......@@ -532,10 +538,6 @@ class Machine(CoreObject):
else:
operationNotFinished=False
# =======================================================================
# the main process of the machine
# =======================================================================
......@@ -655,6 +657,9 @@ class Machine(CoreObject):
# may fall in failure mode (assignExit()?)
if not self.isProcessingInitialWIP: # if we are in the state of having initial wip no need to take an Entity
self.currentEntity=self.getEntity()
else:
# find out if the initialWIP requires manual operations (manual/setup)
self.checkInitialOperationTypes()
# TODO: the Machine receive the entity after the operator is available
# the canAcceptAndIsRequested method checks only in case of Load type of operation
......
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