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
e9ef6832
Commit
e9ef6832
authored
Oct 01, 2013
by
Georgios Dagkakis
Committed by
Sebastien Robin
Nov 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jobshop objects added as empty scripts for now
parent
1e533ec5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
1 deletion
+68
-1
dream/simulation/ExitJobShop.py
dream/simulation/ExitJobShop.py
+0
-0
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+29
-1
dream/simulation/MachineJobShop.py
dream/simulation/MachineJobShop.py
+39
-0
dream/simulation/QueueJobShop.py
dream/simulation/QueueJobShop.py
+0
-0
No files found.
dream/simulation/ExitJobShop.py
0 → 100644
View file @
e9ef6832
dream/simulation/LineGenerationJSON.py
View file @
e9ef6832
...
...
@@ -64,6 +64,9 @@ from Assembly import Assembly
from
Dismantle
import
Dismantle
from
Conveyer
import
Conveyer
from
Job
import
Job
#from MachineJobShop import MachineJobShop
#from QueueJobShop import QueueJobShop
#from ExitJobShop import ExitJobShop
import
xlwt
import
xlrd
import
time
...
...
@@ -112,7 +115,7 @@ def createObjects():
G
.
JobList
=
[]
G
.
WipList
=
[]
G
.
EntityList
=
[]
G
.
MachineJobShopList
=
[]
#loop through all the model resources
#search for repairmen in order to create them
...
...
@@ -169,6 +172,31 @@ def createObjects():
G
.
MachineList
.
append
(
M
)
G
.
ObjList
.
append
(
M
)
elif
objClass
==
'Dream.MachineJobShop'
:
id
=
element
.
get
(
'id'
,
'not found'
)
name
=
element
.
get
(
'name'
,
'not found'
)
processingTime
=
element
.
get
(
'processingTime'
,
'not found'
)
distributionType
=
processingTime
.
get
(
'distributionType'
,
'not found'
)
mean
=
float
(
processingTime
.
get
(
'mean'
,
'0'
))
stdev
=
float
(
processingTime
.
get
(
'stdev'
,
'0'
))
min
=
float
(
processingTime
.
get
(
'min'
,
'0'
))
max
=
float
(
processingTime
.
get
(
'max'
,
'0'
))
failures
=
element
.
get
(
'failures'
,
'not found'
)
failureDistribution
=
failures
.
get
(
'failureDistribution'
,
'not found'
)
MTTF
=
float
(
failures
.
get
(
'MTTF'
,
'0'
))
MTTR
=
float
(
failures
.
get
(
'MTTR'
,
'0'
))
availability
=
float
(
failures
.
get
(
'availability'
,
'0'
))
r
=
'None'
for
repairman
in
G
.
RepairmanList
:
if
(
id
in
repairman
.
coreObjectIds
):
r
=
repairman
M
=
MachineJobShop
(
id
,
name
,
1
,
distributionType
,
[
mean
,
stdev
,
min
,
max
],
failureDistribution
,
MTTF
,
MTTR
,
availability
,
r
)
M
.
nextIds
=
getSuccessorList
(
id
)
G
.
MachineJobShopList
.
append
(
M
)
G
.
ObjList
.
append
(
M
)
elif
objClass
==
'Dream.Exit'
:
id
=
element
.
get
(
'id'
,
'not found'
)
name
=
element
.
get
(
'name'
,
'not found'
)
...
...
dream/simulation/MachineJobShop.py
0 → 100644
View file @
e9ef6832
# ===========================================================================
# Copyright 2013 University of Limerick
#
# This file is part of DREAM.
#
# DREAM is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# DREAM is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with DREAM. If not, see <http://www.gnu.org/licenses/>.
# ===========================================================================
'''
Created on 8 Nov 2012
@author: George
'''
'''
extends the machine object so that it can act as a jobshop station. It reads the processing time and the successive station from the Entity
'''
from
SimPy.Simulation
import
Process
,
Resource
from
SimPy.Simulation
import
activate
,
passivate
,
waituntil
,
now
,
hold
from
Machine
import
Machine
from
RandomNumberGenerator
import
RandomNumberGenerator
#the MachineJobShop object
class
MachineJobShop
(
Machine
):
\ No newline at end of file
dream/simulation/QueueJobShop.py
0 → 100644
View file @
e9ef6832
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