/// <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()); }
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()); }
/// <summary> /// 哈希表 /// </summary> /// <returns></returns> public override int GetHashCode() { return Time.GetHashCode() * 3 + ClockBias.GetHashCode() * 5 + ClockDrift.GetHashCode() * 13 ; }