示例#1
0
        /// <summary>
        /// 表行内容
        /// </summary>
        /// <returns></returns>
        public override string GetTabValues()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(this.Name);
            sb.Append("\t");
            sb.Append(Time);

            sb.Append("\t");
            if (ClockBias == 0)
            {
                sb.Append(" ");
            }
            else
            {
                sb.Append(ClockBias.ToString("g"));
            }

            sb.Append("\t");
            if (ClockDrift == 0)
            {
                sb.Append(" ");
            }
            else
            {
                sb.Append(ClockDrift.ToString("g"));
            }

            return(sb.ToString());
        }
示例#2
0
        public string GetSimpleTabValues()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(Prn);
            sb.Append("\t");
            sb.Append(Time);

            sb.Append("\t");
            if (ClockBias == 0)
            {
                sb.Append(" ");
            }
            else
            {
                sb.Append(ClockBias.ToString("g"));
            }

            sb.Append("\t");
            if (ClockDrift == 0)
            {
                sb.Append(" ");
            }
            else
            {
                sb.Append(ClockDrift.ToString("g"));
            }



            return(sb.ToString());
        }
示例#3
0
 /// <summary>
 /// 哈希表
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return Time.GetHashCode() * 3
        + ClockBias.GetHashCode() * 5
        + ClockDrift.GetHashCode() * 13
        ;
 }