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
37d72f14
Commit
37d72f14
authored
Feb 25, 2014
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PartJobShop: find job informations in initial schedule
parent
34c1c8e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
18 deletions
+22
-18
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+9
-5
dream/simulation/Examples/JobShopWithParts.json
dream/simulation/Examples/JobShopWithParts.json
+11
-11
dream/simulation/GUI/PartJobShop.py
dream/simulation/GUI/PartJobShop.py
+2
-2
No files found.
dream/platform/static/src/dream.js
View file @
37d72f14
...
@@ -385,11 +385,15 @@
...
@@ -385,11 +385,15 @@
// find the corresponding input
// find the corresponding input
var
data
=
that
.
getData
(),
var
data
=
that
.
getData
(),
input_job
;
input_job
;
$
.
each
(
data
.
wip_spreadsheet
,
function
(
i
,
line
){
if
(
configuration
[
'
Dream-Configuration
'
].
gui
.
wip_spreadsheet
)
{
if
(
line
[
1
]
==
obj
[
'
id
'
])
{
$
.
each
(
data
.
wip_spreadsheet
,
function
(
i
,
line
){
input_job
=
line
;
if
(
line
[
1
]
==
obj
[
'
id
'
])
{
}
input_job
=
line
;
});
}
});
}
else
if
(
configuration
[
'
Dream-Configuration
'
].
gui
.
wip_part_spreadsheet
)
{
input_job
=
data
.
wip_part_spreadsheet
[
obj
[
"
id
"
]];
}
var
duration
=
0
;
var
duration
=
0
;
gantt_data
.
data
.
push
({
gantt_data
.
data
.
push
({
...
...
dream/simulation/Examples/JobShopWithParts.json
View file @
37d72f14
{
{
"edges"
:
{
"edges"
:
{
"con_10"
:
[
"con_10"
:
[
"QStart"
,
"CAD2"
,
{}
],
"con_15"
:
[
"CAD1"
,
"CAD1"
,
"Decomposition"
,
"Decomposition"
,
{}
{}
],
],
"con_
20
"
:
[
"con_
15
"
:
[
"Decomposition"
,
"Decomposition"
,
"QCAM"
,
"QCAM"
,
{}
{}
],
],
"con_2
5
"
:
[
"con_2
0
"
:
[
"QCAM"
,
"QCAM"
,
"CAM1"
,
"CAM1"
,
{}
{}
],
],
"con_
30
"
:
[
"con_
25
"
:
[
"QCAM"
,
"QCAM"
,
"CAM2"
,
"CAM2"
,
{}
{}
],
],
"con_3
5
"
:
[
"con_3
0
"
:
[
"CAD2"
,
"CAD2"
,
"Decomposition"
,
"Decomposition"
,
{}
{}
],
],
"con_5"
:
[
"con_
3
5"
:
[
"QStart"
,
"QStart"
,
"CAD1"
,
"CAD1"
,
{}
{}
],
"con_5"
:
[
"QStart"
,
"CAD2"
,
{}
]
]
},
},
"general"
:
{
"general"
:
{
...
@@ -293,4 +293,4 @@
...
@@ -293,4 +293,4 @@
null
null
]
]
]
]
}
}
\ No newline at end of file
dream/simulation/GUI/PartJobShop.py
View file @
37d72f14
...
@@ -132,7 +132,7 @@ class Simulation(ACO.Simulation):
...
@@ -132,7 +132,7 @@ class Simulation(ACO.Simulation):
processing_time_list
=
processing_time_list
.
split
(
'-'
)
processing_time_list
=
processing_time_list
.
split
(
'-'
)
order_dict
[
"_class"
]
=
"Dream.Order"
order_dict
[
"_class"
]
=
"Dream.Order"
order_dict
[
"id"
]
=
order_id
order_dict
[
"id"
]
=
"%i"
%
i
# XXX hack, we use it in UI to retrieve spreadsheet line
order_dict
[
"manager"
]
=
project_manager
order_dict
[
"manager"
]
=
project_manager
order_dict
[
"name"
]
=
order_id
order_dict
[
"name"
]
=
order_id
# XXX can we do better than this ?
# XXX can we do better than this ?
...
@@ -174,7 +174,7 @@ class Simulation(ACO.Simulation):
...
@@ -174,7 +174,7 @@ class Simulation(ACO.Simulation):
component_dict
=
{}
component_dict
=
{}
component_dict
[
"_class"
]
=
"Dream.OrderComponent"
component_dict
[
"_class"
]
=
"Dream.OrderComponent"
component_dict
[
"componentType"
]
=
part_type
component_dict
[
"componentType"
]
=
part_type
component_dict
[
"id"
]
=
"%i"
%
i
component_dict
[
"id"
]
=
"%i"
%
i
# XXX hack, we use it in UI to retrieve spreadsheet line
component_dict
[
"name"
]
=
part
component_dict
[
"name"
]
=
part
component_list
.
append
(
component_dict
)
component_list
.
append
(
component_dict
)
route_list
=
[]
route_list
=
[]
...
...
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