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
d0da9a2b
Commit
d0da9a2b
authored
Mar 06, 2015
by
Ioannis Papagiannopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
currentStep attribute added to job
parent
c4b1e2d1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
dream/simulation/Job.py
dream/simulation/Job.py
+4
-0
dream/simulation/MachineJobShop.py
dream/simulation/MachineJobShop.py
+1
-1
dream/simulation/QueueJobShop.py
dream/simulation/QueueJobShop.py
+1
-1
No files found.
dream/simulation/Job.py
View file @
d0da9a2b
...
@@ -70,6 +70,8 @@ class Job(Entity): # inherits from the Entity c
...
@@ -70,6 +70,8 @@ class Job(Entity): # inherits from the Entity c
# initialProcessingType=initialProcessing.get('operationType',0)
# initialProcessingType=initialProcessing.get('operationType',0)
self
.
initialOperationTypes
=
{
"Setup"
:
initialSetupType
,
self
.
initialOperationTypes
=
{
"Setup"
:
initialSetupType
,
"Processing"
:
initialProcessingType
}
"Processing"
:
initialProcessingType
}
# the current step of the job
self
.
currentStep
=
None
# =======================================================================
# =======================================================================
# outputs results to JSON File
# outputs results to JSON File
...
@@ -126,6 +128,8 @@ class Job(Entity): # inherits from the Entity c
...
@@ -126,6 +128,8 @@ class Job(Entity): # inherits from the Entity c
# initializes all the Entity for a new simulation replication
# initializes all the Entity for a new simulation replication
# =======================================================================
# =======================================================================
def
initialize
(
self
):
def
initialize
(
self
):
# reset the currentStep
self
.
currentStep
=
None
currentStationWellDefined
=
False
currentStationWellDefined
=
False
# if the currentStation is defined and the route is given in the BOM
# if the currentStation is defined and the route is given in the BOM
if
self
.
currentStation
and
self
.
routeInBOM
:
if
self
.
currentStation
and
self
.
routeInBOM
:
...
...
dream/simulation/MachineJobShop.py
View file @
d0da9a2b
...
@@ -65,7 +65,7 @@ class MachineJobShop(Machine):
...
@@ -65,7 +65,7 @@ class MachineJobShop(Machine):
taskId
=
activeEntity
.
remainingRoute
[
0
].
get
(
"task_id"
,
None
)
taskId
=
activeEntity
.
remainingRoute
[
0
].
get
(
"task_id"
,
None
)
if
taskId
:
if
taskId
:
self
.
currentOperator
.
schedule
[
-
1
][
"task_id"
]
=
taskId
self
.
currentOperator
.
schedule
[
-
1
][
"task_id"
]
=
taskId
removed
Step
=
activeEntity
.
remainingRoute
.
pop
(
0
)
#remove data from the remaining route of the entity
activeEntity
.
current
Step
=
activeEntity
.
remainingRoute
.
pop
(
0
)
#remove data from the remaining route of the entity
return
activeEntity
return
activeEntity
#===========================================================================
#===========================================================================
...
...
dream/simulation/QueueJobShop.py
View file @
d0da9a2b
...
@@ -105,7 +105,7 @@ class QueueJobShop(Queue):
...
@@ -105,7 +105,7 @@ class QueueJobShop(Queue):
# =======================================================================
# =======================================================================
def
getEntity
(
self
):
def
getEntity
(
self
):
activeEntity
=
Queue
.
getEntity
(
self
)
activeEntity
=
Queue
.
getEntity
(
self
)
activeEntity
.
remainingRoute
.
pop
(
0
)
#remove data from the remaining route of the entity
activeEntity
.
currentStep
=
activeEntity
.
remainingRoute
.
pop
(
0
)
#remove data from the remaining route of the entity
return
activeEntity
return
activeEntity
#===========================================================================
#===========================================================================
...
...
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