Commit 238f044e authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Sebastien Robin

imports script made so that a user can import ManPy objects in an easier way...

imports script made so that a user can import ManPy objects in an easier way (see SingleServer.py in example). Dipo's idea, I have to see if it is ok. Old way also works
parent 65ef1727
from SimPy.Simulation import simulate, activate, initialize from simulation.imports import Machine, Source, Exit, Part, G, simulate, activate, initialize
from simulation.Machine import Machine
from simulation.Source import Source
from simulation.Exit import Exit
from simulation.Part import Part
from simulation.Globals import G
#define the objects of the model #define the objects of the model
S=Source('S1','Source',distribution='Fixed', mean=0.5, item=Part) S=Source('S1','Source',distribution='Fixed', mean=0.5, item=Part)
......
...@@ -67,6 +67,8 @@ from Job import Job ...@@ -67,6 +67,8 @@ from Job import Job
from MachineJobShop import MachineJobShop from MachineJobShop import MachineJobShop
from QueueJobShop import QueueJobShop from QueueJobShop import QueueJobShop
from ExitJobShop import ExitJobShop from ExitJobShop import ExitJobShop
from Batch import Batch
from SubBatch import SubBatch
import xlwt import xlwt
import xlrd import xlrd
import time import time
......
...@@ -26,7 +26,6 @@ SubBatch is an Entity that contains a number of units and is derived from a pare ...@@ -26,7 +26,6 @@ SubBatch is an Entity that contains a number of units and is derived from a pare
''' '''
from Entity import Entity from Entity import Entity
from Batch import Batch
#The batch object #The batch object
class SubBatch(Entity): class SubBatch(Entity):
......
# ===========================================================================
# 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 and Dipo
'''
'''
auxiliary script to help the import of ManPy modules
'''
#SimPy
from SimPy.Simulation import *
#generic
from simulation.CoreObject import CoreObject
from simulation.Entity import Entity
from simulation.ObjectInterruption import ObjectInterruption
from simulation.ObjectResource import ObjectResource
#CoreObjects
from simulation.Machine import Machine
from simulation.Queue import Queue
from simulation.Source import Source
from simulation.Exit import Exit
from simulation.Assembly import Assembly
from simulation.Dismantle import Dismantle
from simulation.Conveyer import Conveyer
from simulation.ExitJobShop import ExitJobShop
from simulation.QueueJobShop import QueueJobShop
from simulation.MachineJobShop import MachineJobShop
from simulation.QueueLIFO import QueueLIFO
#Entities
from simulation.Job import Job
from simulation.Part import Part
from simulation.Frame import Frame
from simulation.Batch import Batch
from simulation.SubBatch import SubBatch
#ObjectResources
from simulation.Repairman import Repairman
#ObjectInterruption
from simulation.Failure import Failure
#Auxiliary
from simulation.Globals import G
from simulation.RandomNumberGenerator import RandomNumberGenerator
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