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
0f1d6992
Commit
0f1d6992
authored
Nov 14, 2013
by
Georgios Dagkakis
Committed by
Jérome Perrin
Dec 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update so that in the schedule of an Entity the whole object is kept
parent
8389f3fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dream/simulation/CoreObject.py
dream/simulation/CoreObject.py
+1
-1
dream/simulation/Job.py
dream/simulation/Job.py
+1
-1
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+1
-1
No files found.
dream/simulation/CoreObject.py
View file @
0f1d6992
...
...
@@ -105,7 +105,7 @@ class CoreObject(Process):
#append the time to schedule so that it can be read in the result
#remember that every entity has it's schedule which is supposed to be updated every time
# the entity enters a new object
activeEntity
.
schedule
.
append
([
activeObject
.
id
,
now
()])
activeEntity
.
schedule
.
append
([
activeObject
,
now
()])
activeEntity
.
currentStation
=
self
self
.
timeLastEntityEntered
=
now
()
try
:
...
...
dream/simulation/Job.py
View file @
0f1d6992
...
...
@@ -58,7 +58,7 @@ class Job(Entity): # inherits from the Entity c
i
=
0
for
record
in
self
.
schedule
:
json
[
'results'
][
'schedule'
][
str
(
i
)]
=
{}
# dictionary holding time and
json
[
'results'
][
'schedule'
][
str
(
i
)][
'stationId'
]
=
record
[
0
]
# id of the Object
json
[
'results'
][
'schedule'
][
str
(
i
)][
'stationId'
]
=
record
[
0
]
.
id
# id of the Object
json
[
'results'
][
'schedule'
][
str
(
i
)][
'entranceTime'
]
=
record
[
1
]
# time entering the Object
i
+=
1
G
.
outputJSON
[
'elementList'
].
append
(
json
)
...
...
dream/simulation/LineGenerationJSON.py
View file @
0f1d6992
...
...
@@ -538,7 +538,7 @@ def setWIP():
object
=
obj
# find the object in the 'G.ObjList
object
.
getActiveObjectQueue
().
append
(
entity
)
# append the entity to its Queue
entity
.
remainingRoute
[
0
][
0
]
=
""
# remove data from the remaining route.
entity
.
schedule
.
append
([
object
.
id
,
now
()])
#append the time to schedule so that it can be read in the result
entity
.
schedule
.
append
([
object
,
now
()])
#append the time to schedule so that it can be read in the result
entity
.
currentStation
=
object
# update the current station of the entity
# ===========================================================================
...
...
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