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
a42305c0
Commit
a42305c0
authored
Oct 08, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ObjectInterruptions to be activated first and then CoreObjects
parent
8d8415ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
dream/simulation/Globals.py
dream/simulation/Globals.py
+4
-1
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+4
-3
No files found.
dream/simulation/Globals.py
View file @
a42305c0
...
...
@@ -444,7 +444,10 @@ def runSimulation(objectList=[], maxSimTime=100, numberOfReplications=1, trace='
object
.
initialize
()
#activate all the objects
for
object
in
G
.
ObjList
+
G
.
ObjectInterruptionList
:
for
object
in
G
.
ObjectInterruptionList
:
G
.
env
.
process
(
object
.
run
())
#activate all the objects
for
object
in
G
.
ObjList
:
G
.
env
.
process
(
object
.
run
())
#set the WIP
...
...
dream/simulation/LineGenerationJSON.py
View file @
a42305c0
...
...
@@ -483,9 +483,10 @@ def initializeObjects():
# activates all the objects
# ===========================================================================
def
activateObjects
():
# XXX EventGeneratorList
for
element
in
G
.
ObjList
+
G
.
ObjectInterruptionList
:
G
.
env
.
process
(
element
.
run
())
for
element
in
G
.
ObjectInterruptionList
:
G
.
env
.
process
(
element
.
run
())
for
element
in
G
.
ObjList
:
G
.
env
.
process
(
element
.
run
())
# ===========================================================================
# the main script that is ran
...
...
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