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
849bc6ca
Commit
849bc6ca
authored
Oct 08, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getEntity to update currentStation before invoking removeEntity
parent
a680e8a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dream/simulation/CoreObject.py
dream/simulation/CoreObject.py
+3
-1
No files found.
dream/simulation/CoreObject.py
View file @
849bc6ca
...
...
@@ -336,6 +336,7 @@ class CoreObject(ManPyObject):
giverObject
=
self
.
giver
giverObject
.
sortEntities
()
#sort the Entities of the giver
#according to the scheduling rule if applied
#giverObject.sortEntitiesForReceiver()
giverObjectQueue
=
giverObject
.
Res
.
users
# if the giverObject is blocked then unBlock it
if
giverObject
.
exitIsAssignedTo
():
...
...
@@ -343,7 +344,8 @@ class CoreObject(ManPyObject):
# if the activeObject entry is blocked then unBlock it
if
self
.
entryIsAssignedTo
():
self
.
unAssignEntry
()
activeEntity
=
self
.
identifyEntityToGet
()
activeEntity
.
currentStation
=
self
# remove entity from the giver
activeEntity
=
giverObject
.
removeEntity
(
entity
=
self
.
identifyEntityToGet
())
# variable that holds the last giver; used in case of preemption
...
...
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