Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
000d766c
Commit
000d766c
authored
Sep 15, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new method checkInitialOperationTypes to retrieve the operation types defined by the initialWIP
parent
b49885ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
dream/simulation/Machine.py
dream/simulation/Machine.py
+10
-5
No files found.
dream/simulation/Machine.py
View file @
000d766c
...
...
@@ -300,6 +300,12 @@ class Machine(CoreObject):
if
not
self
.
router
.
isActivated
:
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
...
...
@@ -531,11 +537,7 @@ class Machine(CoreObject):
# if no interruption occurred the processing in M1 is ended
else
:
operationNotFinished
=
False
# =======================================================================
# the main process of the machine
# =======================================================================
...
...
@@ -655,7 +657,10 @@ 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
()
# 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
#===================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment