public override void execute(Tag tag)
        {
            SystemTimeTag sysTag = tag as SystemTimeTag;

            AdlerCmd.adlerSession.Logger.Info("系统时间TAG:oid:" + sysTag.Oid +
                                              "系统时间:" + sysTag.SysTime);
        }
예제 #2
0
        public static Tag create(String oid, int len, String value)
        {
            Tag tag;

            if (UploadTag.isUploadTag(oid))
            {
                tag = new UploadTag(oid, len, value);
            }
            else if (oid == SystemDateTag.SYSTEM_DATE_OID)
            {
                tag = new SystemDateTag(oid, len, value);
            }
            else if (oid == SystemTimeTag.SYSTEM_TIME_OID)
            {
                tag = new SystemTimeTag(oid, len, value);
            }
            else
            {
                tag = new NormalTag(oid, len, value);
            }
            return(tag);
        }