Commit aac07003 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

cherry-pick from readWIPseperatelly. unused code removed from LineGeneration

parent a32c346a
...@@ -67,7 +67,6 @@ from BatchScrapMachine import BatchScrapMachine ...@@ -67,7 +67,6 @@ from BatchScrapMachine import BatchScrapMachine
from LineClearance import LineClearance from LineClearance import LineClearance
from EventGenerator import EventGenerator from EventGenerator import EventGenerator
from Operator import Operator from Operator import Operator
# from OperatorPreemptive import OperatorPreemptive
from OperatorManagedJob import OperatorManagedJob from OperatorManagedJob import OperatorManagedJob
from OperatorPool import OperatorPool from OperatorPool import OperatorPool
from OperatedPoolBroker import Broker from OperatedPoolBroker import Broker
...@@ -164,7 +163,6 @@ def createObjects(): ...@@ -164,7 +163,6 @@ def createObjects():
G.LineClearanceList=[] G.LineClearanceList=[]
G.EventGeneratorList=[] G.EventGeneratorList=[]
G.OperatorsList = [] G.OperatorsList = []
# G.OperatorPreemptivesList = []
G.OperatorManagedJobsList = [] G.OperatorManagedJobsList = []
G.OperatorPoolsList = [] G.OperatorPoolsList = []
G.BrokersList = [] G.BrokersList = []
...@@ -217,19 +215,6 @@ def createObjects(): ...@@ -217,19 +215,6 @@ def createObjects():
# calling the getSuccesorList() method on the operator # calling the getSuccesorList() method on the operator
G.OperatorsList.append(O) # add the operator to the RepairmanList G.OperatorsList.append(O) # add the operator to the RepairmanList
G.ModelResourceList.append(O) 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': elif resourceClass=='Dream.OperatorManagedJob':
id = element.get('id', 'not found') # get the id of the element / default 'not_found' 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' name = element.get('name', 'not found') # get the name of the element / default 'not_found'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment