示例#1
0
 private Transporter transporter; // bypass için şimdilik bir tane uncapacitated transporter yaratıldı. IE486
 public Layout()
 {
     this.bufferCells      = new BufferCellList();
     this.inputStations    = new StationList();
     this.nodes            = new NodeList();
     this.operations       = new OperationList();
     this.outputStations   = new StationList();
     this.stations         = new StationList();
     this.bins             = new BinList();
     this.componentTypes   = new ComponentTypeList();
     this.unitloadsonMover = new UnitloadList();
     this.transporter      = new Transporter();
 }
示例#2
0
 public Layout(string nameIn, FLOWObject parentIn)
     : base(nameIn, parentIn)
 {
     this.bufferCells      = new BufferCellList();
     this.inputStations    = new StationList();
     this.nodes            = new NodeList();
     this.operations       = new OperationList();
     this.outputStations   = new StationList();
     this.stations         = new StationList();
     this.bins             = new BinList();
     this.componentTypes   = new ComponentTypeList();
     this.unitloadsonMover = new UnitloadList();
     this.transporter      = new Transporter();
     this.onHandWriter     = new TextOutput(((SimulationManager)parentIn.Parent).path);
 }
        public BufferCell FindNearestCentralBuffer(StaticObject locationIn)
        {
            BufferCell     selectedCell     = null;
            double         selectedDistance = Double.PositiveInfinity;
            BufferCellList bufferCells      = this.Manager.LayoutManager.Layout.BufferCells;

            foreach (BufferCell bufferCell in bufferCells)
            {
                double distance = 0;
                if (distance < selectedDistance)
                {
                    selectedCell     = bufferCell;
                    selectedDistance = distance;
                }
            }
            return(selectedCell);
        }