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
5eddc6ac
Commit
5eddc6ac
authored
Feb 21, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interarrivalTime.mean is now a float
TODO: the GUI will have to make it a float too
parent
fd62846b
Changes
38
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
49 additions
and
47 deletions
+49
-47
dream/simulation/JSONInputs/Topology01.json
dream/simulation/JSONInputs/Topology01.json
+1
-1
dream/simulation/JSONInputs/Topology02.json
dream/simulation/JSONInputs/Topology02.json
+2
-2
dream/simulation/JSONInputs/Topology03.json
dream/simulation/JSONInputs/Topology03.json
+1
-1
dream/simulation/JSONInputs/Topology04.json
dream/simulation/JSONInputs/Topology04.json
+1
-1
dream/simulation/JSONInputs/Topology05.json
dream/simulation/JSONInputs/Topology05.json
+2
-2
dream/simulation/JSONInputs/Topology06.json
dream/simulation/JSONInputs/Topology06.json
+1
-1
dream/simulation/JSONInputs/Topology07.json
dream/simulation/JSONInputs/Topology07.json
+2
-2
dream/simulation/JSONInputs/Topology08.json
dream/simulation/JSONInputs/Topology08.json
+3
-3
dream/simulation/JSONInputs/Topology09.json
dream/simulation/JSONInputs/Topology09.json
+1
-1
dream/simulation/JSONInputs/Topology10.json
dream/simulation/JSONInputs/Topology10.json
+2
-2
dream/simulation/JSONInputs/Topology11.json
dream/simulation/JSONInputs/Topology11.json
+1
-1
dream/simulation/JSONInputs/Topology12.json
dream/simulation/JSONInputs/Topology12.json
+1
-1
dream/simulation/JSONInputs/Topology13.json
dream/simulation/JSONInputs/Topology13.json
+2
-2
dream/simulation/JSONInputs/Topology14.json
dream/simulation/JSONInputs/Topology14.json
+2
-2
dream/simulation/JSONInputs/Topology15.json
dream/simulation/JSONInputs/Topology15.json
+1
-1
dream/simulation/JSONInputs/Topology16.json
dream/simulation/JSONInputs/Topology16.json
+1
-1
dream/simulation/JSONInputs/Topology17.json
dream/simulation/JSONInputs/Topology17.json
+1
-1
dream/simulation/JSONInputs/Topology21.json
dream/simulation/JSONInputs/Topology21.json
+1
-1
dream/simulation/JSONInputs/Topology22.json
dream/simulation/JSONInputs/Topology22.json
+1
-1
dream/simulation/JSONInputs/Topology23.json
dream/simulation/JSONInputs/Topology23.json
+1
-1
dream/simulation/JSONInputs/Topology24.json
dream/simulation/JSONInputs/Topology24.json
+1
-1
dream/simulation/JSONInputs/Topology25.json
dream/simulation/JSONInputs/Topology25.json
+1
-1
dream/simulation/JSONInputs/Topology27.json
dream/simulation/JSONInputs/Topology27.json
+1
-1
dream/simulation/JSONInputs/Topology28.json
dream/simulation/JSONInputs/Topology28.json
+1
-1
dream/simulation/JSONInputs/Topology31.json
dream/simulation/JSONInputs/Topology31.json
+1
-1
dream/simulation/JSONInputs/Topology32.json
dream/simulation/JSONInputs/Topology32.json
+1
-1
dream/simulation/JSONInputs/Topology33.json
dream/simulation/JSONInputs/Topology33.json
+1
-1
dream/simulation/JSONInputs/Topology36.json
dream/simulation/JSONInputs/Topology36.json
+1
-1
dream/simulation/JSONInputs/Topology42.json
dream/simulation/JSONInputs/Topology42.json
+1
-1
dream/simulation/JSONInputs/Topology48.json
dream/simulation/JSONInputs/Topology48.json
+1
-1
dream/simulation/JSONInputs/Topology49.json
dream/simulation/JSONInputs/Topology49.json
+1
-1
dream/simulation/JSONInputs/Topology50.json
dream/simulation/JSONInputs/Topology50.json
+1
-1
dream/simulation/JSONInputs/Topology51.json
dream/simulation/JSONInputs/Topology51.json
+1
-1
dream/simulation/JSONInputs/Topology52.json
dream/simulation/JSONInputs/Topology52.json
+1
-1
dream/simulation/JSONInputs/Topology53.json
dream/simulation/JSONInputs/Topology53.json
+1
-1
dream/simulation/JSONInputs/Topology54.json
dream/simulation/JSONInputs/Topology54.json
+1
-1
dream/simulation/JSONInputs/Topology55.json
dream/simulation/JSONInputs/Topology55.json
+1
-1
dream/simulation/reformat.py
dream/simulation/reformat.py
+4
-2
No files found.
dream/simulation/JSONInputs/Topology01.json
View file @
5eddc6ac
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology02.json
View file @
5eddc6ac
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.7857142857142857
,
"left"
:
0.7857142857142857
,
"name"
:
"Parts"
,
"name"
:
"Parts"
,
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
"entity"
:
"Dream.Frame"
,
"entity"
:
"Dream.Frame"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"2"
"mean"
:
2.0
},
},
"left"
:
0.2142857142857143
,
"left"
:
0.2142857142857143
,
"name"
:
"Frames"
,
"name"
:
"Frames"
,
...
...
dream/simulation/JSONInputs/Topology03.json
View file @
5eddc6ac
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.30208333333333337
,
"left"
:
0.30208333333333337
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology04.json
View file @
5eddc6ac
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.6979166666666667
,
"left"
:
0.6979166666666667
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology05.json
View file @
5eddc6ac
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.2142857142857143
,
"left"
:
0.2142857142857143
,
"name"
:
"Parts"
,
"name"
:
"Parts"
,
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
"entity"
:
"Dream.Frame"
,
"entity"
:
"Dream.Frame"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"2"
"mean"
:
2.0
},
},
"left"
:
0.7857142857142857
,
"left"
:
0.7857142857142857
,
"name"
:
"Frames"
,
"name"
:
"Frames"
,
...
...
dream/simulation/JSONInputs/Topology06.json
View file @
5eddc6ac
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.6979166666666667
,
"left"
:
0.6979166666666667
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology07.json
View file @
5eddc6ac
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.7857142857142857
,
"left"
:
0.7857142857142857
,
"name"
:
"Raw Material 1"
,
"name"
:
"Raw Material 1"
,
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.2142857142857143
,
"left"
:
0.2142857142857143
,
"name"
:
"Raw Material 2"
,
"name"
:
"Raw Material 2"
,
...
...
dream/simulation/JSONInputs/Topology08.json
View file @
5eddc6ac
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.8636363636363636
,
"left"
:
0.8636363636363636
,
"name"
:
"Raw Material 1"
,
"name"
:
"Raw Material 1"
,
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.13636363636363635
,
"left"
:
0.13636363636363635
,
"name"
:
"Raw Material 2"
,
"name"
:
"Raw Material 2"
,
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"2"
"mean"
:
2.0
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material 3"
,
"name"
:
"Raw Material 3"
,
...
...
dream/simulation/JSONInputs/Topology09.json
View file @
5eddc6ac
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology10.json
View file @
5eddc6ac
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.7857142857142857
,
"left"
:
0.7857142857142857
,
"name"
:
"Raw Material 1"
,
"name"
:
"Raw Material 1"
,
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.2142857142857143
,
"left"
:
0.2142857142857143
,
"name"
:
"Raw Material 2"
,
"name"
:
"Raw Material 2"
,
...
...
dream/simulation/JSONInputs/Topology11.json
View file @
5eddc6ac
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.639751552795031
,
"left"
:
0.639751552795031
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology12.json
View file @
5eddc6ac
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.639751552795031
,
"left"
:
0.639751552795031
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology13.json
View file @
5eddc6ac
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.2142857142857143
,
"left"
:
0.2142857142857143
,
"name"
:
"Parts"
,
"name"
:
"Parts"
,
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
"entity"
:
"Dream.Frame"
,
"entity"
:
"Dream.Frame"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"2"
"mean"
:
2.0
},
},
"left"
:
0.7857142857142857
,
"left"
:
0.7857142857142857
,
"name"
:
"Frames"
,
"name"
:
"Frames"
,
...
...
dream/simulation/JSONInputs/Topology14.json
View file @
5eddc6ac
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.2142857142857143
,
"left"
:
0.2142857142857143
,
"name"
:
"Parts"
,
"name"
:
"Parts"
,
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
"entity"
:
"Dream.Frame"
,
"entity"
:
"Dream.Frame"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"2"
"mean"
:
2.0
},
},
"left"
:
0.7857142857142857
,
"left"
:
0.7857142857142857
,
"name"
:
"Frames"
,
"name"
:
"Frames"
,
...
...
dream/simulation/JSONInputs/Topology15.json
View file @
5eddc6ac
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.30208333333333337
,
"left"
:
0.30208333333333337
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology16.json
View file @
5eddc6ac
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.30208333333333337
,
"left"
:
0.30208333333333337
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology17.json
View file @
5eddc6ac
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
"id"
:
"S1"
,
"id"
:
"S1"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"name"
:
"Raw Material"
"name"
:
"Raw Material"
}
}
...
...
dream/simulation/JSONInputs/Topology21.json
View file @
5eddc6ac
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
"entity"
:
"Dream.Batch"
,
"entity"
:
"Dream.Batch"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Source"
,
"name"
:
"Source"
,
...
...
dream/simulation/JSONInputs/Topology22.json
View file @
5eddc6ac
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
"entity"
:
"Dream.Batch"
,
"entity"
:
"Dream.Batch"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1.5"
"mean"
:
1.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Source"
,
"name"
:
"Source"
,
...
...
dream/simulation/JSONInputs/Topology23.json
View file @
5eddc6ac
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
"entity"
:
"Dream.Batch"
,
"entity"
:
"Dream.Batch"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1.5"
"mean"
:
1.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Source"
,
"name"
:
"Source"
,
...
...
dream/simulation/JSONInputs/Topology24.json
View file @
5eddc6ac
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
"id"
:
"S1"
,
"id"
:
"S1"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"30"
"mean"
:
30.0
},
},
"name"
:
"Raw Material"
"name"
:
"Raw Material"
}
}
...
...
dream/simulation/JSONInputs/Topology25.json
View file @
5eddc6ac
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
"entity"
:
"Dream.Batch"
,
"entity"
:
"Dream.Batch"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Source"
,
"name"
:
"Source"
,
...
...
dream/simulation/JSONInputs/Topology27.json
View file @
5eddc6ac
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology28.json
View file @
5eddc6ac
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1.5"
"mean"
:
1.5
},
},
"left"
:
0.30208333333333337
,
"left"
:
0.30208333333333337
,
"name"
:
"Source"
,
"name"
:
"Source"
,
...
...
dream/simulation/JSONInputs/Topology31.json
View file @
5eddc6ac
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
"id"
:
"S1"
,
"id"
:
"S1"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"name"
:
"Raw Material"
"name"
:
"Raw Material"
},
},
...
...
dream/simulation/JSONInputs/Topology32.json
View file @
5eddc6ac
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology33.json
View file @
5eddc6ac
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.639751552795031
,
"left"
:
0.639751552795031
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology36.json
View file @
5eddc6ac
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.5"
"mean"
:
0.5
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology42.json
View file @
5eddc6ac
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"6"
"mean"
:
6.0
},
},
"name"
:
"Source"
"name"
:
"Source"
}
}
...
...
dream/simulation/JSONInputs/Topology48.json
View file @
5eddc6ac
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
"entity"
:
"Dream.Batch"
,
"entity"
:
"Dream.Batch"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1.5"
"mean"
:
1.5
},
},
"left"
:
0.6968085106382979
,
"left"
:
0.6968085106382979
,
"name"
:
"Source"
,
"name"
:
"Source"
,
...
...
dream/simulation/JSONInputs/Topology49.json
View file @
5eddc6ac
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology50.json
View file @
5eddc6ac
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology51.json
View file @
5eddc6ac
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology52.json
View file @
5eddc6ac
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology53.json
View file @
5eddc6ac
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
"entity"
:
"Dream.Part"
,
"entity"
:
"Dream.Part"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"1"
"mean"
:
1.0
},
},
"left"
:
0.5
,
"left"
:
0.5
,
"name"
:
"Raw Material"
,
"name"
:
"Raw Material"
,
...
...
dream/simulation/JSONInputs/Topology54.json
View file @
5eddc6ac
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
"id"
:
"S1"
,
"id"
:
"S1"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.75"
"mean"
:
0.75
},
},
"name"
:
"Raw Material"
"name"
:
"Raw Material"
}
}
...
...
dream/simulation/JSONInputs/Topology55.json
View file @
5eddc6ac
...
@@ -95,7 +95,7 @@
...
@@ -95,7 +95,7 @@
"id"
:
"S1"
,
"id"
:
"S1"
,
"interarrivalTime"
:
{
"interarrivalTime"
:
{
"distributionType"
:
"Fixed"
,
"distributionType"
:
"Fixed"
,
"mean"
:
"0.75"
"mean"
:
0.75
},
},
"name"
:
"Raw Material"
"name"
:
"Raw Material"
}
}
...
...
dream/simulation/reformat.py
View file @
5eddc6ac
...
@@ -58,7 +58,9 @@ def positionGraph(g):
...
@@ -58,7 +58,9 @@ def positionGraph(g):
def
format
(
m
):
def
format
(
m
):
for
node
in
m
[
'nodes'
].
values
():
for
node
in
m
[
'nodes'
].
values
():
if
node
[
'_class'
]
in
(
'Dream.Source'
,
'Dream.BatchSource'
):
if
node
[
'_class'
]
in
(
'Dream.Source'
,
'Dream.BatchSource'
):
print
node
interarrivalTime
=
node
[
'interarrivalTime'
]
print
interarrivalTime
interarrivalTime
[
'mean'
]
=
float
(
interarrivalTime
[
'mean'
])
entity
=
node
[
'entity'
]
entity
=
node
[
'entity'
]
if
not
entity
.
startswith
(
'Dream.'
):
if
not
entity
.
startswith
(
'Dream.'
):
node
[
'entity'
]
=
'Dream.%s'
%
entity
node
[
'entity'
]
=
'Dream.%s'
%
entity
...
@@ -68,7 +70,7 @@ def format(m):
...
@@ -68,7 +70,7 @@ def format(m):
with
open
(
sys
.
argv
[
1
])
as
infile
:
with
open
(
sys
.
argv
[
1
])
as
infile
:
m
=
json
.
load
(
infile
)
m
=
json
.
load
(
infile
)
#
m.update(format(m))
m
.
update
(
format
(
m
))
#m.update(preferences=positionGraph(m))
#m.update(preferences=positionGraph(m))
with
open
(
sys
.
argv
[
1
],
"w"
)
as
outfile
:
with
open
(
sys
.
argv
[
1
],
"w"
)
as
outfile
:
...
...
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