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
aac07003
Commit
aac07003
authored
Jul 14, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Sep 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cherry-pick from readWIPseperatelly. unused code removed from LineGeneration
parent
a32c346a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+0
-15
No files found.
dream/simulation/LineGenerationJSON.py
View file @
aac07003
...
...
@@ -67,7 +67,6 @@ from BatchScrapMachine import BatchScrapMachine
from
LineClearance
import
LineClearance
from
EventGenerator
import
EventGenerator
from
Operator
import
Operator
# from OperatorPreemptive import OperatorPreemptive
from
OperatorManagedJob
import
OperatorManagedJob
from
OperatorPool
import
OperatorPool
from
OperatedPoolBroker
import
Broker
...
...
@@ -164,7 +163,6 @@ def createObjects():
G
.
LineClearanceList
=
[]
G
.
EventGeneratorList
=
[]
G
.
OperatorsList
=
[]
# G.OperatorPreemptivesList = []
G
.
OperatorManagedJobsList
=
[]
G
.
OperatorPoolsList
=
[]
G
.
BrokersList
=
[]
...
...
@@ -217,19 +215,6 @@ def createObjects():
# calling the getSuccesorList() method on the operator
G
.
OperatorsList
.
append
(
O
)
# add the operator to the RepairmanList
G
.
ModelResourceList
.
append
(
O
)
# elif resourceClass=='Dream.OperatorPreemptive':
# id = element.get('id', 'not found') # get the id of the element / default 'not_found'
# name = element.get('name', 'not found') # get the name of the element / default 'not_found'
# capacity = int(element.get('capacity') or 1) # get the capacity of the el. / defautl '1'
# schedulingRule=element.get('schedulingRule', 'FIFO') # get the scheduling rule of the el. (how to choose which
# # station to serve first) / default 'FIFO' i.e. the one that
# # called first
# O = OperatorPreemptive(element_id, name, capacity,schedulingRule) # create an operator object
# O.coreObjectIds=getSuccessorList(id) # update the list of objects that the operator operates
# # calling the getSuccesorList() method on the operator
# G.OperatorsList.append(O) # add the operator to the RepairmanList
# G.OperatorPreemptivesList.append(O)
# G.ModelResourceList.append(O)
elif
resourceClass
==
'Dream.OperatorManagedJob'
:
id
=
element
.
get
(
'id'
,
'not found'
)
# get the id of the element / default 'not_found'
name
=
element
.
get
(
'name'
,
'not found'
)
# get the name of the element / default 'not_found'
...
...
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