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
283b0760
Commit
283b0760
authored
May 29, 2014
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QueueManagedJob and MouldAssemblyBuffer updated
parent
d32d1371
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
dream/simulation/MouldAssemblyBuffer.py
dream/simulation/MouldAssemblyBuffer.py
+3
-2
dream/simulation/QueueManagedJob.py
dream/simulation/QueueManagedJob.py
+3
-2
No files found.
dream/simulation/MouldAssemblyBuffer.py
View file @
283b0760
...
...
@@ -27,7 +27,8 @@ Only if all the mould (order) components are present, will it be able to dispose
'''
from
QueueManagedJob
import
QueueManagedJob
from
SimPy.Simulation
import
now
# from SimPy.Simulation import now
import
simpy
# ===========================================================================
# Error in the setting up of the WIP
...
...
@@ -109,7 +110,7 @@ class MouldAssemblyBuffer(QueueManagedJob):
for
secondary
in
[
x
for
x
in
activeEntity
.
order
.
secondaryComponentsList
if
activeEntity
.
order
.
basicsEnded
]:
if
secondary
.
currentStation
.
__class__
.
__name__
==
'ConditionalBuffer'
:
# print now(), self.id, ' signalling conditional buffer'
secondary
.
currentStation
.
canDispose
.
s
ignal
(
now
()
)
secondary
.
currentStation
.
canDispose
.
s
ucceed
(
self
.
env
.
now
)
break
# for all the components that have the same parent Order as the activeEntity
activeEntity
.
order
.
componentsReadyForAssembly
=
1
...
...
dream/simulation/QueueManagedJob.py
View file @
283b0760
...
...
@@ -25,7 +25,8 @@ Created on 4 Feb 2014
inherits from QueueJobShop. The difference is that it reads the operator from the Entity and
checks if he is available before it disposed it
'''
from
SimPy.Simulation
import
now
# from SimPy.Simulation import now
import
simpy
from
QueueJobShop
import
QueueJobShop
# ===========================================================================
...
...
@@ -116,7 +117,7 @@ class QueueManagedJob(QueueJobShop):
if
not
G
.
Router
.
invoked
:
# self.printTrace(self.id, signal='router')
G
.
Router
.
invoked
=
True
G
.
Router
.
isCalled
.
s
ignal
(
now
()
)
G
.
Router
.
isCalled
.
s
ucceed
(
self
.
env
.
now
)
return
True
else
:
return
False
...
...
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