import { RuntimeError } from '@ibiz-template/core';
/**
 * 逻辑执行器实例
 * @author lxm
 * @date 2023-06-25 06:07:24
 * @export
 * @class LogicExecutor
 */
export class LogicExecutor {
    /**
     * @author lxm
     * @date 2023-06-25 07:32:57
     * @param {ISchedulerLogic} logic 逻辑
     */
    constructor(logic, scheduler) {
        this.logic = logic;
        this.scheduler = scheduler;
        this.type = logic.logicType;
    }
    /**
     * 执行逻辑
     * @author lxm
     * @date 2023-06-26 02:55:40
     * @param {IUILogicParams} _executeParams 执行参数
     * @return {*}  {*}
     */
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    execute(_executeParams) {
        throw new RuntimeError(ibiz.i18n.t('runtime.logicScheduler.executor.noImplementedMethod'));
    }
    /**
     * 销毁方法
     * @author lxm
     * @date 2023-07-17 11:48:54
     */
    destroy() { }
}
