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
a4f2610d
Commit
a4f2610d
authored
Sep 26, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Oct 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redundant sort removed
parent
ff3da69e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
23 deletions
+1
-23
dream/simulation/Job.py
dream/simulation/Job.py
+1
-1
dream/simulation/MouldAssemblyBuffer.py
dream/simulation/MouldAssemblyBuffer.py
+0
-22
No files found.
dream/simulation/Job.py
View file @
a4f2610d
...
...
@@ -195,7 +195,7 @@ class Job(Entity): # inherits from the Entity c
return
sequence
#===========================================================================
# method that returns the sequence of the entity's current step (returns zero if the entity is in a queue)
# method that returns the sequence of the entity's current step (returns zero if the entity is in a queue
or orderDecomposition
)
#===========================================================================
def
currentStepSequence
(
self
):
currentStation
=
self
.
currentStation
# the current station of the part
...
...
dream/simulation/MouldAssemblyBuffer.py
View file @
a4f2610d
...
...
@@ -99,9 +99,6 @@ class MouldAssemblyBuffer(ConditionalBuffer):
activeObject
=
self
.
getActiveObject
()
activeObjectQueue
=
self
.
getActiveObjectQueue
()
thecaller
=
callerObject
# sort the entities and bring to front the entities that have parerntOrders
# with the flag componentsReadyForAssembly raised
activeObject
.
sortEntities
()
# and then perform the default behaviour
if
ConditionalBuffer
.
haveToDispose
(
self
,
callerObject
):
# update the local variable activeEntity
...
...
@@ -111,25 +108,6 @@ class MouldAssemblyBuffer(ConditionalBuffer):
and
activeEntity
.
order
.
componentsReadyForAssembly
except
:
return
activeEntity
.
order
.
componentsReadyForAssembly
# # if no caller is defined then check if the entity to be disposed has the flag componentsReadyForAssembly raised
# if not thecaller:
# return activeEntity.order.componentsReadyForAssembly
# # if the successors (MouldAssembly) internal queue is empty then proceed with checking weather
# # the caller is the receiver
# # TODO: the activeEntity is already checked for the flag componentsReadyForAssembly
# if len(thecaller.getActiveObjectQueue())==0:
# return activeEntity.order.componentsReadyForAssembly
# # if activeEntity.type=='Mould':
# # return True
# # else:
# # return activeEntity.order.componentsReadyForAssembly
# # otherwise, check additionally if the receiver holds orderComponents of the same order
# # TODO: should revise, this check may be redundant, as the receiver (assembler must be empty in order to start receiving
# # It is therefore needed that the control is performed by the assembler's getEntity()
# else:
# return thecaller.getActiveObjectQueue()[0].order is activeEntity.order\
# and activeEntity.order.componentsReadyForAssembly
# =======================================================================
# Sort the entities of the activeQ
...
...
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