Commit 398d6f25 authored by Georgios Dagkakis's avatar Georgios Dagkakis

bug fix, all tests run

parent 879ccb58
...@@ -302,35 +302,6 @@ def createObjects(): ...@@ -302,35 +302,6 @@ def createObjects():
# get the successorList for the 'Frames' # get the successorList for the 'Frames'
coreObject.nextFrameIds=getSuccessorList(element['id'], lambda source, destination, edge_data: edge_data.get('entity') == 'Frame') coreObject.nextFrameIds=getSuccessorList(element['id'], lambda source, destination, edge_data: edge_data.get('entity') == 'Frame')
coreObject.nextIds=getSuccessorList(element['id']) # update the nextIDs list of the object coreObject.nextIds=getSuccessorList(element['id']) # update the nextIDs list of the object
# elif objClass=='Dream.CapacityStation':
# id=element.get('id', 'not found')
# name=element.get('name', 'not found')
# intervalCapacity=element.get('intervalCapacity', [])
# sharedResources=element.get('sharedResources', {})
# CS=CapacityStation(id,name,intervalCapacity=intervalCapacity, sharedResources=sharedResources)
# CS.nextIds=getSuccessorList(id)
# G.CapacityStationList.append(CS)
# G.ObjList.append(CS)
#
# elif objClass=='Dream.CapacityStationBuffer':
# id=element.get('id', 'not found')
# name=element.get('name', 'not found')
# requireFullProject=bool(element.get('requireFullProject', 0))
# CB=CapacityStationBuffer(id,name,requireFullProject=requireFullProject)
# CB.nextIds=getSuccessorList(id)
# G.CapacityStationBufferList.append(CB)
# G.ObjList.append(CB)
#
# elif objClass=='Dream.CapacityStationExit':
# id=element.get('id', 'not found')
# name=element.get('name', 'not found')
# nextCapacityStationBufferId=element.get('nextCapacityStationBufferId', None)
# CE=CapacityStationExit(id,name,nextCapacityStationBufferId=nextCapacityStationBufferId)
# G.CapacityStationExitList.append(CE)
# G.ExitList.append(CE)
# G.ObjList.append(CE)
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
# loop through all the nodes to # loop through all the nodes to
......
...@@ -40,14 +40,11 @@ class Queue(CoreObject): ...@@ -40,14 +40,11 @@ class Queue(CoreObject):
def __init__(self, id='', name='', capacity=1, isDummy=False, schedulingRule="FIFO", level=None, gatherWipStat=False, inputsDict={}): def __init__(self, id='', name='', capacity=1, isDummy=False, schedulingRule="FIFO", level=None, gatherWipStat=False, inputsDict={}):
self.type="Queue" # String that shows the type of object self.type="Queue" # String that shows the type of object
CoreObject.__init__(self, id, name) CoreObject.__init__(self, id, name)
# used for the routing of the entities capacity=float(capacity)
# holds the capacity of the Queue if capacity<0 or capacity==float("inf"):
if capacity>0:
self.capacity=capacity
else:
self.capacity=float("inf") self.capacity=float("inf")
else:
# No failures are considered for the Queue self.capacity=int(capacity)
self.isDummy=bool(int(isDummy)) #Boolean that shows if it is the dummy first Queue self.isDummy=bool(int(isDummy)) #Boolean that shows if it is the dummy first Queue
self.schedulingRule=schedulingRule #the scheduling rule that the Queue follows self.schedulingRule=schedulingRule #the scheduling rule that the Queue follows
......
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