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
1e533ec5
Commit
1e533ec5
authored
Oct 01, 2013
by
Georgios Dagkakis
Committed by
Sebastien Robin
Nov 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LineGenerationJSON.py was updated in order to set WIP in the objects
parent
42b601cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+22
-1
No files found.
dream/simulation/LineGenerationJSON.py
View file @
1e533ec5
...
...
@@ -325,6 +325,16 @@ def activateObjects():
except
AttributeError
:
pass
#sets the WIP in the corresponding stations
def
setWIP
():
for
entity
in
G
.
WipList
:
objectId
=
entity
.
currentStop
object
=
None
for
obj
in
G
.
ObjList
:
if
obj
.
id
==
objectId
:
object
=
obj
object
.
Res
.
activeQ
.
append
(
entity
)
#the main script that is ran
def
main
(
argv
=
[],
input_data
=
None
):
argv
=
argv
or
sys
.
argv
[
1
:]
...
...
@@ -361,8 +371,19 @@ def main(argv=[], input_data=None):
initialize
()
#initialize the simulation
initializeObjects
()
setWIP
()
activateObjects
()
for
obj
in
G
.
ObjList
:
pass
#print obj.id, obj.Res.activeQ, obj.haveToDispose(), obj.canAcceptAndIsRequested()
'''
if obj.type is "Machine":
print obj.next[0].id
if obj.type is "Queue":
print obj.previous[0].id
'''
simulate
(
until
=
G
.
maxSimTime
)
#start the simulation
#carry on the post processing operations for every object in the topology
...
...
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