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
be788497
Commit
be788497
authored
Mar 18, 2015
by
Ioannis Papagiannopoulos
Committed by
Jérome Perrin
Mar 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attribute name change to solve conflict
parent
2eb6c0b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
dream/simulation/Operator.py
dream/simulation/Operator.py
+4
-4
dream/simulation/Queue.py
dream/simulation/Queue.py
+4
-4
No files found.
dream/simulation/Operator.py
View file @
be788497
...
...
@@ -207,8 +207,8 @@ class Operator(ObjectResource):
processingTime
=
step
.
get
(
'processingTime'
,{})
if
processingTime
:
RPT
+=
float
(
processingTime
.
get
(
'Fixed'
,{}).
get
(
'mean'
,
0
))
entity
.
r
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
x
.
r
emainingProcessingTime
,
reverse
=
True
)
entity
.
totalR
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
x
.
totalR
emainingProcessingTime
,
reverse
=
True
)
#if the schedulingRule is to sort Entities according to longest processing time first in the next station
elif
criterion
==
"LPT"
:
for
entity
in
activeObjectQ
:
...
...
@@ -238,8 +238,8 @@ class Operator(ObjectResource):
processingTime
=
step
.
get
(
'processingTime'
,{})
if
processingTime
:
RPT
+=
float
(
processingTime
.
get
(
'Fixed'
,{}).
get
(
'mean'
,
0
))
entity
.
r
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
(
x
.
dueDate
-
x
.
r
emainingProcessingTime
))
entity
.
totalR
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
(
x
.
dueDate
-
x
.
totalR
emainingProcessingTime
))
#if the schedulingRule is to sort Entities based on the length of the following Queue
elif
criterion
==
"WINQ"
:
from
Globals
import
G
...
...
dream/simulation/Queue.py
View file @
be788497
...
...
@@ -275,8 +275,8 @@ class Queue(CoreObject):
processingTime
=
step
.
get
(
'processingTime'
,
None
)
if
processingTime
:
RPT
+=
float
(
processingTime
.
get
(
'Fixed'
,{}).
get
(
'mean'
,
0
))
entity
.
r
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
x
.
r
emainingProcessingTime
,
reverse
=
True
)
entity
.
totalR
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
x
.
totalR
emainingProcessingTime
,
reverse
=
True
)
#if the schedulingRule is to sort Entities according to longest processing time first in the next station
elif
criterion
==
"LPT"
:
for
entity
in
activeObjectQ
:
...
...
@@ -303,8 +303,8 @@ class Queue(CoreObject):
processingTime
=
step
.
get
(
'processingTime'
,
None
)
if
processingTime
:
RPT
+=
float
(
processingTime
.
get
(
'Fixed'
,{}).
get
(
'mean'
,
0
))
entity
.
r
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
(
x
.
dueDate
-
x
.
r
emainingProcessingTime
))
entity
.
totalR
emainingProcessingTime
=
RPT
activeObjectQ
.
sort
(
key
=
lambda
x
:
(
x
.
dueDate
-
x
.
totalR
emainingProcessingTime
))
#if the schedulingRule is to sort Entities based on the length of the following Queue
elif
criterion
==
"WINQ"
:
from
Globals
import
G
...
...
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