コード例 #1
0
 /// <summary>
 /// 起始时间在前的为小。
 /// 返回值的含义如下:值含义小于零此对象小于 other 参数。零此对象等于 other。大于零此对象大于 other。
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public int CompareTo(TimePeriod other)
 {
     return((int)this.Start.CompareTo(other.Start));
 }
コード例 #2
0
 /// <summary>
 /// 时段构造函数
 /// </summary>
 /// <param name="timePeriod"></param>
 public BufferedTimePeriod(TimePeriod timePeriod) : this(timePeriod.Start, timePeriod.End)
 {
 }
コード例 #3
0
 public int CompareTo(TimePeriodValue <TValue> other)
 {
     return(TimePeriod.CompareTo(other.TimePeriod));
 }
コード例 #4
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="perid"></param>
 /// <param name="val"></param>
 public TimePeriodValue(TimePeriod perid, TValue val)
 {
     this.Value      = val;
     this.TimePeriod = perid;
 }
コード例 #5
0
 /// <summary>
 /// 从时段和系统类型判断是否支持
 /// </summary>
 /// <param name="satType"></param>
 /// <param name="satTime"></param>
 /// <returns></returns>
 public virtual bool IsAvailable(SatelliteType satType, Time satTime)
 {
     return((SatelliteTypes.Contains(satType)) && TimePeriod.Contains(satTime));
 }