Commit 16c68472 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 fafce0cc
...@@ -300,6 +300,12 @@ class Machine(CoreObject): ...@@ -300,6 +300,12 @@ class Machine(CoreObject):
if not self.router.isActivated: if not self.router.isActivated:
self.env.process(self.router.run()) self.env.process(self.router.run())
self.router.isActivated=True 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 # method controlling if there is a need to yield
...@@ -531,11 +537,7 @@ class Machine(CoreObject): ...@@ -531,11 +537,7 @@ class Machine(CoreObject):
# if no interruption occurred the processing in M1 is ended # if no interruption occurred the processing in M1 is ended
else: else:
operationNotFinished=False operationNotFinished=False
# ======================================================================= # =======================================================================
# the main process of the machine # the main process of the machine
# ======================================================================= # =======================================================================
...@@ -655,7 +657,10 @@ class Machine(CoreObject): ...@@ -655,7 +657,10 @@ class Machine(CoreObject):
# may fall in failure mode (assignExit()?) # 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 if not self.isProcessingInitialWIP: # if we are in the state of having initial wip no need to take an Entity
self.currentEntity=self.getEntity() self.currentEntity=self.getEntity()
# TODO: the Machine receive the entity after the operator is available 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 # 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