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
d9cc785b
Commit
d9cc785b
authored
Jun 25, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queues removed from tab schedule and elements sorted based ontime
parent
4b8f4da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
dream/plugins/JobShop/JSComponentTabSchedule.py
dream/plugins/JobShop/JSComponentTabSchedule.py
+15
-0
No files found.
dream/plugins/JobShop/JSComponentTabSchedule.py
View file @
d9cc785b
...
@@ -5,6 +5,7 @@ from pprint import pformat
...
@@ -5,6 +5,7 @@ from pprint import pformat
from
dream.plugins
import
plugin
from
dream.plugins
import
plugin
from
dream.plugins.TimeSupport
import
TimeSupportMixin
from
dream.plugins.TimeSupport
import
TimeSupportMixin
import
datetime
import
datetime
from
copy
import
copy
class
JSComponentTabSchedule
(
plugin
.
OutputPreparationPlugin
,
TimeSupportMixin
):
class
JSComponentTabSchedule
(
plugin
.
OutputPreparationPlugin
,
TimeSupportMixin
):
'''outputs the Job Schedules in tabular format'''
'''outputs the Job Schedules in tabular format'''
...
@@ -115,4 +116,18 @@ class JSComponentTabSchedule(plugin.OutputPreparationPlugin, TimeSupportMixin):
...
@@ -115,4 +116,18 @@ class JSComponentTabSchedule(plugin.OutputPreparationPlugin, TimeSupportMixin):
self
.
convertToFormattedRealWorldTime
(
entranceTime
),
self
.
convertToFormattedRealWorldTime
(
entranceTime
),
processingTime
,
processingTime
,
operatorId
])
operatorId
])
# remove all the elements that have to do with buffers
tabElements
=
copy
(
result
[
self
.
configuration_dict
[
'output_id'
]])
tabElements
.
pop
(
0
)
for
row
in
tabElements
:
stationId
=
row
[
4
]
stationClass
=
data
[
'graph'
][
'node'
][
stationId
][
'_class'
]
if
stationClass
in
[
'Dream.MouldAssemblyBuffer'
,
'Dream.ConditionalBuffer'
]:
result
[
self
.
configuration_dict
[
'output_id'
]].
remove
(
row
)
# sort the elements according to Entrance Time
firstRow
=
result
[
self
.
configuration_dict
[
'output_id'
]].
pop
(
0
)
result
[
self
.
configuration_dict
[
'output_id'
]].
sort
(
key
=
lambda
x
:
x
[
5
])
result
[
self
.
configuration_dict
[
'output_id'
]].
insert
(
0
,
firstRow
)
return
data
return
data
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