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
f6869dbb
Commit
f6869dbb
authored
Jan 14, 2014
by
Ioannis Papagiannopoulos
Committed by
Jérome Perrin
Jan 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Topology34 updated according the new notation - agreement with ulbranch
parent
e6a09767
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
21 deletions
+41
-21
dream/simulation/ExitJobShop.py
dream/simulation/ExitJobShop.py
+1
-1
dream/simulation/JSONInputs/Topology34.json
dream/simulation/JSONInputs/Topology34.json
+18
-6
dream/simulation/MachinePreemptive.py
dream/simulation/MachinePreemptive.py
+3
-2
dream/simulation/QueueJobShop.py
dream/simulation/QueueJobShop.py
+1
-6
dream/tests/dump/Topology34.json.result
dream/tests/dump/Topology34.json.result
+18
-6
No files found.
dream/simulation/ExitJobShop.py
View file @
f6869dbb
...
...
@@ -36,7 +36,7 @@ from Exit import Exit
class
ExitJobShop
(
Exit
):
# =======================================================================
# set all the objects in previous
# =======================================================================
====
# =======================================================================
def
initialize
(
self
):
from
Globals
import
G
self
.
previous
=
G
.
ObjList
...
...
dream/simulation/JSONInputs/Topology34.json
View file @
f6869dbb
...
...
@@ -45,7 +45,9 @@
"route"
:
[
{
"stepNumber"
:
"0"
,
"stationId"
:
"Q1"
,
"stationIdsList"
:
[
"Q1"
],
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"mean"
:
"0"
...
...
@@ -53,7 +55,9 @@
},
{
"stepNumber"
:
"1"
,
"stationId"
:
"M1"
,
"stationIdsList"
:
[
"M1"
],
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"mean"
:
"0.25"
...
...
@@ -61,7 +65,9 @@
},
{
"stepNumber"
:
"2"
,
"stationId"
:
"Q2"
,
"stationIdsList"
:
[
"Q2"
],
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"mean"
:
"0"
...
...
@@ -69,7 +75,9 @@
},
{
"stepNumber"
:
"3"
,
"stationId"
:
"M2"
,
"stationIdsList"
:
[
"M2"
],
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
...
...
@@ -94,7 +102,9 @@
"route"
:
[
{
"stepNumber"
:
"0"
,
"stationId"
:
"Q2"
,
"stationIdsList"
:
[
"Q2"
],
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"mean"
:
"0"
...
...
@@ -102,7 +112,9 @@
},
{
"stepNumber"
:
"1"
,
"stationId"
:
"M2"
,
"stationIdsList"
:
[
"M2"
],
"processingTime"
:
{
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
...
...
dream/simulation/MachinePreemptive.py
View file @
f6869dbb
...
...
@@ -57,18 +57,19 @@ class MachinePreemptive(MachineJobShop):
else
:
remainingProcessingTime
=
self
.
procTime
-
(
now
()
-
self
.
timeLastEntityEntered
)
#update the remaining route of activeEntity
activeEntity
.
remainingRoute
.
insert
(
0
,
{
'stationIdsList'
:
str
([
self
.
id
])
,
\
activeEntity
.
remainingRoute
.
insert
(
0
,
{
'stationIdsList'
:
[
str
(
self
.
id
)]
,
\
'processingTime'
:
\
{
'distributionType'
:
'Fixed'
,
\
'mean'
:
str
(
remainingProcessingTime
)}})
# activeEntity.remainingRoute.insert(0, [self.id, remainingProcessingTime])
activeEntity
.
remainingRoute
.
insert
(
0
,
{
'stationIdsList'
:
str
([
self
.
lastGiver
.
id
])
,
\
activeEntity
.
remainingRoute
.
insert
(
0
,
{
'stationIdsList'
:
[
str
(
self
.
lastGiver
.
id
)]
,
\
'processingTime'
:
\
{
'distributionType'
:
'Fixed'
,
\
'mean'
:
'0'
}})
# activeEntity.remainingRoute.insert(0, [self.lastGiver.id, 0])
#set the receiver as the object where the active entity was preempted from
self
.
receiver
=
self
.
lastGiver
self
.
next
=
[
self
.
receiver
]
self
.
waitToDispose
=
True
#set that I have to dispose
reactivate
(
self
)
...
...
dream/simulation/QueueJobShop.py
View file @
f6869dbb
...
...
@@ -74,7 +74,7 @@ class QueueJobShop(Queue):
activeObject
.
receiver
=
activeObject
.
next
[
0
]
return
len
(
activeObjectQueue
)
>
0
\
and
thecaller
==
activeObject
.
receiver
#give the entity to the possible receiver that is waiting for the most time.
#plant does not do this in every occasion!
maxTimeWaiting
=
0
...
...
@@ -106,9 +106,4 @@ class QueueJobShop(Queue):
activeEntity
.
remainingRoute
.
pop
(
0
)
#remove data from the remaining route of the entity
return
activeEntity
\ No newline at end of file
dream/tests/dump/Topology34.json.result
View file @
f6869dbb
...
...
@@ -5,35 +5,43 @@
"isCritical": "1",
"route": [
{
"stationIdsList": [
"Q1"
],
"processingTime": {
"distributionType": "Fixed",
"mean": "0"
},
"stationId": "Q1",
"stepNumber": "0"
},
{
"stationIdsList": [
"M1"
],
"processingTime": {
"distributionType": "Fixed",
"mean": "0.25"
},
"stationId": "M1",
"stepNumber": "1"
},
{
"stationIdsList": [
"Q2"
],
"processingTime": {
"distributionType": "Fixed",
"mean": "0"
},
"stationId": "Q2",
"stepNumber": "2"
},
{
"stationIdsList": [
"M2"
],
"processingTime": {
"distributionType": "Fixed",
"mean": "1"
},
"stationId": "M2",
"stepNumber": "3"
}
],
...
...
@@ -77,19 +85,23 @@
"isCritical": "0",
"route": [
{
"stationIdsList": [
"Q2"
],
"processingTime": {
"distributionType": "Fixed",
"mean": "0"
},
"stationId": "Q2",
"stepNumber": "0"
},
{
"stationIdsList": [
"M2"
],
"processingTime": {
"distributionType": "Fixed",
"mean": "1"
},
"stationId": "M2",
"stepNumber": "1"
}
],
...
...
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