import { IPSDELogic } from './ipsdelogic'; import { IPSDELogicParam } from './ipsdelogic-param'; import { IPSDESysDataSyncAgentOutLogic } from './ipsdesys-data-sync-agent-out-logic'; import { PSDELogicNodeImpl } from './psdelogic-node-impl'; import { IPSSysDataSyncAgent } from '../../res/ipssys-data-sync-agent'; export class PSDESysDataSyncAgentOutLogicImpl extends PSDELogicNodeImpl implements IPSDESysDataSyncAgentOutLogic { protected dstpsdelogicparam: IPSDELogicParam | null = null; getDstPSDELogicParam(): IPSDELogicParam | null { if (this.dstpsdelogicparam != null) return this.dstpsdelogicparam; const value = this.M.getDstPSDELogicParam; if (value == null) { return null; } const ipsdelogic = this.getParentPSModelObject('dataentity.logic.IPSDELogic') as IPSDELogic; if (ipsdelogic != null) { this.dstpsdelogicparam = ipsdelogic.findPSDELogicParam(value); } return this.dstpsdelogicparam; } get dstPSDELogicParam(): IPSDELogicParam | null { return this.getDstPSDELogicParam(); } getDstPSDELogicParamMust(): IPSDELogicParam { const value = this.getDstPSDELogicParam(); if (value == null) { throw new Error('未指定目标逻辑参数对象'); } return value; } protected pssysdatasyncagent: IPSSysDataSyncAgent | null = null; getPSSysDataSyncAgent(): IPSSysDataSyncAgent | null { if (this.pssysdatasyncagent != null) return this.pssysdatasyncagent; const value = this.M.getPSSysDataSyncAgent; if (value == null) { return null; } this.pssysdatasyncagent = this.getPSModel4('res.IPSSysDataSyncAgent', value, 'getPSSysDataSyncAgent') as IPSSysDataSyncAgent; return this.pssysdatasyncagent; } get psSysDataSyncAgent(): IPSSysDataSyncAgent | null { return this.getPSSysDataSyncAgent(); } getPSSysDataSyncAgentMust(): IPSSysDataSyncAgent { const value = this.getPSSysDataSyncAgent(); if (value == null) { throw new Error('未指定系统数据同步代理'); } return value; } get cls(): string { return 'PSDESysDataSyncAgentOutLogicImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.logic.IPSDESysDataSyncAgentOutLogic') return true; return super.instanceof(cls); } }