using MoYu; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEAWCS_Tasks.ConveyorLineJob.StationHandler; namespace WIDESEAWCS_Tasks.ConveyorLineJob { public class StationHandlerFactory { public static IStationHandler GetHandler(int stationType, CommonConveyorLineJob commonConveyorLineJob) { switch (stationType) { case 11: return new EmptyTrayStationHandler(commonConveyorLineJob); case 5: return new ExceptionPortStationHandler(commonConveyorLineJob); default: throw new ArgumentException($"Unsupported station type: {stationType}"); } } } }