Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public DateTime ReadLastDataDateTime()
        {
            ToDBIForPs dbi = this.DBI as ToDBIForPs;
            DateTime   dt  = dbi.ReadLastDitchDataDateTime(this.Name);

            return(dt);
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param deviceType="nm"></param>
        /// <returns></returns>
        static public TransItem Create(NameMap nm, FromDBI fromDBI, ToDBIForPs toDBI)
        {
            TransItem item = new TransItem();

            item.FromDevice = CreateFromDevice(nm.FromName, fromDBI, nm.TotalHeight);
            item.ToDevice   = CreateToDevice(nm.ToName, toDBI, nm.Elvation);
            return(item);
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param deviceType="p"></param>
        /// <returns></returns>
        private static ToDevice CreateToDevice(string name, ToDBIForPs toDBI, float elvation)
        {
            ToDevice to = new ToDevice();

            to.DBI  = toDBI;
            to.Name = name;
            to.ID   = toDBI.ReadToDeviceID(name);
            // TODO:
            //
            //to.ComAdr = toDBI.ReadToDeviceComAdr(to.ID);
            to.Elvation = elvation;
            return(to);
        }