import { IPSDELogic } from './ipsdelogic'; import { IPSDELogicParam } from './ipsdelogic-param'; import { IPSDESysLogicLogic } from './ipsdesys-logic-logic'; import { PSDELogicNodeImpl } from './psdelogic-node-impl'; import { IPSSysLogic } from '../../res/ipssys-logic'; export class PSDESysLogicLogicImpl extends PSDELogicNodeImpl implements IPSDESysLogicLogic { 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; } get logicParam(): string { return this.M.logicParam; } get logicParam2(): string { return this.M.logicParam2; } protected pssyslogic: IPSSysLogic | null = null; getPSSysLogic(): IPSSysLogic | null { if (this.pssyslogic != null) return this.pssyslogic; const value = this.M.getPSSysLogic; if (value == null) { return null; } this.pssyslogic = this.getPSModel4('res.IPSSysLogic', value, 'getPSSysLogic') as IPSSysLogic; return this.pssyslogic; } get psSysLogic(): IPSSysLogic | null { return this.getPSSysLogic(); } getPSSysLogicMust(): IPSSysLogic { const value = this.getPSSysLogic(); if (value == null) { throw new Error('未指定系统逻辑对象'); } return value; } protected retpsdelogicparam: IPSDELogicParam | null = null; getRetPSDELogicParam(): IPSDELogicParam | null { if (this.retpsdelogicparam != null) return this.retpsdelogicparam; const value = this.M.getRetPSDELogicParam; if (value == null) { return null; } const ipsdelogic = this.getParentPSModelObject('dataentity.logic.IPSDELogic') as IPSDELogic; if (ipsdelogic != null) { this.retpsdelogicparam = ipsdelogic.findPSDELogicParam(value); } return this.retpsdelogicparam; } get retPSDELogicParam(): IPSDELogicParam | null { return this.getRetPSDELogicParam(); } getRetPSDELogicParamMust(): IPSDELogicParam { const value = this.getRetPSDELogicParam(); if (value == null) { throw new Error('未指定返回值绑定逻辑参数对象'); } return value; } get cls(): string { return 'PSDESysLogicLogicImpl'; } instanceof(cls: string): boolean { if (cls == 'dataentity.logic.IPSDESysLogicLogic') return true; return super.instanceof(cls); } }