示例#1
0
 public DI(int key, IIOExecutable executable, DIPrm prm)
     : base(key)
 {
     this.IOExecutor = executable;
     this.Prm        = prm;
     this.DiId       = this.Prm.DiId;
     this.Name       = this.Prm.Name;
 }
示例#2
0
 public DO(int key, IIOExecutable executable, short cardId, DOPrm prm, short mdlId = -1)
     : base(key)
 {
     this.IOExecutor = executable;
     this.CardId     = cardId;
     this.MdlId      = mdlId;
     this.Prm        = prm;
     this.DoId       = this.Prm.DoId;
     this.Name       = this.Prm.Name;
 }
示例#3
0
        protected IIOExecutable GetIOExecutor(int cardKey)
        {
            IIOExecutable executable = null;

            switch (cardKey)
            {
            case (int)CardType.Card0:
                executable = card0.Executor;
                break;

            case (int)CardType.Card1:
                executable = card1.Executor;
                break;

            case (int)CardType.ExtMdl:
                executable = extMdl.ExtMdlExecutor;
                break;
            }
            return(executable);
        }