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
01b66b72
Commit
01b66b72
authored
Apr 16, 2015
by
panos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial WIP fix for MouldassemblyBuffer
parent
1392ab42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
dream/simulation/MouldAssemblyBuffer.py
dream/simulation/MouldAssemblyBuffer.py
+15
-0
No files found.
dream/simulation/MouldAssemblyBuffer.py
View file @
01b66b72
...
@@ -103,6 +103,21 @@ class MouldAssemblyBuffer(ConditionalBuffer):
...
@@ -103,6 +103,21 @@ class MouldAssemblyBuffer(ConditionalBuffer):
if
ConditionalBuffer
.
haveToDispose
(
self
,
callerObject
):
if
ConditionalBuffer
.
haveToDispose
(
self
,
callerObject
):
# update the local variable activeEntity
# update the local variable activeEntity
activeEntity
=
activeObjectQueue
[
0
]
activeEntity
=
activeObjectQueue
[
0
]
# if we are at the start of the simulation then check if all the child components
# of a specific order are present in the buffer and ready to be delivered to the assembly station
try
:
# for all the components that have the same parent Order as the activeEntity
activeEntity
.
order
.
componentsReadyForAssembly
=
1
for
entity
in
activeEntity
.
order
.
getAssemblyComponents
():
# if one of them has not reach the Buffer yet,
if
not
entity
.
readyForAssembly
:
# the mould is not ready for assembly
activeEntity
.
order
.
componentsReadyForAssembly
=
0
break
# if the activeEntity is of type Mould
except
:
pass
try
:
try
:
return
thecaller
.
getActiveObjectQueue
()[
0
].
order
is
activeEntity
.
order
\
return
thecaller
.
getActiveObjectQueue
()[
0
].
order
is
activeEntity
.
order
\
and
activeEntity
.
order
.
componentsReadyForAssembly
and
activeEntity
.
order
.
componentsReadyForAssembly
...
...
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