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
47d000a5
Commit
47d000a5
authored
Sep 25, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Nov 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isInRoute used in more places
parent
ec00842e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
5 deletions
+3
-5
dream/simulation/Machine.py
dream/simulation/Machine.py
+1
-1
dream/simulation/MachineJobShop.py
dream/simulation/MachineJobShop.py
+0
-1
dream/simulation/Queue.py
dream/simulation/Queue.py
+1
-1
dream/simulation/QueueJobShop.py
dream/simulation/QueueJobShop.py
+0
-1
dream/simulation/RoutingQueue.py
dream/simulation/RoutingQueue.py
+1
-1
No files found.
dream/simulation/Machine.py
View file @
47d000a5
...
...
@@ -1093,7 +1093,7 @@ class Machine(CoreObject):
thecaller
=
callerObject
return
len
(
activeObjectQueue
)
>
0
\
and
self
.
waitToDispose
\
and
(
thecaller
in
self
.
next
)
\
and
thecaller
.
isInRoute
(
self
)
\
and
(
self
.
canDeliverOnInterruption
or
self
.
timeLastEntityEnded
==
self
.
env
.
now
or
self
.
checkIfActive
())
...
...
dream/simulation/MachineJobShop.py
View file @
47d000a5
...
...
@@ -162,7 +162,6 @@ class MachineJobShop(Machine):
and
self
.
waitToDispose
\
and
self
.
checkIfActive
()
\
and
thecaller
.
isInRoute
(
self
)
# and (thecaller in self.next)
# =======================================================================
# method to execute preemption
...
...
dream/simulation/Queue.py
View file @
47d000a5
...
...
@@ -166,7 +166,7 @@ class Queue(CoreObject):
if
(
callerObject
==
None
):
return
len
(
activeObjectQueue
)
>
0
thecaller
=
callerObject
return
len
(
activeObjectQueue
)
>
0
and
(
thecaller
in
self
.
next
)
return
len
(
activeObjectQueue
)
>
0
and
thecaller
.
isInRoute
(
self
)
# =======================================================================
# removes an entity from the Object
...
...
dream/simulation/QueueJobShop.py
View file @
47d000a5
...
...
@@ -88,7 +88,6 @@ class QueueJobShop(Queue):
#return True if the Queue has Entities and the caller is in the self.next list
return
len
(
activeObjectQueue
)
>
0
\
and
(
thecaller
in
self
.
next
)
\
and
thecaller
.
isInRoute
(
self
)
#===========================================================================
...
...
dream/simulation/RoutingQueue.py
View file @
47d000a5
...
...
@@ -59,7 +59,7 @@ class RoutingQueue(Queue):
if
not
entity
.
receiver
:
isInRouting
=
True
break
return
len
(
activeObjectQueue
)
>
0
and
(
thecaller
in
self
.
next
)
and
isInRouting
return
len
(
activeObjectQueue
)
>
0
and
thecaller
.
isInRoute
(
self
)
and
isInRouting
#===========================================================================
# sort the entities of the queue for the receiver
...
...
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