예제 #1
0
 /// <summary>
 /// 从时段和系统类型判断是否支持
 /// </summary>
 /// <param name="satType"></param>
 /// <param name="satTime"></param>
 /// <returns></returns>
 public virtual bool IsAvailable(List <SatelliteType> satType, Time satTime)
 {
     if (!TimePeriod.Contains(satTime))
     {
         return(false);
     }
     foreach (var item in satType)
     {
         if (!SatelliteTypes.Contains(item))
         {
             return(false);
         }
     }
     return(true);
 }
예제 #2
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));
 }