using Service.BusinessTask; using Service.BusinessTask.MyTask; using Service.Execute.StaticTools; namespace Service.Execute { /// /// 软件管理类 /// public class StationSoftMgr { public static readonly SwappingStateMachine SwappingStateMachine = SwappingStateMachine.GetInstance(); private static readonly AbstractTaskHandler SwapOrderReportCloudTask = new SwapOrderReportCloudTask(); private static readonly AbstractTaskHandler BatteryMoveTask = new BatteryMoveTask(); #region Task /// /// 启动task /// public static void StartTasks() { SwapOrderReportCloudTask.Start(); BatteryMoveTask.Start(); } /// /// 停止task /// public static void StopTasks() { SwapOrderReportCloudTask.Stop(); } #endregion Task #region 换电流程 /// /// 换电流程启动 /// public static void SwappingStateMachineStart() { SwappingStateMachine.Start(); } /// /// 换电流程重置 /// public static void SwappingStateMachineCancel() { SwappingStateMachine.Cancel(); } #endregion 换电流程启动 } }