Exemple #1
0
        public static Conveyor GetConveyor(string conveyorName, MissionType missionType, string startShelfNo, string endShelfNo, Direction_ Direction_, ModelPosition modelPosition)
        {
            Conveyor conveyor = null;

            switch (Direction_)
            {
            case Direction_.Roadway:
                conveyor = new Stacker_RoadWay(missionType, conveyorName, startShelfNo, endShelfNo, modelPosition, Direction_);
                break;
            }
            return(conveyor);
        }
Exemple #2
0
        public static Conveyor GetConveyor(string conveyorName, MissionType missionType, string shelfNo, Direction_ Direction, ModelPosition modelPosition)
        {
            Conveyor conveyor = null;

            switch (Direction)
            {
            case Direction_.Vertical:
                conveyor = new Conveyor_V(missionType, conveyorName, Direction);
                break;

            case Direction_.Horizontal:
                conveyor = new Conveyor_H(missionType, conveyorName, Direction);
                break;

            case Direction_.Roadway:
                conveyor = new Stacker_RoadWay(missionType, conveyorName, shelfNo, modelPosition, Direction);
                break;

            case Direction_.PortIn:
                conveyor = new Stacker_Port(missionType, conveyorName, Direction);
                break;

            case Direction_.PortOut:
                conveyor = new Stacker_Port(missionType, conveyorName, Direction);
                break;

            case Direction_.ShelfOut:
                conveyor = new Stacker_ShelfOut(missionType, conveyorName, shelfNo, modelPosition, Direction);
                break;

            case Direction_.ShelfIn:
                conveyor = new Stacker_ShelfIn(missionType, conveyorName, shelfNo, modelPosition, Direction);
                break;
            }
            return(conveyor);
        }