Commit 33710770 authored by Georgios Dagkakis's avatar Georgios Dagkakis

main script does not need to define AllocationManagement differently

parent fe11a349
...@@ -44,7 +44,6 @@ numpy.seterr(all='raise') ...@@ -44,7 +44,6 @@ numpy.seterr(all='raise')
import simpy import simpy
from Globals import G from Globals import G
from Source import Source from Source import Source
from Machine import Machine
from Exit import Exit from Exit import Exit
from Queue import Queue from Queue import Queue
from Repairman import Repairman from Repairman import Repairman
...@@ -88,7 +87,6 @@ from ShiftScheduler import ShiftScheduler ...@@ -88,7 +87,6 @@ from ShiftScheduler import ShiftScheduler
import PrintRoute import PrintRoute
from CapacityStation import CapacityStation from CapacityStation import CapacityStation
from AllocationManagement import AllocationManagement
from CapacityStationExit import CapacityStationExit from CapacityStationExit import CapacityStationExit
from CapacityStationBuffer import CapacityStationBuffer from CapacityStationBuffer import CapacityStationBuffer
...@@ -269,13 +267,6 @@ def createObjectResourcesAndCoreObjects(): ...@@ -269,13 +267,6 @@ def createObjectResourcesAndCoreObjects():
coreObject.nextPartIds=getSuccessorList(element['id'], lambda source, destination, edge_data: edge_data.get('entity') == 'Part') coreObject.nextPartIds=getSuccessorList(element['id'], lambda source, destination, edge_data: edge_data.get('entity') == 'Part')
# 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')
elif objClass=='Dream.AllocationManagement':
id=element.get('id', 'not found')
name=element.get('name', 'not found')
argumentDict=element.get('argumentDict', {})
AM=AllocationManagement(id, name, argumentDict=argumentDict)
G.AllocationManagementList.append(AM)
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
# loop through all the core objects # loop through all the core objects
......
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